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.

About

Base template for a EC2 server with terraform + ansible

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published