Skip to content

Turtini/turtini.openshift_aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

turtini.openshift_aws

🔗 Canonical URL: https://turtini.com/github/openshift-aws

Deploy an OpenShift Cluster on AWS using Ansible

1) Install requirements

ansible-galaxy collection install -r requirements.yml python3 -m pip install boto3 botocore brew install awscli # or your preferred method

2) Export AWS creds (or use SSO/role-based auth)

export AWS_PROFILE=myprofile export AWS_REGION=us-east-1

3) Preflight

ansible-playbook -i localhost, playbooks/preflight.yml

4) Build foundation

ansible-playbook -i localhost, playbooks/foundation.yml

5) Teardown DANGER: destroys the VPC and related resources created by the foundation playbook.

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

Notes:

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.

About

Reference implementation for deploying OpenShift on AWS using Ansible.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors