Skip to content
This repository has been archived by the owner on Dec 23, 2024. It is now read-only.

Latest commit

 

History

History
22 lines (17 loc) · 1.15 KB

README.MD

File metadata and controls

22 lines (17 loc) · 1.15 KB

DevOps assignment (IaC)

Task is done, infrastructure is able to be created and destroyed smoothly. ✅

Goal: Implement Terraform code, which would deploy an EC2 instance, running within ASG with ELB in front of it. This instance, through ELB, should share port 22 (SSH port) to outside Internet. In general infrastructure should look like this. Internet --> ELB --> ASG( EC2 )


Instrurcions

Better to start with ./main.sh


Difficulties

  • The most problematic thing was to pass credential data WHILE using (Terraform Cloud)[app.terraform.io] for storing .tfstate file on a remote server. Obviously tfe provider blocks such attempts. So I removed backend "remote" from .tf file and passed credentials by user's input. According to above, how to get sensetive varables from Terraform cloud? Those ones are already typed in Organization -> Workspace -> Variables section.
  • How to get list of instances attached to newly created ASG?
  • How to recreate ASG instances when Resource Template was changed?

AWS Terraform HashiCorp