Open ikeyan opened 2 years ago
Alpha module -> p2
Can confirm that the above code does reproduce the issue. However rollback also worked and deleted all Resources.
@ikeyan to remove the un-removable ComputeEnvironment
please open a ticket with the support team.
Where may I track progress on this issue?
I've reproduced this, but the CE fails to delete for me. This is a CFN issue
Describe the bug
I created a AWS Batch Compute Environment with service role
Role.fromRoleName(this, 'BatchServiceRole', 'AWSServiceRoleForBatch')
, and deployed it. The deploy and its rollback failed, and The compute environment cannot be deleted.Expected Behavior
CloudFormation should:
arn:aws:iam::*:role/aws-service-role/batch.amazonaws.com/AWSServiceRoleForBatch
(even if it does not exist it may create one automatically), orCurrent Behavior
CloudFormation creates Compute Environment but fails to stabilize it
it fails to delete the Compute Environment
on the compute-environments/detail page, its status is like this:
and the service role is
arn:aws:iam::************:role/AWSServiceRoleForBatch
I tried to delete the Compute Environment but failed
I tried to create the role
arn:aws:iam::************:role/AWSServiceRoleForBatch
, but cannot create a role whose name starts withAWSServiceRoleFor
Now I have a Compute Environment that cannot be deleted
Reproduction Steps
deploy the above as a stack.
Possible Solution
No response
Additional Information/Context
No response
CDK CLI Version
2.27.0 (build 8e89048)
Framework Version
2.27.0-alpha.0
Node.js Version
v16.13.1
OS
Windows 10 21H2
Language
Typescript
Language Version
TypeScript (4.7.3)
Other information
No response