ansible / product-demos

GNU General Public License v3.0
195 stars 194 forks source link

Add teardown template/workflow for "Deploy Cloud Stack in AWS" workflow #192

Open criscofats opened 1 month ago

criscofats commented 1 month ago

Summary

Request for a teardown template be created so you can clear everything in the AWS account (that isn't a requirement) so you can start from scratch again and show customers the cloud deployments etc. again? Similar to provisioner/teardown_lab.yml

Issue Type

Feature Request

Ansible Playbook Output

NA

Ansible Version

2.4+

Ansible Configuration

NA

Ansible Execution Node

Ansible Controller

Operating System

NA

l3acon commented 1 month ago

Think this is a great idea. I would caution that we often hard-code node names for our cloud templates so when you terminate an instance that can lead to issues when you then try to re-create the same ec2 instance. The ansible aws modules error out when you try to change a "terminated" instance into a "running" instance. I have been able to bypass this problem moving regions, though if there's a better solution I'd be happy to hear that as well.