-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
ecs: aws-ecs:enableImdsBlockingDeprecatedFeature warning showing up even when not in use #33684
Comments
Yes, this is a known issue and here's what's happening:
aws-cdk/packages/aws-cdk-lib/aws-ecs/lib/cluster.ts Lines 725 to 745 in ab368ee
This is part of AWS's plan to deprecate container instance role access blocking per: #32609 To resolve:
Let me know if it works for you. |
Got it - it's a result of the updated set of recommended CDK flags. |
Comments on closed issues and PRs are hard for our team to see. |
Describe the bug
As a result of #32609 and #32763 I started to see:
even though I don't use the
canContainersAccessInstanceRole
flag anywhere in my CDK stacks. This should not appear here, similarly to #33505.Interestingly, when I enable the
"@aws-cdk/aws-ecs:disableEcsImdsBlocking": true
flag, I get the following diff:which means even though I never used the
canContainersAccessInstanceRole
flag anywhere, CDK was using it under the hood somewhere.Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
No warning is shown if the property is not used.
Current Behavior
The warning shows up anyway.
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.1002.0 (build 09ef5a0)
Framework Version
No response
Node.js Version
v22.14.0
OS
macos
Language
TypeScript
Language Version
No response
Other information
The text was updated successfully, but these errors were encountered: