Skip to content

jd-apprentice/base-web-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template to run AWS EC2 + Docker 🐋

IMG

Requirements 🙂

  • Terraform
  • Ansible
  • AWS Free Tier Account
  • Unix based OS

Steps 📫

  1. Create your ssh-key
  2. Optain your variables from AWS
  3. Populate the variables in secret.tfvars file
  4. Populate the PRIVATE_KEY_PATH in the Makefile
  5. Verify things like ami, instance_type, region in variables.tf
  6. Run make init
  7. Run make

Troubleshooting 🧰

In case the ansible part fail run make connect to connect to the instance manually. After the connection is done exit and run make playbook to run the ansible playbook again.