💾 Archived View for cfdocs.wetterberg.nu › stacksets-delete.gemini captured on 2024-06-16 at 13:06:18. Gemini links have been rewritten to link to archived content
View Raw
More Information
⬅️ Previous capture (2021-12-03)
-=-=-=-=-=-=-
Delete a stack set
Search
When you are finished with the AWS CloudFormation StackSets Getting Started walkthrough, you can follow procedures in this section to delete stack sets and other resources that you have created as part of this walkthrough. To delete a stack set, you must first delete all stack instances in the stack set. For information about how to delete all stack instances, see Delete stack instances from your stack set.
Delete stack instances from your stack set
Delete a stack set using the AWS Management Console
- On the StackSets page, select the stack set that you created in Create a stack set. In this walkthrough, we created a stack set named my-awsconfig-stackset.
- With the stack set selected, choose Delete StackSet from the Actions menu.[Select stack set and choose Delete stack set from the Actions menu.]
- When you are prompted to confirm that you want to delete the stack set, choose Delete StackSet.
Create a stack set
Delete a stack set using the AWS CLI
- Run the following command. When you are prompted to confirm, type y, and then press Enter.
- Verify that the stack set was deleted by running the list-stack-sets command. The results of the list-stack-sets command should show your stack with a status of DELETED.
Delete service roles \(optional\)
Delete the service roles that StackSets required for stack set creation. For self-managed stack sets, the roles you created as part of the Prerequisites for stack set operations for the walkthrough in this guide are named *AWSCloudFormationStackSetAdministrationRole* in the administrator account, and *AwsCloudFormationStackSetExecutionRole* in each target account. For more information about deleting roles, see Deleting roles and instance profiles in the *IAM User Guide*.
Prerequisites for stack set operations
Deleting roles and instance profiles
- To delete a service role by using the AWS Management Console*
- Sign in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/iam/.
- In the navigation pane, choose Roles, and then fill the check box next to the role that you want to delete.
- In the Role actions menu at the top of the page, choose Delete role.
- In the confirmation dialog box, choose Yes, Delete. If you are sure, you can proceed with the deletion even if the service last accessed data is still loading.
https://console.aws.amazon.com/iam/
- To delete a service role by using the AWS CLI*
- Run the following command. When you are prompted to confirm, type y, and then press Enter.