aws-samples / eks-workshop-v2

Hands-on labs for Amazon EKS
https://www.eksworkshop.com
Apache License 2.0
365 stars 372 forks source link

[Bug]: Cloud9 eks workshop setup failure #931

Open cskalyan opened 1 month ago

cskalyan commented 1 month ago

Installation method

Own AWS account

What happened?

I am unable to setup Cloud9 Environment in my AWS Account and I keep getting this error Failed to create/update the stack. Run the following command to fetch the list of events leading up to the failure aws cloudformation describe-stack-events --stack-name eks-workshop-ide

What did you expect to happen?

Successful stack creation.

How can we reproduce it?

Run below in US-EAST-1

wget -q https://raw.githubusercontent.com/aws-samples/eks-workshop-v2/stable/lab/cfn/eks-workshop-ide-cfn.yaml -O eks-workshop-ide-cfn.yaml aws cloudformation deploy --stack-name eks-workshop-ide \ --template-file ./eks-workshop-ide-cfn.yaml \ --parameter-overrides RepositoryRef=stable \ --capabilities CAPABILITY_NAMED_IAM

Anything else we need to know?

No response

EKS version

1.29

princeanire commented 1 month ago

Have you check if you have a default VPC in us-east-1?

princeanire commented 1 month ago

It seems that the Cloud9 IDE is deployed in the default VPC

cskalyan commented 1 month ago

Have you check if you have a default VPC in us-east-1?

I do have default VPC in US-EAST-1 and it has 6 subnets.

princeanire commented 1 month ago

have you tried checking the root cuase via aws cloudformation template?

I think there would an error that will be displayed on the consoke, that might help troubleshooting the setup failure

cskalyan commented 1 month ago

I did check on AWS Console and all I see is EksWorkshopC9Instance create failed. When I monitor in detail, I see that it is saying connecting but connecting to EC2 is failing.

niallthomson commented 1 month ago

Hi folks,

Currently the CloudFormation template assumes either:

  1. You deploy to the default VPC (default behavior)
  2. You use the CloudSubnet parameter to specify an alternative VPC

I think something we might want to do in the future is always create a dedicated VPC but we don't do that at the moment.

cskalyan commented 1 month ago

It did not help. I tried defining VPC-ID and also Subnet id.

Looks like SSH connection to the instance is failing. All I see is connecting status and nothing happens.

On Fri, May 17, 2024 at 1:05 PM Niall Thomson @.***> wrote:

Hi folks,

Currently the CloudFormation template assumes either:

  1. You deploy to the default VPC (default behavior)
  2. You use the CloudSubnet parameter https://github.com/aws-samples/eks-workshop-v2/blob/main/lab/cfn/eks-workshop-ide-cfn.yaml#L47 to specify an alternative VPC

I think something we might want to do in the future is always create a dedicated VPC but we don't do that at the moment.

— Reply to this email directly, view it on GitHub https://github.com/aws-samples/eks-workshop-v2/issues/931#issuecomment-2118025870, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKA6RVRDWRJYA62G5CVD6EDZCY2FFAVCNFSM6AAAAABHQZ26F6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJYGAZDKOBXGA . You are receiving this because you authored the thread.Message ID: @.***>

niallthomson commented 4 weeks ago

Does your default VPC have Internet access?