I'm new to AWS Elastic Beanstalk. So i've confused, when i want to create new environment, in the Domain if i use mydomain.us-east-1.elasticbeanstalk.com it can be done. But when I try to use like subdomain >> subdomain-1.mydomain.us-east-1.elasticbeanstalk.com it become error "Value subdomain-1.mydomain at 'CNAMEPrefix' failed to satisfy constraint: Member must contain only letters, digits, and the dash character and may not start or end with a dash". What did I do wrong?
Asked
Active
Viewed 240 times
1 Answers
0
AWS do not support hosts on this way. You define host (NOT DOMAIN!!!) mydomain.us-east-1.elasticbeanstalk.com
. So you should create domain mydomain.us-east-1.elasticbeanstalk.com
to create there new host in this domain. Which is not supported.
What you can do is to create new host with name subdomain-1-mydomain.us-east-1.elasticbeanstalk.com

Romeo Ninov
- 5,263
- 4
- 20
- 26
-
My goal is to get CNAME subdomain-1.mydomain.us-east-1.elasticbeanstalk.com. How can I do that? – Sinauwae Aug 29 '22 at 07:50
-
@Sinauwae, as I explain already you can't. – Romeo Ninov Aug 29 '22 at 08:06
-
But I see at their example pic >> https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/customdomains.html GettingStartedApp-env.bx7dx222kw.us-east2.elasticbeanstalk.com my goal is to make it like that. – Sinauwae Aug 29 '22 at 13:38
-
@Sinauwae, you can try in Amazon Route 53 to arrange the things. Or contact Amazon support. – Romeo Ninov Aug 29 '22 at 14:11