Image
- AWS Admin user's access & secret to run terraform script
export AWS_ACCESS_KEY=<YOUR AWS ACCESS KEY>
export AWS_SECRET_KEY=<YOUR AWS SECRET KEY>
git clone https://github.com/abhishek7389/anthos-on-aws-terraform.git
anthos-on-aws-terraform
├── gke-on-aws
│ ├── Anthos-on-AWS-architecture.png
│ ├── backend.tf
│ ├── cloud-console-reader.yaml
│ ├── data.tf
│ ├── LICENSES.txt
│ ├── locals.tf
│ ├── main.tf
│ ├── outputs.tf
│ ├── provider.tf
│ ├── README.md
│ ├── terraform.tfvars.sample
│ └── variables.tf
├── vpc
│ ├── backend.tf
│ ├── main.tf
│ ├── outputs.tf
│ ├── provider.tf
│ ├── terraform.tfvars.sample
│ └── variables.tf
└── modules
├── ebs_csi_driver_controller
│ ├── controller.tf
│ ├── csi_driver.tf
│ ├── csi_rbac.tf
│ ├── iam.tf
│ ├── locals.tf
│ ├── node-rbac.tf
│ ├── node.tf
│ ├── outputs.tf
│ ├── README.md
│ ├── variables.tf
│ └── versions.tf
├── fleet_registration
│ ├── main.tf
│ └── variables.tf
├── gke_on_aws
│ ├── anthos-cluster
│ │ ├── main.tf
│ │ ├── outputs.tf
│ │ ├── variables.tf
│ │ └── versions.tf
│ ├── gcp-data
│ │ ├── main.tf
│ │ └── variables.tf
│ └── node-pool
│ ├── main.tf
│ ├── outputs.tf
│ └── variables.tf
└── networking
└── vpc
├── main.tf
├── output.tf
├── variables.tf
└── versions.tf
cd anthos-on-aws-terraform/vpc
- backend.tf file - Definition of your terraform code backend, where all the statefiles gonna save
sample image
- terraform.tfvars.sample - Definition of values of each variable present in the terraform code,before apply make sure rename the file to terraform.tfvars
sample image
1 Download the required modules
terraform init
- Validate the deployments
terraform plan
- Deploy the ASM to our existing cluster
terraform apply
cd ../gke-on-aws
- backend.tf file - Definition of your terraform code backend, where all the statefiles gonna save
sample image
- data.tf file - Definition of your previously created cluster information.
sample image
- terraform.tfvars.sample - Definition of values of each variable present in the terraform code,before apply make sure rename the file to terraform.tfvars
sample image
1 Download the required modules
terraform init
- Validate the deployments
terraform plan
- Deploy the ASM to our existing cluster
terraform apply
Image