Skip to content

docs(ecs-patterns): remove references to REMOVE_DEFAULT_DESIRED_COUNT#29344

Merged
mergify[bot] merged 3 commits intoaws:mainfrom
jlizen:ecs-patterns-docs-fix
Mar 4, 2024
Merged

docs(ecs-patterns): remove references to REMOVE_DEFAULT_DESIRED_COUNT#29344
mergify[bot] merged 3 commits intoaws:mainfrom
jlizen:ecs-patterns-docs-fix

Conversation

@jlizen
Copy link
Copy Markdown
Contributor

@jlizen jlizen commented Mar 2, 2024

Issue # (if applicable)

Closes # 29325

Reason for this change

The REMOVE_DEFAULT_DESIRED_COUNT feature flag is always enabled in CDKv2, and throws builds errors if explicitly set. The ecs-patterns docs still reference it as "opt-in", which is misleading.

Ref: list of deprecated feature flags for v2

See Issue 29325 for a sample build error when trying to follow the current example code in docs for enabling the flag.

I did NOT remove the actual conditionals in the construct code, that check the (now always true) feature flag. This is dead code that can probably be removed as a chore task. My focus here was on removing friction for developers reading documentation.

Description of changes

I removed the section in the README of ecs-patterns showing how to manually enable this flag. I also updated the default cases in docstrings that referenced the flag.

Description of how you validated changes

Doc change only, no functional changes. I did double check that the defaults described in the docstrings (when the feature flag is enabled) were still accurate.

Checklist


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

@github-actions github-actions bot added the p2 label Mar 2, 2024
@aws-cdk-automation aws-cdk-automation requested a review from a team March 2, 2024 00:23
@github-actions github-actions bot added the beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK label Mar 2, 2024
@aws-cdk-automation aws-cdk-automation added the pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. label Mar 2, 2024
@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 48c42be
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

Copy link
Copy Markdown
Contributor

@lpizzinidev lpizzinidev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

@aws-cdk-automation aws-cdk-automation added pr/needs-maintainer-review This PR needs a review from a Core Team Member and removed pr/needs-community-review This PR needs a review from a Trusted Community Member or Core Team Member. labels Mar 2, 2024
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Mar 4, 2024

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@mergify mergify bot merged commit 704f596 into aws:main Mar 4, 2024
@aws-cdk-automation aws-cdk-automation removed the pr/needs-maintainer-review This PR needs a review from a Core Team Member label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK p2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants