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.
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.