ecs-task-role

dod-iac/ecs-task-role/aws

Terraform Module HCL AWS

An IAM role for use as a ECS task role

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

Usage Creates an IAM role for use as an ECS task role. ``hcl module "ecs_task_role" { source = "dod-iac/ecs-task-role/aws" name = format("app-%s-task-role-%s", var.application, var.environment) tags = { Application = var.application Environment = var.environment Automation = "Terraform" } } ` Testing Run all terratest tests using the terratest script. If using aws-vault, you could use aws-vault exec $AWS_PROFILE -- terratest. The AWS_DEFAULT_REGION environment variable is required by the tests. Use TT_SKIP_DESTROY=1 to not destroy the infrastructure created during the tests. Use TT_VERBOSE=1 to log all tests as they are run. The go test command can be executed directly, too. Terraform Version Terraform 0.13. Pin module version to ~> 1.0.0 . Submit pull-requests to main branch. Terraform 0.

Inputs (3)
NameTypeDescriptionDefault
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 ""
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 (1)
aws_iam_role
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.1
Cloud AWS
★ Stars1
Forks2
Total downloads9.4k
Inputs3
Outputs2
Resources1
Examples1
LicenseMIT
Namespacedod-iac
Updated