Skip to content

Configuring a Linux host as a secure web server using Terraform, Ansible, AWS EC2 and Shell

Notifications You must be signed in to change notification settings

ChaitDevOps/swa_sre_challenge

 
 

Repository files navigation

Tools Used: AWS EC2, Terraform, Ansible and Shell script

Step by step execution:

  1. Run terraform apply to generate AWS Ec2 instance with t2.micro
  2. Userdata initiates the install.sh which installs Ansible,downloads playbooks from s3 and executes the apache_install_playbook.yml
  3. Apache is installed, Started
  4. ssl_module is installed
  5. Creates an openssl self signed key and certificate
  6. Ansible task to copy index.html to http document root which displays SRE_CHALLENGE.
  7. httpd.conf is updated to listen at port 443 and redirect http to https.
  8. Automated test to verify that the port is listening at 443 is included in Ansible playbook.
  9. Step by step execution is captured in install.log for reference purposes.

About

Configuring a Linux host as a secure web server using Terraform, Ansible, AWS EC2 and Shell

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 64.6%
  • Shell 34.1%
  • HTML 1.3%