Steps on fresh Ubuntu Instance:
$ sudo apt update -y
$ wget https://releases.hashicorp.com/terraform/0.12.26/terraform_0.12.26_linux_amd64.zip
$ sudo apt install unzip -y
$ unzip terraform_0.12.26_linux_amd64.zip
$ sudo mv terraform /bin/
$ rm terraform_0.12.26_linux_amd64.zip
$ terraform -v
Terraform v0.12.26
$ sudo apt install git
$ sudo apt install awscli
$ aws --version
aws-cli/1.14.44 Python/3.6.9 Linux/4.15.0-1065-aws botocore/1.8.48
$ aws configure
AWS Access Key ID [****************S3Q3]:
AWS Secret Access Key [****************vmrW]:
Default region name [us-east-1]:
Default output format [None]:
$ git clone https://github.com/karolnedza/controller_build.git .
$ ssh-keygen -t rsa -f ctrl_key -C "controller_public_key"
https://aws.amazon.com/marketplace/pp?sku=b03hn7ck7yp392plmk8bet56k
$ terraform init
$ terraform apply