Not able to create a stack on AWS cloudformation

0

Every time i tried to create a demo stack on cloudformation or demo application on beanstalk, it shows the following error:

Resource handler returned message: "No default VPC for this user. GroupName is only supported for EC2-Classic and default VPC. (Service: Ec2, Status Code: 400, Request ID: 25350395-90e5-4d2c-878d-7473f3d5a60e)" (RequestToken: 94f8918c-5f6b-3825-fcd3-619d5d45ace6, HandlerErrorCode: InvalidRequest)

i am using a yaml file as a template, both ec2 instance it is creating , is getting terminated automactically.

can anyone help???

  • Thanks a lot.. It is now working

1 Answer
1

Hello.

If you take the error message literally, it looks like the error occurs because there is no default VPC in the region where CloudFormation is deployed.
If you do not have a default VPC, please create one using the steps described in the document below.
https://docs.aws.amazon.com/vpc/latest/userguide/work-with-default-vpc.html#create-default-vpc

profile picture
EXPERT
answered a month ago
profile picture
EXPERT
reviewed a month ago
profile pictureAWS
EXPERT
reviewed a month ago
profile picture
EXPERT
reviewed a month ago

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