Skip to content

Commit 318c6bc

Browse files
committed
Adding outputs
1 parent ed12ced commit 318c6bc

File tree

2 files changed

+69
-6
lines changed

2 files changed

+69
-6
lines changed

README.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,24 @@ Check the section "Other modules that you may need to use this module" for detai
5353

5454
## Output values
5555

56+
* scheduled_task_cw_event_role_arn: The Amazon Resource Name (ARN) specifying the role.
57+
* scheduled_task_cw_event_role_create_date: The creation date of the IAM role.
58+
* scheduled_task_cw_event_role_description: The description of the role.
59+
* scheduled_task_cw_event_role_id: The name of the role.
60+
* scheduled_task_cw_event_role_name: The name of the role.
61+
* scheduled_task_cw_event_role_unique_id: The stable and unique string identifying the role.
62+
* aws_iam_role_policy_scheduled_task_cw_event_role_cloudwatch_policy_id: The role policy ID, in the form of role_name:role_policy_name.
63+
* aws_iam_role_policy_scheduled_task_cw_event_role_cloudwatch_policy_name: The name of the policy.
64+
* aws_iam_role_policy_scheduled_task_cw_event_role_cloudwatch_policy_policy: The policy document attached to the role.
65+
* aws_iam_role_policy_scheduled_task_cw_event_role_cloudwatch_policy_role: The name of the role associated with the policy.
5666
* aws_cloudwatch_event_rule_event_rule_arn: The Amazon Resource Name (ARN) of the CloudWatch Event Rule.
5767

5868
## Other modules that you may need to use this module
5969

6070
The networking module should look like this:
6171

6272
module "networking" {
63-
source = "jnonino/networking/aws"
73+
source = "jnonino/networking/aws"
6474
version = "2.0.3"
6575
name_preffix = var.name_preffix
6676
profile = var.profile
@@ -78,11 +88,11 @@ Check versions for this module on:
7888
The ECS cluster module should look like this:
7989

8090
module "ecs-cluster":
81-
source = "jnonino/ecs-cluster/aws"
82-
version = "1.0.0"
83-
name_preffix = var.name_preffix
84-
profile = var.profile
85-
region = var.region
91+
source = "jnonino/ecs-cluster/aws"
92+
version = "1.0.0"
93+
name_preffix = var.name_preffix
94+
profile = var.profile
95+
region = var.region
8696
}
8797

8898
Check versions for this module on:

outputs.tf

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,56 @@
1+
# ---------------------------------------------------------------------------------------------------------------------
2+
# CLOUDWATCH EVENT ROLE
3+
# ---------------------------------------------------------------------------------------------------------------------
4+
output "scheduled_task_cw_event_role_arn" {
5+
description = "The Amazon Resource Name (ARN) specifying the role."
6+
value = aws_iam_role.scheduled_task_cw_event_role.arn
7+
}
8+
9+
output "scheduled_task_cw_event_role_create_date" {
10+
description = "The creation date of the IAM role."
11+
value = aws_iam_role.scheduled_task_cw_event_role.create_date
12+
}
13+
14+
output "scheduled_task_cw_event_role_description" {
15+
description = "The description of the role."
16+
value = aws_iam_role.scheduled_task_cw_event_role.description
17+
}
18+
19+
output "scheduled_task_cw_event_role_id" {
20+
description = "The name of the role."
21+
value = aws_iam_role.scheduled_task_cw_event_role.id
22+
}
23+
24+
output "scheduled_task_cw_event_role_name" {
25+
description = "The name of the role."
26+
value = aws_iam_role.scheduled_task_cw_event_role.name
27+
}
28+
29+
output "scheduled_task_cw_event_role_unique_id" {
30+
description = "The stable and unique string identifying the role."
31+
value = aws_iam_role.scheduled_task_cw_event_role.unique_id
32+
}
33+
34+
output "aws_iam_role_policy_scheduled_task_cw_event_role_cloudwatch_policy_id" {
35+
description = "The role policy ID, in the form of role_name:role_policy_name."
36+
value = aws_iam_role_policy.scheduled_task_cw_event_role_cloudwatch_policy.id
37+
}
38+
39+
output "aws_iam_role_policy_scheduled_task_cw_event_role_cloudwatch_policy_name" {
40+
description = "The name of the policy."
41+
value = aws_iam_role_policy.scheduled_task_cw_event_role_cloudwatch_policy.name
42+
}
43+
44+
output "aws_iam_role_policy_scheduled_task_cw_event_role_cloudwatch_policy_policy" {
45+
description = "The policy document attached to the role."
46+
value = aws_iam_role_policy.scheduled_task_cw_event_role_cloudwatch_policy.policy
47+
}
48+
49+
output "aws_iam_role_policy_scheduled_task_cw_event_role_cloudwatch_policy_role" {
50+
description = "The name of the role associated with the policy."
51+
value = aws_iam_role_policy.scheduled_task_cw_event_role_cloudwatch_policy.role
52+
}
53+
154
# ---------------------------------------------------------------------------------------------------------------------
255
# CLOUDWATCH EVENT RULE
356
# ---------------------------------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)