Skip to content

Latest commit

 

History

History
62 lines (51 loc) · 2.02 KB

README.md

File metadata and controls

62 lines (51 loc) · 2.02 KB

oreno-terraform-ecs

wercker status

required

  • AWS access key
  • AWS secret access key
  • SSH key(for Container Instance)
  • VPC Subnet ID
  • Security Group
  • IAM role(for Container Instance)
  • S3 Bucket(for docker-registry)
  • Datadog API Key(for Datadog Agent)

terraform plan

terraform plan \
-var 'access_key=AK123456789123456789' \
-var 'secret_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
-var 'ssh_key_name=your_ssh_key_name' \
-var 'subnet=subnet-12345678' \
-var 'securiy_group=sg-12345678' \
-var 'iam_profile_name=your_iam_role_name' \
-var 's3_bucket_name=your-s3-bucket-name' \
-var 'datadog_api_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

terraform apply

terraform apply \
-var 'access_key=AK123456789123456789' \
-var 'secret_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
-var 'ssh_key_name=your_ssh_key_name' \
-var 'subnet=subnet-12345678' \
-var 'securiy_group=sg-12345678' \
-var 'iam_profile_name=your_iam_role_name' \
-var 's3_bucket_name=your-s3-bucket-name'\
-var 'datadog_api_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

terraform destroy

Caution : s3 bucket force_destroy = "true" so when you run the destroy s3 bucket will be removed.

terraform destroy \
-var 'access_key=AK123456789123456789' \
-var 'secret_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' \
-var 'ssh_key_name=your_ssh_key_name' \
-var 'subnet=subnet-12345678' \
-var 'securiy_group=sg-12345678' \
-var 'iam_profile_name=your_iam_role_name' \
-var 's3_bucket_name=your-s3-bucket-name' \
-var 'datadog_api_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'

description