Topic 1 Question 392
A developer received the following error message during an AWS CloudFormation deployment:
DELETE_FAILED (The following resource(s) failed to delete: [ASGInstanceRole12345678].)
Which action should the developer take to resolve this error?
Contact AWS Support to report an issue with the Auto Scaling Groups (ASG) service.
Add a DependsOn attribute to the ASGInstanceRole12345678 resource in the CloudFormation template. Then delete the stack.
Modify the CloudFormation template to retain the ASGInstanceRole12345678 resource. Then manually delete the resource after deployment.
Add a force parameter when calling CloudFormation with the role-arn of ASGInstanceRole12345678.
ユーザの投票
コメント(3)
- 正解だと思う選択肢: C
Manually delete the ASGInstanceRole12345678 resource if it is no longer needed.
👍 2cachac2024/06/29 - 正解だと思う選択肢: C
Resources: ASGInstanceRole12345678: Type: AWS::IAM::Role DeletionPolicy: Retain
👍 1albert_kuo2024/10/04 - 正解だと思う選択肢: C
If you are unable to automatically resolve the issue through CloudFormation, you may need to manually delete the IAM role. Go to the IAM console, locate the role (ASGInstanceRole12345678), and manually delete any attached policies or instance profiles. Then, delete the role manually. After manually deleting the role, you can retry the stack deletion process in CloudFormation.
👍 1preachr2024/10/06
シャッフルモード