Auto-generated
This page is generated by terraform-docs at build time from the infra/ repo. Do not edit manually.
Vault ECS Cluster¶
EC2-backed ECS cluster for Vault analytics services. Includes the ECS cluster, Auto Scaling Group with launch template, IAM roles for task execution and EC2 instances, and Container Insights monitoring.
Requirements¶
| Name | Version |
|---|---|
| terraform | >= 1.6.0 |
| aws | ~> 5.0 |
Providers¶
| Name | Version |
|---|---|
| aws | ~> 5.0 |
Modules¶
No modules.
Resources¶
| Name | Type |
|---|---|
| aws_autoscaling_group.vault_ecs | resource |
| aws_ecs_cluster.vault | resource |
| aws_iam_instance_profile.ecs_instance_profile | resource |
| aws_iam_role.ecs_execution_role | resource |
| aws_iam_role.ecs_instance_role | resource |
| aws_iam_role.ecs_task_role | resource |
| aws_iam_role_policy_attachment.ecs_execution_policy | resource |
| aws_iam_role_policy_attachment.ecs_instance_policy | resource |
| aws_iam_role_policy_attachment.ecs_instance_ssm | resource |
| aws_launch_template.vault_ecs | resource |
| aws_security_group.ecs | resource |
| aws_ami.ecs_optimized | data source |
| aws_iam_policy_document.ecs_assume_role | data source |
| aws_iam_policy_document.ecs_ec2_assume_role | data source |
Inputs¶
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| base_tags | Base tags for resources | map(string) |
{} |
no |
| desired_capacity | Desired number of ECS instances | number |
1 |
no |
| environment | Environment name | string |
n/a | yes |
| group | Logical group/area | string |
"vault" |
no |
| instance_type | EC2 instance type for ECS container instances | string |
n/a | yes |
| max_size | Maximum number of ECS instances | number |
3 |
no |
| min_size | Minimum number of ECS instances | number |
1 |
no |
| name_prefix | Prefix for resource names | string |
n/a | yes |
| region | AWS region | string |
n/a | yes |
| subnet_ids | List of Subnet IDs for the ASG | list(string) |
n/a | yes |
| vpc_id | VPC ID where resources will be created | string |
n/a | yes |
Outputs¶
| Name | Description |
|---|---|
| auto_scaling_group_name | Name of the EC2 Auto Scaling Group backing the ECS cluster. |
| cluster_name | Name of the ECS cluster |
| execution_role_arn | ARN of the ECS execution role |
| security_group_id | Security group ID of ECS tasks |
| task_role_arn | ARN of the ECS task role |