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
a42590da
Unverified
Commit
a42590da
authored
Oct 30, 2020
by
Jeff Bachtel
Committed by
GitHub
Oct 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Add role_name_prefix option for oidc roles (#101)
parent
3daad079
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
2 deletions
+10
-2
README.md
modules/iam-assumable-role-with-oidc/README.md
+2
-1
main.tf
modules/iam-assumable-role-with-oidc/main.tf
+1
-0
variables.tf
modules/iam-assumable-role-with-oidc/variables.tf
+7
-1
No files found.
modules/iam-assumable-role-with-oidc/README.md
View file @
a42590da
...
...
@@ -33,7 +33,8 @@ This module supports IAM Roles for kubernetes service accounts as described in t
| provider
\_
url | URL of the OIDC Provider. Use provider
\_
urls to specify several URLs. |
`string`
|
`""`
| no |
| provider
\_
urls | List of URLs of the OIDC Providers |
`list(string)`
|
`[]`
| no |
| role
\_
description | IAM Role description |
`string`
|
`""`
| no |
| role
\_
name | IAM role name |
`string`
|
`""`
| no |
| role
\_
name | IAM role name |
`string`
|
`null`
| no |
| role
\_
name
\_
prefix | IAM role name prefix |
`string`
|
`null`
| no |
| role
\_
path | Path of IAM role |
`string`
|
`"/"`
| no |
| role
\_
permissions
\_
boundary
\_
arn | Permissions boundary ARN to use for IAM role |
`string`
|
`""`
| no |
| role
\_
policy
\_
arns | List of ARNs of IAM policies to attach to IAM role |
`list(string)`
|
`[]`
| no |
...
...
modules/iam-assumable-role-with-oidc/main.tf
View file @
a42590da
...
...
@@ -54,6 +54,7 @@ resource "aws_iam_role" "this" {
count
=
var
.
create_role
?
1
:
0
name
=
var
.
role_name
name_prefix
=
var
.
role_name_prefix
description
=
var
.
role_description
path
=
var
.
role_path
max_session_duration
=
var
.
max_session_duration
...
...
modules/iam-assumable-role-with-oidc/variables.tf
View file @
a42590da
...
...
@@ -31,7 +31,13 @@ variable "tags" {
variable
"role_name"
{
description
=
"IAM role name"
type
=
string
default
=
""
default
=
null
}
variable
"role_name_prefix"
{
description
=
"IAM role name prefix"
type
=
string
default
=
null
}
variable
"role_description"
{
...
...
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