- Newest
- Most votes
- Most comments
Hi there,
It seems like you’re having trouble attaching a certificate to your Lightsail container service. Here’s how you can fix it:
Quick Fixes:
-
Double-Check Regions: Make sure both the certificate and the container service are in the same region (Frankfurt). Even a small mismatch can cause this issue.
-
Wait for Propagation: If the certificate is new, give it some time to fully propagate across AWS. Sometimes it just needs a few more minutes.
-
Restart the Service: Try restarting or redeploying your container service. This can help refresh its state and recognize the certificate.
-
Use AWS CLI: If the console isn’t working, try attaching the certificate via the AWS CLI. It’s a more direct approach that can sometimes bypass console issues.
Hope this helps! 😁
Thank you Daher,
it was possible with the AWS CLI. I used the following command:
aws lightsail update-container-service --service-name mycontainer --public-domain-names '{"Certificate-name": ["custom.domain.com"]}'
The docs at https://docs.aws.amazon.com/de_de/lightsail/latest/userguide/amazon-lightsail-adding-distribution-default-domain-to-container-service.html helped, but not the documentation of the aws cli: https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/update-container-service.html That didn't specify, what the Key should be....
Relevant content
- asked a year ago
- asked 2 years ago
