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
5bb2ab91
Unverified
Commit
5bb2ab91
authored
May 26, 2020
by
Víctor M. Mesas
Committed by
GitHub
May 26, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: Allow customisation of trusted_role_actions in iam-assumable-role module (#76)
parent
3b665db2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
1 deletion
+8
-1
README.md
modules/iam-assumable-role/README.md
+1
-0
main.tf
modules/iam-assumable-role/main.tf
+1
-1
variables.tf
modules/iam-assumable-role/variables.tf
+6
-0
No files found.
modules/iam-assumable-role/README.md
View file @
5bb2ab91
...
...
@@ -39,6 +39,7 @@ Trusted resources can be any [IAM ARNs](https://docs.aws.amazon.com/IAM/latest/U
| role
\_
permissions
\_
boundary
\_
arn | Permissions boundary ARN to use for IAM role |
`string`
|
`""`
| no |
| role
\_
requires
\_
mfa | Whether role requires MFA |
`bool`
|
`true`
| no |
| tags | A map of tags to add to IAM role resources |
`map(string)`
|
`{}`
| no |
| trusted
\_
role
\_
actions | Actions of STS |
`list(string)`
|
<pre>
[
<br> "sts:AssumeRole"<br>
]
</pre>
| no |
| trusted
\_
role
\_
arns | ARNs of AWS entities who can assume these roles |
`list(string)`
|
`[]`
| no |
| trusted
\_
role
\_
services | AWS Services that can assume these roles |
`list(string)`
|
`[]`
| no |
...
...
modules/iam-assumable-role/main.tf
View file @
5bb2ab91
...
...
@@ -2,7 +2,7 @@ data "aws_iam_policy_document" "assume_role" {
statement
{
effect
=
"Allow"
actions
=
[
"sts:AssumeRole"
]
actions
=
var
.
trusted_role_actions
principals
{
type
=
"AWS"
...
...
modules/iam-assumable-role/variables.tf
View file @
5bb2ab91
variable
"trusted_role_actions"
{
description
=
"Actions of STS"
type
=
list
(
string
)
default
=
[
"sts:AssumeRole"
]
}
variable
"trusted_role_arns"
{
description
=
"ARNs of AWS entities who can assume these roles"
type
=
list
(
string
)
...
...
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