Skip to content

mergermarket/tf_ecs_task_definition_with_task_role

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tf_ecs_task_definition_with_task_role

Test

## Usage Creates a task definition for an ECS service, with an IAM role for the task associated.

module "taskdef" {
    source = "github.com/mergermarket/tf_ecs_taskdef_with_task_role"

    family                = "live-service-name"
    container_definitions = [
        <<END
{
    ...container definition...
}
        END
    ]

    policy = <<END
{
    ...<IAM Policy>...
}
END

    volume = {
        name = 'data'
        host_path = '/mnt/data'
    }
}

## API

Parameters

Outputs

  • arn - the ARN of the task definition.
  • task_role_arn - the ARN of the Role for this task definition.

About

ECS Task Definition module with IAM role

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published