The easiest way to create Terraform Modules and set up Terraform Cloud with github.com and AWS

git clone https://github.com/aakashbanerjee/gentfmodlayout.git

cd gentfmodlayout

go build gentfmod.go

sudo ln -s -f /Users/username/gentfmodlayout/gentfmod /usr/local/bin

git clone path to your tfcloudsetuptest repo

cd tfcloudsetuptest

gentfmod

{
“Version”: “2012–10–17”,
“Statement”: [
{
“Effect”: “Allow”,
“Principal”: {
“AWS”: “arn:aws:iam::<yourawsaccountnumber>:user/terraform”
},
“Action”: “sts:AssumeRole”,
“Condition”: {}
}
]
}

git add .

git commit -m “first commit”

git push

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store