-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
AWS::Batch::ComputeEnvironment - When setting the "Type" property to any value that isn't "MANAGED"(case sensitive), this results in a false positive drift result. #31621
Comments
@morries4321 Good afternoon. Thanks for reporting the issue. Let's take CDK out of picture for now.
It appears that CloudFormation is detecting drift by comparing the template with the previous version, which is not controlled by CDK. Looks like that's the way the drift is detected and appears to be working fine. In case you have additional concerns around it, please use the Feedback link in the AWS CloudFormation page to report the behavior to the team. Thanks, |
@ashishdhingra Thanks for taking a look at this. If you just use the second template ( This issue was filed with CDK because the higher-level construct |
Using the below simple code: const vpc = ec2.Vpc.fromLookup(this, 'DefaultVpc', { isDefault: true });
new batch.ManagedEc2EcsComputeEnvironment(this, 'TestManagedEc2EcsComputeEnvironment', {
vpc
}); generates the below CFN template using
After deploying it using To avoid false drift, we should change the |
Describe the bug
When defining the
Type
property for theAWS::Batch::ComputeEnvironment
resource via the "ManagedEc2EcsComputeEnvironment" construct or the "CfnComputeEnvironment" construct, if the value isn't set toMANAGED
(case sensitive), this will result in a false positive drift result for this resource.Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
Setting the
AWS::Batch::ComputeEnvironment Type
property tomanaged
instead ofMANAGED
should not result in a false positive drift result.Current Behavior
Reproduction Steps
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.131.0
Framework Version
No response
Node.js Version
20.11.0
OS
Windows 10
Language
TypeScript, Python, .NET, Java, Go
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: