chmod +x ./startup.sh
docker run -it --rm -v ${PWD}:/work -w /work --entrypoint ./startup.sh amazon/aws-cli:2.0.43
aws configure
https://www.terraform.io/downloads
I install using the "Linux" and "Amazon Linux" options
- yum install -y yum-utils
- yum-config-manager --add-repo https://rpm.releases.hashicorp.com/AmazonLinux/hashicorp.repo
- yum -y install terraform
terraform -v
should work after installing correctly
- create
main.tf
- create
variables.tf
https://registry.terraform.io/namespaces/terraform-aws-modules https://registry.terraform.io/modules/terraform-aws-modules/vpc/aws/latest https://registry.terraform.io/modules/terraform-aws-modules/eks/aws/latest https://learn.hashicorp.com/collections/terraform/aws-get-started?utm_source=terraform_io_download
...
...
...
yum -y install git git --version
terraform init
terraform plan
- Needed to pin the version of the
terraform-aws-modules/vpc/aws
module to 3.14.2 - needed an account with sufficient EKS permissions - https://eksctl.io/usage/minimum-iam-policies/
terraform apply terraform destroy