File tree Expand file tree Collapse file tree 5 files changed +14
-1
lines changed
examples/iam-assumable-role
modules/iam-assumable-role Expand file tree Collapse file tree 5 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ No inputs.
49
49
50
50
| Name | Description |
51
51
| ------| -------------|
52
+ | <a name =" output_iam_instance_profile_id " ></a > [ iam\_ instance\_ profile\_ id] ( #output\_ iam\_ instance\_ profile\_ id ) | IAM Instance profile's ID. |
52
53
| <a name =" output_iam_role_arn " ></a > [ iam\_ role\_ arn] ( #output\_ iam\_ role\_ arn ) | ARN of IAM role |
53
54
| <a name =" output_iam_role_name " ></a > [ iam\_ role\_ name] ( #output\_ iam\_ role\_ name ) | Name of IAM role |
54
55
| <a name =" output_iam_role_path " ></a > [ iam\_ role\_ path] ( #output\_ iam\_ role\_ path ) | Path of IAM role |
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ module "iam_assumable_role_admin" {
17
17
" codedeploy.amazonaws.com"
18
18
]
19
19
20
- create_role = true
20
+ create_role = true
21
+ create_instance_profile = true
21
22
22
23
role_name = " admin"
23
24
role_requires_mfa = true
Original file line number Diff line number Diff line change @@ -22,3 +22,8 @@ output "role_requires_mfa" {
22
22
description = " Whether admin IAM role requires MFA"
23
23
value = module. iam_assumable_role_admin . role_requires_mfa
24
24
}
25
+
26
+ output "iam_instance_profile_id" {
27
+ description = " IAM Instance profile's ID."
28
+ value = module. iam_assumable_role_admin . iam_instance_profile_id
29
+ }
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ No modules.
68
68
| Name | Description |
69
69
| ------| -------------|
70
70
| <a name =" output_iam_instance_profile_arn " ></a > [ iam\_ instance\_ profile\_ arn] ( #output\_ iam\_ instance\_ profile\_ arn ) | ARN of IAM instance profile |
71
+ | <a name =" output_iam_instance_profile_id " ></a > [ iam\_ instance\_ profile\_ id] ( #output\_ iam\_ instance\_ profile\_ id ) | IAM Instance profile's ID. |
71
72
| <a name =" output_iam_instance_profile_name " ></a > [ iam\_ instance\_ profile\_ name] ( #output\_ iam\_ instance\_ profile\_ name ) | Name of IAM instance profile |
72
73
| <a name =" output_iam_instance_profile_path " ></a > [ iam\_ instance\_ profile\_ path] ( #output\_ iam\_ instance\_ profile\_ path ) | Path of IAM instance profile |
73
74
| <a name =" output_iam_role_arn " ></a > [ iam\_ role\_ arn] ( #output\_ iam\_ role\_ arn ) | ARN of IAM role |
Original file line number Diff line number Diff line change @@ -33,6 +33,11 @@ output "iam_instance_profile_name" {
33
33
value = element (concat (aws_iam_instance_profile. this . * . name , [" " ]), 0 )
34
34
}
35
35
36
+ output "iam_instance_profile_id" {
37
+ description = " IAM Instance profile's ID."
38
+ value = element (concat (aws_iam_instance_profile. this . * . id , [" " ]), 0 )
39
+ }
40
+
36
41
output "iam_instance_profile_path" {
37
42
description = " Path of IAM instance profile"
38
43
value = element (concat (aws_iam_instance_profile. this . * . path , [" " ]), 0 )
You can’t perform that action at this time.
0 commit comments