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
88d01b56
Unverified
Commit
88d01b56
authored
Sep 16, 2021
by
Mukesh Sharma
Committed by
GitHub
Sep 16, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: Added id of iam assumable role to outputs (#164)
parent
5407865d
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
1 deletion
+14
-1
README.md
examples/iam-assumable-role/README.md
+1
-0
main.tf
examples/iam-assumable-role/main.tf
+2
-1
outputs.tf
examples/iam-assumable-role/outputs.tf
+5
-0
README.md
modules/iam-assumable-role/README.md
+1
-0
outputs.tf
modules/iam-assumable-role/outputs.tf
+5
-0
No files found.
examples/iam-assumable-role/README.md
View file @
88d01b56
...
...
@@ -49,6 +49,7 @@ No inputs.
| Name | Description |
|------|-------------|
|
<a
name=
"output_iam_instance_profile_id"
></a>
[
iam\_instance\_profile\_id
](
#output\_iam\_instance\_profile\_id
)
| IAM Instance profile's ID. |
|
<a
name=
"output_iam_role_arn"
></a>
[
iam\_role\_arn
](
#output\_iam\_role\_arn
)
| ARN of IAM role |
|
<a
name=
"output_iam_role_name"
></a>
[
iam\_role\_name
](
#output\_iam\_role\_name
)
| Name of IAM role |
|
<a
name=
"output_iam_role_path"
></a>
[
iam\_role\_path
](
#output\_iam\_role\_path
)
| Path of IAM role |
...
...
examples/iam-assumable-role/main.tf
View file @
88d01b56
...
...
@@ -17,7 +17,8 @@ module "iam_assumable_role_admin" {
"codedeploy.amazonaws.com"
]
create_role
=
true
create_role
=
true
create_instance_profile
=
true
role_name
=
"admin"
role_requires_mfa
=
true
...
...
examples/iam-assumable-role/outputs.tf
View file @
88d01b56
...
...
@@ -22,3 +22,8 @@ output "role_requires_mfa" {
description
=
"Whether admin IAM role requires MFA"
value
=
module
.
iam_assumable_role_admin
.
role_requires_mfa
}
output
"iam_instance_profile_id"
{
description
=
"IAM Instance profile's ID."
value
=
module
.
iam_assumable_role_admin
.
iam_instance_profile_id
}
modules/iam-assumable-role/README.md
View file @
88d01b56
...
...
@@ -68,6 +68,7 @@ No modules.
| Name | Description |
|------|-------------|
|
<a
name=
"output_iam_instance_profile_arn"
></a>
[
iam\_instance\_profile\_arn
](
#output\_iam\_instance\_profile\_arn
)
| ARN of IAM instance profile |
|
<a
name=
"output_iam_instance_profile_id"
></a>
[
iam\_instance\_profile\_id
](
#output\_iam\_instance\_profile\_id
)
| IAM Instance profile's ID. |
|
<a
name=
"output_iam_instance_profile_name"
></a>
[
iam\_instance\_profile\_name
](
#output\_iam\_instance\_profile\_name
)
| Name of IAM instance profile |
|
<a
name=
"output_iam_instance_profile_path"
></a>
[
iam\_instance\_profile\_path
](
#output\_iam\_instance\_profile\_path
)
| Path of IAM instance profile |
|
<a
name=
"output_iam_role_arn"
></a>
[
iam\_role\_arn
](
#output\_iam\_role\_arn
)
| ARN of IAM role |
...
...
modules/iam-assumable-role/outputs.tf
View file @
88d01b56
...
...
@@ -33,6 +33,11 @@ output "iam_instance_profile_name" {
value
=
element
(
concat
(
aws_iam_instance_profile
.
this
.*.
name
,
[
""
]
),
0
)
}
output
"iam_instance_profile_id"
{
description
=
"IAM Instance profile's ID."
value
=
element
(
concat
(
aws_iam_instance_profile
.
this
.*.
id
,
[
""
]
),
0
)
}
output
"iam_instance_profile_path"
{
description
=
"Path of IAM instance profile"
value
=
element
(
concat
(
aws_iam_instance_profile
.
this
.*.
path
,
[
""
]
),
0
)
...
...
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