Skip to content

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

Open
@morries4321

Description

Describe the bug

When defining the Type property for the AWS::Batch::ComputeEnvironment resource via the "ManagedEc2EcsComputeEnvironment" construct or the "CfnComputeEnvironment" construct, if the value isn't set to MANAGED (case sensitive), this will result in a false positive drift result for this resource.

Regression Issue

  • Select this option if this issue appears to be a regression.

Last Known Working CDK Version

No response

Expected Behavior

Setting the AWS::Batch::ComputeEnvironment Type property to managed instead of MANAGED should not result in a false positive drift result.

Current Behavior

Drift for AWSBatchComputeEnvironment

Reproduction Steps

#CDK code python example:
...
        batch_comp_env = batch.CfnComputeEnvironment(
            self,
            'BatchComputeEnv',
            type='managed',
...

#Synthesized template:
...
  BatchComputeEnv:
    Type: AWS::Batch::ComputeEnvironment
    Properties:
      Type: managed
...

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

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-batchRelated to AWS BatchbugThis issue is a bug.effort/smallSmall work item – less than a day of effortp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions