Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Add feature flag to unblock new deployments #1365

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

marofke
Copy link
Contributor

@marofke marofke commented Nov 5, 2024

Problem

Deployments of RFDK to brand new accounts would fail with:

The Launch Configuration creation operation is not available in your account. Use launch templates to create configuration templates for your Auto Scaling groups.

This is because Launch Configurations were deprecated, and recently denied for new accounts in aws/aws-cdk#25910

Solution

Added the feature flag that converts launch configurations to launch templates, as described in the documentation: https://github.com/aws/aws-cdk/blob/main/packages/aws-cdk-lib/cx-api/FEATURE_FLAGS.md#aws-cdkaws-autoscalinggeneratelaunchtemplateinsteadoflaunchconfig

Testing

  • tried deploying the All-In-AWS-Infrastructure-Basic example to a new AWS account, and confirmed I hit this error
  • with these changes, was able to deployments did not hit the launch configuration error

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

Added the feature flag:
@aws-cdk/aws-autoscaling:generateLaunchTemplateInsteadOfLaunchConfig

to all example RFDK applications, as well as the integration tests.
This allows deployments in fresh accounts to succeed since Launch
Configurations are deprecated.

Signed-off-by: Caden Marofke <132690522+marofke@users.noreply.github.com>
@marofke marofke force-pushed the marofke/launch-config-feature-flag branch from cef91c5 to 765f36a Compare November 5, 2024 21:55
@marofke marofke merged commit 79490d9 into mainline Nov 5, 2024
3 checks passed
@marofke marofke deleted the marofke/launch-config-feature-flag branch November 5, 2024 22:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants