Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upsert records to the Copilot-managed hosted zone if http.alias is detected to be a managed subdomain #5456

Open
Lou1415926 opened this issue Nov 8, 2023 · 1 comment
Labels
type/enhancement Issues that are improvements for existing features.

Comments

@Lou1415926
Copy link
Contributor

There are a lot of ways to enable an alias in http.alias:

  1. Associate a domain with app init --domain example.com. Any service in the application will be able to use, at least example.com, *.example.com, *.app.example.com.
  2. Import an ACM certificate to the environment. Any service deployed in the environment will be able to use any alias covered by the ACM certificate.
  3. Import an ALB that has an HTTPS listener associated with a certificate. The service that imports the ALB can use any alias covered by the associated certificate.

Scenario 2 and 3 requires users to upsert the A records for their alias on their own, OR specify the hosted_zone field so that Copilot knows where to upsert the records.

It'd be an UX improvement if Copilot can tell if the http.alias is one of the domain enabled in scenario 1 (i.e. example.com, *.example.com, *.app.example.com), and upsert the A records to the respective hosted zone automatically without needing the http.hosted_zone field.

Related: #5438

@Lou1415926 Lou1415926 added the type/enhancement Issues that are improvements for existing features. label Nov 8, 2023
@neanias
Copy link

neanias commented Jul 5, 2024

With regards to scenario 2, if an AWS org has an ACM cert set up with a domain (e.g. app.example.com), can we deploy an existing environment with the imported ACM, then add the alias to an existing app within that service to marry up the listeners? I've seen references to having to delete and reinitialise an app to pick up domains, but is the imported ACM a work around? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/enhancement Issues that are improvements for existing features.
Projects
None yet
Development

No branches or pull requests

2 participants