Giter Club home page Giter Club logo

terraform-aws-iam-role's Introduction

Terraform AWS IAM Role module

Example Usage

Example of aws iam role for ecs task.

module "iam_task_role" {
  source       = "github.com/bryan-rhm/terraform-aws-iam-role?ref=v1.0.0"
  name         = "task-ecs-role"
  statement_id = "TaskExecution"
  trusted_identifier = {
    type        = "Service"
    identifiers = ["ecs-tasks.amazonaws.com"]
  }
  managed_policy_arns = [module.iam_task_policy.output.arn]
}

Requirements

Name Version
terraform >= 1.0.3
aws >= 3.43.0

Providers

Name Version
aws >= 3.43.0

Modules

No modules.

Resources

Name Type
aws_iam_role.role resource
aws_iam_policy_document.aws_trust_policy data source

Inputs

Name Description Type Default Required
conditions Assume Role Conditions
list(object({
condition = object({
test = string
variable = string
values = list(string)
})
}))
[] no
description Description for the IAM role string "Created by terraform" no
managed_policy_arns List of ARNs of IAM policies to attach list(string) null no
name Name for the role string n/a yes
statement_id Identifier for a policy statement (Statement ID). string null no
trusted_identifier Entity allowed to assume the role
object({
type = string # Ex: AWS
identifiers = list(string) # Ex: Account id (1234424)
AWS service ec2.amazonaws.com
})
n/a

Outputs

Name Description
output IAM role attributes

terraform-aws-iam-role's People

Contributors

bryan-rhm avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Forkers

miguelhrocha

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.