-
Notifications
You must be signed in to change notification settings - Fork 426
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
Is it possible to change the generated Web Service URL? #2071
Comments
Hi @gtamas ! With copilot, you can specify a domain name while initializing an application: @kohidave has a step-by-step guide here: https://github.com/kohidave/dns-and-lb-copilot-demo. @iamhopaul123 on the team is currently working on #1188 (comment) which will add a new field in the manifest file: http:
alias: api.mydomain.com # new to support this usecase. In the mean time, for doing this outside of Copilot you can follow similar steps to this blog post.
Apologies 🙇 for all this manual labor, |
OK thank you for the detailed info! I'll follow these instructions. |
Hi @efekarakus, thanks for the detailed response. I'm curious, do we need to have the domain registered in route53? Would it be possible to create a CNAME record from a DNS provider outside of AWS to point to our load balancer? |
Hello @heyheman11. Technically it is possible right now as long as you create a valid certificate and then attach it to the listener. The only problem is right now any new update to that listener by CloudFormation could potentially override this manual update (e.g., environment update to a new version). We also have a feature request related to this: #2694, which will allow you to import a validated certificate to the load balancer. Would you mind to give a thumb-up so that we can better prioritize this feature request? Thank you! |
Hey @iamhopaul123, thanks for responding. Yeah that makes sense, I'll add my support on that issue |
Even with the support for
I actually had to select the "other" target group available to make it work though. Selecting the same (default) one that associated is associated with the port 80 listener resulted in 503 error. Might have something to do with the fact that the backed service listens on port 3000 internally. Anyway huge thanks for this comment, looks like it saved me a lot of time. |
Hey @klevo, glad you were able to get it working!:blush: Out of curiosity - what kept you from being able to use the |
Hi @dannyrandall . Our use case is a already deployed (production) environment using copilot cli, that is not associated to any domain or has any existing aliases (yet). As we onboard new clients, we need to expose our application on new domains, without deleting and recreating the whole environment. If I attempt to add such domains into manifest.yml beforeClassic ALB setup, this is deployed and running: http:
path: '/'
healthcheck: '/health_check' Attempted manifest modification and then deployhttp:
path: '/'
healthcheck: '/health_check'
# We want to add new domains (sometimes subdomains, sometimes even root domains) over the lifecycle of this environment
alias: ["africa.auctionapp.io", "africa2.auctionapp.io", "example.com"] So this currently does not work, you'll be asked to initialize the app again. Ideally I'd expect copilot to add these as new HTTPS listeners to he load balancer, generate the appropriate certificate(s) and print out the certificate validation instructions. |
Thanks for sharing those details! I think you'll definitely benefit from our work on Environment Manifests (planned to be in our upcoming release) - it will allow you to make updates to an environment after it's been deployed. While Copilot won't generate the certificates for you, you'll be able to generate a cert in ACM, import the cert to your Copilot environment, and then use any valid aliases under that cert in your services! That will solve your use case of adding new root domains, but just wanted to let you know that in the current version (v1.19) you can add new subdomains already - there's some details on that here and here. Note that you can include the |
Thank you for the heads up @dannyrandall and huge thanks to the whole aws copilot team and all the contributors for a super useful tool and supportive community! |
Hey @klevo! Environment Manifests are now released in v1.20 and should enable you to add new aliases without recreating your environments!🚀 |
Awesome, thanks Danny and the team! |
When I deploy my web service, AWS generates this long URL:
http://some-other212121212-23232323.me-south-1.elb.amazonaws.com/
Is it possible to change this URL to something like api.mydomain.com ?
I know this is not possible using copilot, but is there way to do this using ECS console or some other AWS tool?
The text was updated successfully, but these errors were encountered: