Elastic Beanstalk Environment Creation: DNS name not available

0

I'm trying to create my elastic beanstalk environment via the eb cli. When I run 'eb create restapi-prod', I get an error saying:

DNS name (restapi-prod.eba-mnpbn63s.us-west-2.elasticbeanstalk.com) is unavailable.

Why is this happening? Even when I tried adding a random string to the end of the environment name 'eb create restapi-prod-dtyq5r4' I still got the same erroring issues.

Note: I plan on placing my elastic beanstalk app behind an api gateway, so I don't need a route 53 record at all.

Here is my full configuration file:

.ebextensions/01_env.config

option_settings:
  - namespace: aws:elasticbeanstalk:environment
    option_name: ServiceRole
    value: AWSServiceRoleForElasticBeanstalk
  - namespace: aws:elasticbeanstalk:environment:process:default
    option_name: HealthCheckPath
    value: /health
  - namespace: aws:elasticbeanstalk:environment:process:default
    option_name: Port
    value: 8000
  - namespace: aws:elasticbeanstalk:environment:proxy
    option_name: ProxyServer
    value: none
  - namespace: aws:elasticbeanstalk:cloudwatch:logs
    option_name: StreamLogs
    value: true
  - namespace: aws:elasticbeanstalk:cloudwatch:logs
    option_name: DeleteOnTerminate
    value: true
  - namespace: aws:elasticbeanstalk:cloudwatch:logs
    option_name: RetentionInDays
    value: 7

.ebextensions/02_vpc.config

option_settings:
  - namespace: aws:ec2:vpc
    option_name: VPCId
    value: vpc-xxxx
  - namespace: aws:ec2:vpc
    option_name: Subnets
    value: subnet-xxxx, subnet-xxxx, subnet-xxxx

.ebextensions/03_vpc.config

option_settings:
  - namespace: aws:autoscaling:launchconfiguration
    option_name: InstanceType
    value: t2.micro
  - namespace: aws:autoscaling:launchconfiguration
    option_name: SecurityGroups
    value: sg-xxxx sg-xxxx, sg-xxxx
  - namespace: aws:autoscaling:launchconfiguration
    option_name: IamInstanceProfile
    value: AwsElasticBeanstalkEc2Role

.ebextensions/04_elb.config

option_settings:
  - namespace: aws:elasticbeanstalk:environment
    option_name: LoadBalancerType
    value: network
  - namespace: aws:elbv2:listener:443
    option_name: Protocol
    value: TCP
  - namespace: aws:ec2:vpc
    option_name: ELBScheme
    value: internal
  - namespace: aws:ec2:vpc
    option_name: ELBSubnets
    value: subnet-xxxx, subnet-xxxx, subnet-xxxx
My config.yml file in .elasticbeanstalk

branch-defaults:
  default:
    environment: restapi-prod
    group_suffix: null
global:
  application_name: restapi
  branch: null
  default_ec2_keyname: null
  default_platform: Docker running on 64bit Amazon Linux 2023
  default_region: us-west-2
  include_git_submodules: true
  instance_profile: null
  platform_name: null
  platform_version: null
  profile: eb-cli
  repository: null
  sc: null
  workspace_type: Application
Spencer
asked 13 days ago70 views
No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions