ecs-task-execution-role

dod-iac/ecs-task-execution-role/aws

Terraform Module HCL AWS

An IAM role for use as a ECS task execution role

Install
module "ecs-task-execution-role" {
source = "dod-iac/ecs-task-execution-role/aws"
version = "1.0.1"
}
plain text: /constructs/tfmod-dod-iac-ecs-task-execution-role-aws/install.txt
⭐ Source on GitHub 📦 Registry page
README

Usage Creates an IAM role for use as an ECS task execution role. ``hcl module "ecs_task_execution_role" { source = "dod-iac/ecs-task-execution-role/aws" allow_create_log_groups = true cloudwatch_log_group_names = ["*"] name = format("app-%s-task-execution-role-%s", var.application, var.environment) tags = { Application = var.application Environment = var.environment Automation = "Terraform" } } ` Creates an IAM role for use as an ECS task execution role that writes to a specific list of encrypted CloudWatch log groups. `hcl module "cloudwatch_kms_key" { source = "dod-iac/cloudwatch-kms-key/aws" name = format("alias/app-%s-cloudwatch-logs-%s", var.application, var.environment) tags = { Application = var.application Environment = var.environment Automation = "Terraform" } } resource "aws_clo

Inputs (9)
NameTypeDescriptionDefault
cloudwatch_log_group_nameslist(string)List of names of CloudWatch log groups that this task execution role can write t required
namestringThe name of the AWS IAM role. required
assume_role_policystringThe assume role policy for the AWS IAM role. If blank, allows ECS tasks in the ""
allow_ecrboolAllow instance to pull a container image from an ECR repository.false
policy_descriptionstringThe description of the AWS IAM policy attached to the IAM task execution role. D""
allow_create_log_groupsboolAllow role to create CloudWatch log groups.false
policy_documentstringThe contents of the AWS IAM policy attached to the IAM task execution role. If ""
policy_namestringThe name of the AWS IAM policy attached to the IAM task execution role. Default""
tagsmap(string)Tags applied to the AWS IAM role.{}
Outputs (2)
arn — The Amazon Resource Name (ARN) of the AWS IAM Role.
name — The name of the AWS IAM Role.
Resources (3)
aws_iam_policyaws_iam_roleaws_iam_role_policy_attachment
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.1
Cloud AWS
★ Stars2
Forks4
Total downloads11.0k
Inputs9
Outputs2
Resources3
Examples2
LicenseMIT
Namespacedod-iac
Updated