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

magzim21/aws_terraform

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

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

About

ASG(EC2) + ELB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published