🔗 Canonical URL: https://turtini.com/github/openshift-aws
Deploy an OpenShift Cluster on AWS using Ansible
ansible-galaxy collection install -r requirements.yml python3 -m pip install boto3 botocore brew install awscli # or your preferred method
export AWS_PROFILE=myprofile export AWS_REGION=us-east-1
ansible-playbook -i localhost, playbooks/preflight.yml
ansible-playbook -i localhost, playbooks/foundation.yml
ansible-playbook -i localhost, playbooks/teardown.yml -e confirm_destroy=true
#Optional toggles:
ansible-playbook -i localhost, playbooks/teardown.yml
-e confirm_destroy=true
-e delete_keypair=true
-e delete_route53_zone_on_teardown=false
NAT must be deleted before subnets (AWS won’t let you delete a subnet with NAT resources still attached). Route 53 zone deletion can fail if there are records besides NS/SOA; that’s why it’s off by default. If the user created extra resources inside the VPC (EC2 instances, ENIs, load balancers), VPC deletion will fail — and that’s correct behavior.