Skip to content

Latest commit

 

History

History
69 lines (50 loc) · 1.99 KB

README.md

File metadata and controls

69 lines (50 loc) · 1.99 KB

terraform-aws-terraformansible

Requirement

Terraform

Ansible

AWS Iam Profile created

AWS Key Donwloaded

SetUp

step1: Create <file_name>.tf
paste below code

module "terraformansible" {
source  = "MDMOQADDAS/terraformansible/aws"
version = "1.0.1"
}

Example
image Step2: Run below code

terraform init

Example image

Step3: Go inside cd .terraform/modules/terraformansible/ Example image Step4: Run Below Command

pwd

Example

image

Step5: Copy above command output and open variables.tf file

  vim variables.tf

Change AMI Id, Instnce type, key name and path of module

image

Step6: Open ansible.cfg file and replace private_key_file

image

Step7: Now you good to go come back to folder and Run Command

cd ../../../
terraform apply

image

image image

image