Skip to content

oded-dd/terraform-aws-iam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AWS IAM Terraform module

Terraform module which creates IAM resources on AWS

These types of resources are supported:

Root module calls these modules which can also be used separately to create independent resources:

Usage

module "test-repo" {
  source = "github.com/oded-dd/terraform-aws-iam"

  identifier = "test"
  assume_role_policy = "${file(./assume_role_policy)}"
  policy = "${file(./policy)}"

  # ... omitted
}

Inputs

Name Description Type Default Required
assume_role_policy (Required) The policy that grants an entity permission to assume the role string `` no
create_instance_profile Whether to create an IAM instance profile string true no
create_role Whether to create an IAM role string true no
create_role_policy Whether to create an IAM role policy string true no
force_detach_policies (Optional) Specifies to force detaching any policies the role has before destroying it string false no
identifier (Required) name identifier string - yes
max_session_duration (Optional) The maximum session duration (in seconds) that you want to set for the specified role string 3600 no
path (Optional) The path to the role string / no
policy (Required) The policy document string - yes
role_name The name of the role string `` no

Outputs

Name Description
this_aws_iam_instance_profile_arn The ARN assigned by AWS to the instance profile
this_iam_instance_profile_id The instance profile's ID
this_iam_instance_profile_name The instance profile's name
this_iam_role_arn The Amazon Resource Name (ARN) specifying the role
this_iam_role_name The name of the role
this_iam_role_policy_id The role policy ID, in the form of role_name:role_policy_name
this_iam_role_policy_name The name of the policy

Authors

Module managed by Oded David.

License

Apache 2 Licensed. See LICENSE for full details.

About

Terraform module which creates IAM resource on AWS.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages