aws-samples / jenkins-on-aws

MIT No Attribution
58 stars 27 forks source link

CDK updates fail when going from Fargate to ec2 #5

Open jamesbland123 opened 4 years ago

jamesbland123 commented 4 years ago

Changing the configuration from fargate_enabled = yes to no, and ec2_enabled = no to yes causes cdk deploy to fail.

Cloudformation Errors: The key pair 'jenkinsonaws' does not exist (Service: AmazonAutoScaling; Status Code: 400; Error Code: ValidationError; Request ID: 4dbf68f0-10bb-11ea-9d3d-dbae4188b871)

Not sure this is really an issue and maybe the advice is when switching from Fargate to EC2 or vice-a-versa should be a destroy, then deploy. Or create a new set of stacks and treat it like a brand new deployment.

kunalfleethawks commented 3 years ago

Please create jenkinsonaws key pair before cdk deploy in AWS EC2. Please note the deployment region as well.