I am trying to create a new ElasticBeanstalk application with load balancing application. I invoke the following commands:
$ mkdir HelloWorld $ cd HelloWorld $ eb init $ echo "Hello World" > index.html $ eb create dev-env --elb-type application
The result of the last command results in this error:
Creating an archive of the application version "app-170821_175709".
Download HelloWorld / app-170821_175709.zip on S3. This may take some time.
Loading is complete.
ERROR: Configuration check exception: Invalid parameter value: "null" (namespace: "aws: ec2: vpc", OptionName: "ELBSubnets"): specify the subnets for the VPC for the application such as load balancing.
Any ideas what is wrong with my VPC? I use the default VPC for this area.
UPDATE : I have made further progress, but I still cannot configure ALB correctly. I added several parameters to the eb create command:
eb create staging-env --elb-type application --vpc.id vpc-1234604b --vpc.publicip --vpc.ec2subnets subnet-12340aa2 --vpc.elbsubnets subnet-12340aa3,subnet-12341966 --vpc.securitygroup sg-1234ac01 --vpc.elbpublic
But I still get the following error:
ERROR: Stack named "awseb-e-ifnuqgmbah-stack" aborted operation. Current state: "CREATE_FAILED" Cause: The following resources could not be created: [AWSEBV2LoadBalancer].
ERROR: Creating load balancer named: arn: aws: elasticloadbalancing: us-west-2: 123456785170: loadbalancer / app / awseb-AWSEB-Y1OVPGRIAZMD / cc5ce6193af39c0b failed Reason: S3Bucket: intermediate location not located in the same region with EL app / awseb-AWSEB-Y1OVPGRIAZMD / cc5ce6193af39c0b `` ''
source share