Summary
UnmanagedComputeEnvironmentProps.unmanagedvCpus is part of the AWS CDK API being ported in #136, but the generated @cdktn/provider-aws BatchComputeEnvironmentConfig cannot currently represent it because hashicorp/aws does not expose the AWS Batch API field on aws_batch_compute_environment.
Upstream provider tracking issue:
Until that provider enhancement is released and regenerated into @cdktn/provider-aws, #136 intentionally fails fast rather than silently accepting a capacity reservation that Terraform would omit.
Current fail-fast locations
At PR head 1c3ac230c3e88f164057e4911ff3d3b5568e56a9:
Work once provider support lands
After hashicorp/terraform-provider-aws#49311 is implemented and included in a published AWS Provider release:
- Upgrade/regenerate
@cdktn/provider-aws so BatchComputeEnvironmentConfig exposes the new unmanaged_vcpus field.
- Remove the constructor
ValidationError and the temporary TERRACONSTRUCTS DEVIATION: NOT SUPPORTED documentation.
- Forward
UnmanagedComputeEnvironmentProps.unmanagedvCpus into the generated BatchComputeEnvironment resource configuration.
- Replace the current fail-fast unit test with synthesis assertions proving the Terraform JSON contains the expected value.
- Add/update an AWS integration test that performs
terraform apply, verifies DescribeComputeEnvironments.unmanagedvCpus, updates the value and verifies it again, then performs terraform destroy and verifies cleanup.
- Confirm import/refresh does not drift before closing this issue.
Acceptance criteria
Summary
UnmanagedComputeEnvironmentProps.unmanagedvCpusis part of the AWS CDK API being ported in #136, but the generated@cdktn/provider-awsBatchComputeEnvironmentConfigcannot currently represent it becausehashicorp/awsdoes not expose the AWS Batch API field onaws_batch_compute_environment.Upstream provider tracking issue:
Until that provider enhancement is released and regenerated into
@cdktn/provider-aws, #136 intentionally fails fast rather than silently accepting a capacity reservation that Terraform would omit.Current fail-fast locations
At PR head
1c3ac230c3e88f164057e4911ff3d3b5568e56a9:src/aws/compute/batch/unmanaged-compute-environment.ts#L43-L50src/aws/compute/batch/unmanaged-compute-environment.ts#L120-L136src/aws/compute/batch/unmanaged-compute-environment.ts#L156-L185test/aws/compute/batch/unmanaged-compute-environment.test.tsWork once provider support lands
After hashicorp/terraform-provider-aws#49311 is implemented and included in a published AWS Provider release:
@cdktn/provider-awssoBatchComputeEnvironmentConfigexposes the newunmanaged_vcpusfield.ValidationErrorand the temporaryTERRACONSTRUCTS DEVIATION: NOT SUPPORTEDdocumentation.UnmanagedComputeEnvironmentProps.unmanagedvCpusinto the generatedBatchComputeEnvironmentresource configuration.terraform apply, verifiesDescribeComputeEnvironments.unmanagedvCpus, updates the value and verifies it again, then performsterraform destroyand verifies cleanup.Acceptance criteria
unmanaged_vcpus.UnmanagedComputeEnvironment({ unmanagedvCpus: N })synthesizes the corresponding Terraform argument instead of throwing.