This repository contains Terraform (infrastructure) and Ansible (configuration) for the DevOps Bootcamp final project.
devops-bootcamp-project/
├── terraform/
├── ansible/
└── README.md
cd terraform
terraform fmt -check -recursive
terraform init
terraform validate
terraform plan -refresh=falseNote:
terraform planrequires AWS credentials because it resolves the Ubuntu 24.04 AMI from AWS.
cd ansible
ansible-playbook --syntax-check -i inventories/production/hosts.ini playbooks/site.yml- Configure Terraform remote state by copying
terraform/backend.s3.tf.exampletoterraform/backend.tfand updating the bucket name (must be globally unique). - Ensure you have AWS credentials configured locally (
aws configureor environment variables). - Provide SSH access (optional) and/or use SSM for access.
- Update
ansible/inventories/production/hosts.iniwith the correct hosts (EIP for web; private IPs for controller/monitoring).