Skip to content

Terraform AWS ECS cluster and task definition for GitLab Runner

Notifications You must be signed in to change notification settings

nickkadams/terraform-aws-ecs

Repository files navigation

Terraform AWS ECS

This repository contains Terraform code that uses the AWS Provider to build an AWS ECS cluster and task definition using ECS Fargate launch type compatibility. The ECS cluster and task definition configuration are from the GitLab CI on AWS Fargate documentation.

Table of Contents

Tools

Usage

If you want to override the default variables in variables.tf, copy terraform.tfvars.sample to terraform.tfvars and fill in your specific information.

  1. Initialize the Terraform directory (.terraform/) by running terraform init
  2. Create the Terraform execution plan by running terraform plan
  3. If everything looks correct, you can apply the Terraform changes by running terraform apply and typing yes when prompted.
  4. If this is NOT production and you are finished testing, you can destroy the infrastructure by running terraform destroy and typing yes when prompted.

Notes

  • Thank you to ksatirli for the Terraform linting best practices.

Author Information

This repository is maintained by Nick Adams.

License

Licensed under the Apache License, Version 2.0 (the "License").

You may obtain a copy of the License at apache.org/licenses/LICENSE-2.0.

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" basis, without WARRANTIES or conditions of any kind, either express or implied.

See the License for the specific language governing permissions and limitations under the License.

About

Terraform AWS ECS cluster and task definition for GitLab Runner

Topics

Resources

Stars

Watchers

Forks

Languages