Terraform Module
GitLab Repository: https://gitlab.com/miquido/terraform/terraform-ecs-task
module "main" {
source = "git::ssh://[email protected]/miquido/terraform/terraform-ecs-task.git?ref=master"
...
}
Name | Version |
---|---|
terraform | >= 0.13 |
aws | ~> 3.0 |
Name | Version |
---|---|
aws | ~> 3.0 |
Name | Source | Version |
---|---|---|
container | git::https://github.com/cloudposse/terraform-aws-ecs-container-definition | 0.58.1 |
label | git::https://github.com/cloudposse/terraform-terraform-label | 0.8.0 |
Name | Type |
---|---|
aws_cloudwatch_log_group.app | resource |
aws_ecs_task_definition.default | resource |
aws_iam_role.execution_role | resource |
aws_iam_role.service_role | resource |
aws_iam_role_policy.ecs-exec-ssm-secrets | resource |
aws_iam_role_policy.execution-policy | resource |
aws_iam_policy_document.ecs-exec-ssm-secrets | data source |
aws_iam_policy_document.execution-policy | data source |
aws_iam_policy_document.execution_role | data source |
aws_iam_policy_document.service_role | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
assign_public_ip | n/a | bool |
false |
no |
cluster_arn | n/a | string |
n/a | yes |
container_cmd | Command that will be run on the task | list(string) |
null |
no |
container_cpu | n/a | number |
n/a | yes |
container_image | n/a | string |
n/a | yes |
container_memory | n/a | number |
n/a | yes |
container_tag | n/a | string |
n/a | yes |
environment | n/a | string |
n/a | yes |
environment_variables | Environment variables passed to container | list(object({ |
[] |
no |
log_configuration | Log configuration options to send to a custom log driver for the container. For more details, see https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_LogConfiguration.html | object({ |
null |
no |
log_retention | Specifies the number of days you want to retain log events in the specified log group. Option has no effect when custom "log_configuration" variable is specified. | number |
7 |
no |
name | n/a | string |
n/a | yes |
project | n/a | string |
n/a | yes |
region | n/a | string |
n/a | yes |
secrets | The secrets to pass to the container. This is a list of maps | list(object({ |
[] |
no |
security_groups | n/a | list(string) |
n/a | yes |
subnets | n/a | list(string) |
n/a | yes |
tags | n/a | map(string) |
{} |
no |
Name | Description |
---|---|
container_name | n/a |
execution_role_arn | n/a |
service_role_arn | n/a |
service_role_id | n/a |
task_definition_arn | n/a |
Available targets:
help Help screen
help/all Display help for all targets
help/short This help short screen
lint Lint Terraform code
-
Make changes in terraform files
-
Regenerate documentation
bash <(git archive [email protected]:miquido/terraform/terraform-readme-update.git master update.sh | tar -xO)
-
Run lint
make lint
Copyright © 2017-2022 Miquido