Skip to content

Commit 37d7591

Browse files
authored
Merge pull request #6 from geekcell/add_instance_profile_output
fix: add Instance Profile Arn to Outputs
2 parents 248686e + 3c6028a commit 37d7591

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ AWS setup!
7474
| Name | Description |
7575
|------|-------------|
7676
| <a name="output_arn"></a> [arn](#output\_arn) | IAM role arn |
77+
| <a name="output_instance_profile_arn"></a> [instance\_profile\_arn](#output\_instance\_profile\_arn) | IAM instance profile arn |
7778
| <a name="output_name"></a> [name](#output\_name) | IAM role name |
7879

7980
## Providers

outputs.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,8 @@ output "name" {
77
description = "IAM role name"
88
value = aws_iam_role.main.name
99
}
10+
11+
output "instance_profile_arn" {
12+
description = "IAM instance profile arn"
13+
value = try(aws_iam_instance_profile.main[0].arn, null)
14+
}

0 commit comments

Comments
 (0)