(aws-batch): create fargate environment with Cfn classes #12329
Labels
@aws-cdk/aws-batch
Related to AWS Batch
bug
This issue is a bug.
duplicate
This issue is a duplicate.
Hello,
I got a lot of trouble to create a Fargate environment in AWS Batch with the CDK. The problem is only linked to a type issues. When you when to create a Fargate compute environment you shouldn't provide
instanceRole
,instanceTypes
andminvCpu
but the CDK enforce it.Reproduction Steps
What did you expect to happen?
I don't expect to see type errors
What actually happened?
The CDK isn't able to compile the stack due to the errors
Environment
Other
I try to fix the error locally by manually editing
@aws-cdk/aws-batch/lib/batch.generated.d.ts
by adding?
to the concerned porperties and@aws-cdk/aws-batch/lib/batch.generated.ts
by commenting the lineserrors.collect(cdk.propertyValidator('instanceRole', cdk.requiredValidator)(properties.instanceRole));
(and the others). After that everything work fine on CloudFormation side.This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: