Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 50 additions & 5 deletions README.md

Large diffs are not rendered by default.

26 changes: 20 additions & 6 deletions examples/complete/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ Configuration in this directory creates:
To run this example you need to execute:

```bash
$ terraform init
$ terraform plan
$ terraform apply
terraform init
terraform plan
terraform apply
```

Note that this example may create resources which will incur monetary charges on your AWS bill. Run `terraform destroy` when you no longer need these resources.
Expand All @@ -27,13 +27,13 @@ Note that this example may create resources which will incur monetary charges on
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.5.7 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.14 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.15 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 6.14 |
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 6.15 |

## Modules

Expand Down Expand Up @@ -66,12 +66,26 @@ No inputs.
| Name | Description |
|------|-------------|
| <a name="output_alb_dns_name"></a> [alb\_dns\_name](#output\_alb\_dns\_name) | The DNS name of the load balancer |
| <a name="output_capacity_providers"></a> [capacity\_providers](#output\_capacity\_providers) | Map of autoscaling capacity providers created and their attributes |
| <a name="output_cloudwatch_log_group_arn"></a> [cloudwatch\_log\_group\_arn](#output\_cloudwatch\_log\_group\_arn) | ARN of CloudWatch log group created |
| <a name="output_cloudwatch_log_group_name"></a> [cloudwatch\_log\_group\_name](#output\_cloudwatch\_log\_group\_name) | Name of CloudWatch log group created |
| <a name="output_cluster_arn"></a> [cluster\_arn](#output\_cluster\_arn) | ARN that identifies the cluster |
| <a name="output_cluster_autoscaling_capacity_providers"></a> [cluster\_autoscaling\_capacity\_providers](#output\_cluster\_autoscaling\_capacity\_providers) | Map of capacity providers created and their attributes |
| <a name="output_cluster_capacity_providers"></a> [cluster\_capacity\_providers](#output\_cluster\_capacity\_providers) | Map of cluster capacity providers attributes |
| <a name="output_cluster_id"></a> [cluster\_id](#output\_cluster\_id) | ID that identifies the cluster |
| <a name="output_cluster_name"></a> [cluster\_name](#output\_cluster\_name) | Name that identifies the cluster |
| <a name="output_infrastructure_iam_role_arn"></a> [infrastructure\_iam\_role\_arn](#output\_infrastructure\_iam\_role\_arn) | The Amazon Resource Name (ARN) specifying the IAM role |
| <a name="output_infrastructure_iam_role_name"></a> [infrastructure\_iam\_role\_name](#output\_infrastructure\_iam\_role\_name) | IAM role name |
| <a name="output_infrastructure_iam_role_unique_id"></a> [infrastructure\_iam\_role\_unique\_id](#output\_infrastructure\_iam\_role\_unique\_id) | Stable and unique string identifying the IAM role |
| <a name="output_node_iam_instance_profile_arn"></a> [node\_iam\_instance\_profile\_arn](#output\_node\_iam\_instance\_profile\_arn) | ARN assigned by AWS to the instance profile |
| <a name="output_node_iam_instance_profile_id"></a> [node\_iam\_instance\_profile\_id](#output\_node\_iam\_instance\_profile\_id) | Instance profile's ID |
| <a name="output_node_iam_instance_profile_unique"></a> [node\_iam\_instance\_profile\_unique](#output\_node\_iam\_instance\_profile\_unique) | Stable and unique string identifying the IAM instance profile |
| <a name="output_node_iam_role_arn"></a> [node\_iam\_role\_arn](#output\_node\_iam\_role\_arn) | The Amazon Resource Name (ARN) specifying the IAM role |
| <a name="output_node_iam_role_name"></a> [node\_iam\_role\_name](#output\_node\_iam\_role\_name) | IAM role name |
| <a name="output_node_iam_role_unique_id"></a> [node\_iam\_role\_unique\_id](#output\_node\_iam\_role\_unique\_id) | Stable and unique string identifying the IAM role |
| <a name="output_services"></a> [services](#output\_services) | Map of services created and their attributes |
| <a name="output_task_exec_iam_role_arn"></a> [task\_exec\_iam\_role\_arn](#output\_task\_exec\_iam\_role\_arn) | Task execution IAM role ARN |
| <a name="output_task_exec_iam_role_name"></a> [task\_exec\_iam\_role\_name](#output\_task\_exec\_iam\_role\_name) | Task execution IAM role name |
| <a name="output_task_exec_iam_role_unique_id"></a> [task\_exec\_iam\_role\_unique\_id](#output\_task\_exec\_iam\_role\_unique\_id) | Stable and unique string identifying the task execution IAM role |
<!-- END_TF_DOCS -->

## License
Expand Down
76 changes: 73 additions & 3 deletions examples/complete/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,84 @@ output "cluster_name" {
value = module.ecs.cluster_name
}

output "cloudwatch_log_group_name" {
description = "Name of CloudWatch log group created"
value = module.ecs.cloudwatch_log_group_name
}

output "cloudwatch_log_group_arn" {
description = "ARN of CloudWatch log group created"
value = module.ecs.cloudwatch_log_group_arn
}

output "cluster_capacity_providers" {
description = "Map of cluster capacity providers attributes"
value = module.ecs.cluster_capacity_providers
}

output "cluster_autoscaling_capacity_providers" {
description = "Map of capacity providers created and their attributes"
value = module.ecs.autoscaling_capacity_providers
output "capacity_providers" {
description = "Map of autoscaling capacity providers created and their attributes"
value = module.ecs.capacity_providers
}

output "task_exec_iam_role_name" {
description = "Task execution IAM role name"
value = module.ecs.task_exec_iam_role_name
}

output "task_exec_iam_role_arn" {
description = "Task execution IAM role ARN"
value = module.ecs.task_exec_iam_role_arn
}

output "task_exec_iam_role_unique_id" {
description = "Stable and unique string identifying the task execution IAM role"
value = module.ecs.task_exec_iam_role_unique_id
}

output "infrastructure_iam_role_arn" {
description = "The Amazon Resource Name (ARN) specifying the IAM role"
value = module.ecs.infrastructure_iam_role_arn
}

output "infrastructure_iam_role_name" {
description = "IAM role name"
value = module.ecs.infrastructure_iam_role_name
}

output "infrastructure_iam_role_unique_id" {
description = "Stable and unique string identifying the IAM role"
value = module.ecs.infrastructure_iam_role_unique_id
}

output "node_iam_role_arn" {
description = "The Amazon Resource Name (ARN) specifying the IAM role"
value = module.ecs.node_iam_role_arn
}

output "node_iam_role_name" {
description = "IAM role name"
value = module.ecs.node_iam_role_name
}

output "node_iam_role_unique_id" {
description = "Stable and unique string identifying the IAM role"
value = module.ecs.node_iam_role_unique_id
}

output "node_iam_instance_profile_arn" {
description = "ARN assigned by AWS to the instance profile"
value = module.ecs.node_iam_instance_profile_arn
}

output "node_iam_instance_profile_id" {
description = "Instance profile's ID"
value = module.ecs.node_iam_instance_profile_id
}

output "node_iam_instance_profile_unique" {
description = "Stable and unique string identifying the IAM instance profile"
value = module.ecs.node_iam_instance_profile_unique
}

################################################################################
Expand Down
2 changes: 1 addition & 1 deletion examples/complete/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 6.14"
version = ">= 6.15"
}
}
}
8 changes: 4 additions & 4 deletions examples/container-definition/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ Configuration in this directory creates:
To run this example you need to execute:

```bash
$ terraform init
$ terraform plan
$ terraform apply
terraform init
terraform plan
terraform apply
```

Note that this example may create resources which will incur monetary charges on your AWS bill. Run `terraform destroy` when you no longer need these resources.
Expand All @@ -22,7 +22,7 @@ Note that this example may create resources which will incur monetary charges on
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.5.7 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.14 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.15 |
| <a name="requirement_null"></a> [null](#requirement\_null) | >= 3.2 |

## Providers
Expand Down
2 changes: 1 addition & 1 deletion examples/container-definition/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 6.14"
version = ">= 6.15"
}
null = {
source = "hashicorp/null"
Expand Down
26 changes: 20 additions & 6 deletions examples/ec2-autoscaling/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ Configuration in this directory creates:
To run this example you need to execute:

```bash
$ terraform init
$ terraform plan
$ terraform apply
terraform init
terraform plan
terraform apply
```

Note that this example may create resources which will incur monetary charges on your AWS bill. Run `terraform destroy` when you no longer need these resources.
Expand All @@ -27,13 +27,13 @@ Note that this example may create resources which will incur monetary charges on
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.5.7 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.14 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 6.15 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 6.14 |
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 6.15 |

## Modules

Expand Down Expand Up @@ -62,11 +62,22 @@ No inputs.
| Name | Description |
|------|-------------|
| <a name="output_alb_dns_name"></a> [alb\_dns\_name](#output\_alb\_dns\_name) | The DNS name of the load balancer |
| <a name="output_capacity_providers"></a> [capacity\_providers](#output\_capacity\_providers) | Map of autoscaling capacity providers created and their attributes |
| <a name="output_cloudwatch_log_group_arn"></a> [cloudwatch\_log\_group\_arn](#output\_cloudwatch\_log\_group\_arn) | ARN of CloudWatch log group created |
| <a name="output_cloudwatch_log_group_name"></a> [cloudwatch\_log\_group\_name](#output\_cloudwatch\_log\_group\_name) | Name of CloudWatch log group created |
| <a name="output_cluster_arn"></a> [cluster\_arn](#output\_cluster\_arn) | ARN that identifies the cluster |
| <a name="output_cluster_autoscaling_capacity_providers"></a> [cluster\_autoscaling\_capacity\_providers](#output\_cluster\_autoscaling\_capacity\_providers) | Map of capacity providers created and their attributes |
| <a name="output_cluster_capacity_providers"></a> [cluster\_capacity\_providers](#output\_cluster\_capacity\_providers) | Map of cluster capacity providers attributes |
| <a name="output_cluster_id"></a> [cluster\_id](#output\_cluster\_id) | ID that identifies the cluster |
| <a name="output_cluster_name"></a> [cluster\_name](#output\_cluster\_name) | Name that identifies the cluster |
| <a name="output_infrastructure_iam_role_arn"></a> [infrastructure\_iam\_role\_arn](#output\_infrastructure\_iam\_role\_arn) | The Amazon Resource Name (ARN) specifying the IAM role |
| <a name="output_infrastructure_iam_role_name"></a> [infrastructure\_iam\_role\_name](#output\_infrastructure\_iam\_role\_name) | IAM role name |
| <a name="output_infrastructure_iam_role_unique_id"></a> [infrastructure\_iam\_role\_unique\_id](#output\_infrastructure\_iam\_role\_unique\_id) | Stable and unique string identifying the IAM role |
| <a name="output_node_iam_instance_profile_arn"></a> [node\_iam\_instance\_profile\_arn](#output\_node\_iam\_instance\_profile\_arn) | ARN assigned by AWS to the instance profile |
| <a name="output_node_iam_instance_profile_id"></a> [node\_iam\_instance\_profile\_id](#output\_node\_iam\_instance\_profile\_id) | Instance profile's ID |
| <a name="output_node_iam_instance_profile_unique"></a> [node\_iam\_instance\_profile\_unique](#output\_node\_iam\_instance\_profile\_unique) | Stable and unique string identifying the IAM instance profile |
| <a name="output_node_iam_role_arn"></a> [node\_iam\_role\_arn](#output\_node\_iam\_role\_arn) | The Amazon Resource Name (ARN) specifying the IAM role |
| <a name="output_node_iam_role_name"></a> [node\_iam\_role\_name](#output\_node\_iam\_role\_name) | IAM role name |
| <a name="output_node_iam_role_unique_id"></a> [node\_iam\_role\_unique\_id](#output\_node\_iam\_role\_unique\_id) | Stable and unique string identifying the IAM role |
| <a name="output_service_autoscaling_policies"></a> [service\_autoscaling\_policies](#output\_service\_autoscaling\_policies) | Map of autoscaling policies and their attributes |
| <a name="output_service_autoscaling_scheduled_actions"></a> [service\_autoscaling\_scheduled\_actions](#output\_service\_autoscaling\_scheduled\_actions) | Map of autoscaling scheduled actions and their attributes |
| <a name="output_service_container_definitions"></a> [service\_container\_definitions](#output\_service\_container\_definitions) | Container definitions |
Expand All @@ -89,6 +100,9 @@ No inputs.
| <a name="output_service_tasks_iam_role_arn"></a> [service\_tasks\_iam\_role\_arn](#output\_service\_tasks\_iam\_role\_arn) | Tasks IAM role ARN |
| <a name="output_service_tasks_iam_role_name"></a> [service\_tasks\_iam\_role\_name](#output\_service\_tasks\_iam\_role\_name) | Tasks IAM role name |
| <a name="output_service_tasks_iam_role_unique_id"></a> [service\_tasks\_iam\_role\_unique\_id](#output\_service\_tasks\_iam\_role\_unique\_id) | Stable and unique string identifying the tasks IAM role |
| <a name="output_task_exec_iam_role_arn"></a> [task\_exec\_iam\_role\_arn](#output\_task\_exec\_iam\_role\_arn) | Task execution IAM role ARN |
| <a name="output_task_exec_iam_role_name"></a> [task\_exec\_iam\_role\_name](#output\_task\_exec\_iam\_role\_name) | Task execution IAM role name |
| <a name="output_task_exec_iam_role_unique_id"></a> [task\_exec\_iam\_role\_unique\_id](#output\_task\_exec\_iam\_role\_unique\_id) | Stable and unique string identifying the task execution IAM role |
<!-- END_TF_DOCS -->

## License
Expand Down
76 changes: 73 additions & 3 deletions examples/ec2-autoscaling/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,84 @@ output "cluster_name" {
value = module.ecs_cluster.name
}

output "cloudwatch_log_group_name" {
description = "Name of CloudWatch log group created"
value = module.ecs_cluster.cloudwatch_log_group_name
}

output "cloudwatch_log_group_arn" {
description = "ARN of CloudWatch log group created"
value = module.ecs_cluster.cloudwatch_log_group_arn
}

output "cluster_capacity_providers" {
description = "Map of cluster capacity providers attributes"
value = module.ecs_cluster.cluster_capacity_providers
}

output "cluster_autoscaling_capacity_providers" {
description = "Map of capacity providers created and their attributes"
value = module.ecs_cluster.autoscaling_capacity_providers
output "capacity_providers" {
description = "Map of autoscaling capacity providers created and their attributes"
value = module.ecs_cluster.capacity_providers
}

output "task_exec_iam_role_name" {
description = "Task execution IAM role name"
value = module.ecs_cluster.task_exec_iam_role_name
}

output "task_exec_iam_role_arn" {
description = "Task execution IAM role ARN"
value = module.ecs_cluster.task_exec_iam_role_arn
}

output "task_exec_iam_role_unique_id" {
description = "Stable and unique string identifying the task execution IAM role"
value = module.ecs_cluster.task_exec_iam_role_unique_id
}

output "infrastructure_iam_role_arn" {
description = "The Amazon Resource Name (ARN) specifying the IAM role"
value = module.ecs_cluster.infrastructure_iam_role_arn
}

output "infrastructure_iam_role_name" {
description = "IAM role name"
value = module.ecs_cluster.infrastructure_iam_role_name
}

output "infrastructure_iam_role_unique_id" {
description = "Stable and unique string identifying the IAM role"
value = module.ecs_cluster.infrastructure_iam_role_unique_id
}

output "node_iam_role_arn" {
description = "The Amazon Resource Name (ARN) specifying the IAM role"
value = module.ecs_cluster.node_iam_role_arn
}

output "node_iam_role_name" {
description = "IAM role name"
value = module.ecs_cluster.node_iam_role_name
}

output "node_iam_role_unique_id" {
description = "Stable and unique string identifying the IAM role"
value = module.ecs_cluster.node_iam_role_unique_id
}

output "node_iam_instance_profile_arn" {
description = "ARN assigned by AWS to the instance profile"
value = module.ecs_cluster.node_iam_instance_profile_arn
}

output "node_iam_instance_profile_id" {
description = "Instance profile's ID"
value = module.ecs_cluster.node_iam_instance_profile_id
}

output "node_iam_instance_profile_unique" {
description = "Stable and unique string identifying the IAM instance profile"
value = module.ecs_cluster.node_iam_instance_profile_unique
}

################################################################################
Expand Down
2 changes: 1 addition & 1 deletion examples/ec2-autoscaling/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 6.14"
version = ">= 6.15"
}
}
}
Loading
Loading