Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
terraform-aws-iam
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Terraform Modules
terraform-aws-iam
Commits
40375a58
Commit
40375a58
authored
Aug 21, 2019
by
Matt
Committed by
Anton Babenko
Aug 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Trusted Services to iam-assumable-role (#31)
parent
19066278
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
README.md
modules/iam-assumable-role/README.md
+1
-0
main.tf
modules/iam-assumable-role/main.tf
+5
-0
variables.tf
modules/iam-assumable-role/variables.tf
+6
-0
No files found.
modules/iam-assumable-role/README.md
View file @
40375a58
...
...
@@ -25,6 +25,7 @@ Trusted resources can be any [IAM ARNs](https://docs.aws.amazon.com/IAM/latest/U
| role
\_
requires
\_
mfa | Whether role requires MFA | string |
`"true"`
| no |
| tags | A map of tags to add to all resources. | map |
`{}`
| no |
| trusted
\_
role
\_
arns | ARNs of AWS entities who can assume these roles | list |
`[]`
| no |
| trusted
\_
role
\_
services | AWS Services that can assume these roles | list |
`[]`
| no |
## Outputs
...
...
modules/iam-assumable-role/main.tf
View file @
40375a58
...
...
@@ -8,6 +8,11 @@ data "aws_iam_policy_document" "assume_role" {
type
=
"AWS"
identifiers
=
var
.
trusted_role_arns
}
principals
{
type
=
"Service"
identifiers
=
var
.
trusted_role_services
}
}
}
...
...
modules/iam-assumable-role/variables.tf
View file @
40375a58
...
...
@@ -4,6 +4,12 @@ variable "trusted_role_arns" {
default
=
[]
}
variable
"trusted_role_services"
{
description
=
"AWS Services that can assume these roles"
type
=
list
(
string
)
default
=
[]
}
variable
"mfa_age"
{
description
=
"Max age of valid MFA (in seconds) for roles which require MFA"
type
=
number
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment