/terraform-aws-ecs

Nginx ECS Cluster behind Application Load Balancer

Primary LanguageHCL

Nginx ECS Cluster behind Application Load Balancer With Terraform

How To Run

  1. Generate Access Key dan Secret Key. Panduan dapat dilihat disini

  2. Buat file aws_keys.tfvars yang berisi seperti beriku

        aws_access_key = "{ACCESS KEY}"
        aws_secret_key = "{SECRET KEY}"
    
  3. Ketikkan

    terraform init
    
  4. Ketikkan

    terraform apply -var-file="aws_keys.tfvars"
    
  5. Ketikkan apabila ingin menghapus cluster dan service yang sudah tidak digunakan.

    terraform destroy -var-file="aws_keys.tfvars"