Skip to content

Latest commit

 

History

History
113 lines (66 loc) · 2.8 KB

File metadata and controls

113 lines (66 loc) · 2.8 KB
parent title nav_exclude
Infrastructure Components
AWS ECS-Cluster
false

AWS ECS-Cluster

source = "git::https://github.com/slalom-ggp/dataops-infra/tree/main/components/aws/ecs-cluster?ref=main"

Overview

ECS, or EC2 Container Service, is able to run docker containers natively in AWS cloud. While the module can support classic EC2-based and Fargate, features, this module generally prefers "ECS Fargete", which allows dynamic launching of docker containers with no always-on cost and no servers to manage or pay for when tasks are not running.

Use in combination with the ECS-Task component.

Requirements

No requirements.

Providers

The following providers are used by this module:

  • aws

  • random

Required Inputs

The following input variables are required:

name_prefix

Description: Standard name_prefix module input. (Prefix counts towards 64-character max length for certain resource types.)

Type: string

environment

Description: Standard environment module input.

Type:

object({
    vpc_id          = string
    aws_region      = string
    public_subnets  = list(string)
    private_subnets = list(string)
  })

resource_tags

Description: Standard resource_tags module input.

Type: map(string)

Optional Inputs

The following input variables are optional (have default values):

ec2_instance_type

Description: Optional. Overrides default instance type if using always-on EC2 instances (i.e. ec2_instance_count > 0).

Type: string

Default: "m4.xlarge"

ec2_instance_count

Description: Optional. Number of 'always-on' EC2 instances. (Default is 0, meaning no always-on EC2 resources.).

Type: number

Default: 0

Outputs

The following outputs are exported:

ecs_cluster_name

Description: The name of the ECS cluster.

ecs_cluster_arn

Description: The unique ID (ARN) of the ECS cluster.

ecs_instance_role

Description: The name of the IAM instance role used by the ECS cluster. (Can be used to grant additional permissions.)


Source Files

Source code for this module is available using the links below.


NOTE: This documentation was auto-generated using terraform-docs and s-infra from slalom.dataops. Please do not attempt to manually update this file.