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
  • Could you try rerunning your eb create command with the --debug argument? What parameter list is it passing to the check_dns_availability call?

Spencer
gefragt vor einem Monat78 Aufrufe
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen