Skip to content

Instantly share code, notes, and snippets.

@adriananeci
adriananeci / packer.debug
Last active September 4, 2019 10:43
packer build with debug
2019/09/04 10:37:14 [INFO] Packer version: 1.4.3
2019/09/04 10:37:14 Packer Target OS/Arch: linux amd64
2019/09/04 10:37:14 Built with Go Version: go1.12.8
2019/09/04 10:37:14 Detected home directory from env var: /root
2019/09/04 10:37:14 Using internal plugin for hyperone
2019/09/04 10:37:14 Using internal plugin for parallels-iso
2019/09/04 10:37:14 Using internal plugin for profitbricks
2019/09/04 10:37:14 Using internal plugin for alicloud-ecs
2019/09/04 10:37:14 Using internal plugin for docker
2019/09/04 10:37:14 Using internal plugin for googlecompute
@adriananeci
adriananeci / Delete CloudFormation stack - retaining resources.md
Created February 14, 2025 11:32 — forked from magnetikonline/README.md
Remove existing AWS CloudFormation stack, but retain all managed resources.

Delete CloudFormation stack - retaining resources

A guide for removing an existing CloudFormation stack - but retaining all managed resources.

First step - we need to get the CloudFormation stack into a state of DELETE_FAILED. This can be achieve by attempting stack delete with an IAM role that only has IAM action rights to cloudformation:DeleteStack and cloudformation:DescribeStackResources.

Create a new temporary IAM role with only the following allowed policy actions:

{