generated from clowdhaus/terraform-aws-module-template
-
-
Notifications
You must be signed in to change notification settings - Fork 100
/
outputs.tf
156 lines (125 loc) · 5.79 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
################################################################################
# IAM Roles
################################################################################
# DMS Endpoint
output "dms_access_for_endpoint_iam_role_arn" {
description = "Amazon Resource Name (ARN) specifying the role"
value = try(aws_iam_role.dms_access_for_endpoint[0].arn, null)
}
output "dms_access_for_endpoint_iam_role_id" {
description = "Name of the IAM role"
value = try(aws_iam_role.dms_access_for_endpoint[0].id, null)
}
output "dms_access_for_endpoint_iam_role_unique_id" {
description = "Stable and unique string identifying the role"
value = try(aws_iam_role.dms_access_for_endpoint[0].unique_id, null)
}
# DMS CloudWatch Logs
output "dms_cloudwatch_logs_iam_role_arn" {
description = "Amazon Resource Name (ARN) specifying the role"
value = try(aws_iam_role.dms_cloudwatch_logs_role[0].arn, null)
}
output "dms_cloudwatch_logs_iam_role_id" {
description = "Name of the IAM role"
value = try(aws_iam_role.dms_cloudwatch_logs_role[0].id, null)
}
output "dms_cloudwatch_logs_iam_role_unique_id" {
description = "Stable and unique string identifying the role"
value = try(aws_iam_role.dms_cloudwatch_logs_role[0].unique_id, null)
}
# DMS VPC
output "dms_vpc_iam_role_arn" {
description = "Amazon Resource Name (ARN) specifying the role"
value = try(aws_iam_role.dms_vpc_role[0].arn, null)
}
output "dms_vpc_iam_role_id" {
description = "Name of the IAM role"
value = try(aws_iam_role.dms_vpc_role[0].id, null)
}
output "dms_vpc_iam_role_unique_id" {
description = "Stable and unique string identifying the role"
value = try(aws_iam_role.dms_vpc_role[0].unique_id, null)
}
################################################################################
# Subnet group
################################################################################
output "replication_subnet_group_id" {
description = "The ID of the subnet group"
value = try(aws_dms_replication_subnet_group.this[0].id, null)
}
################################################################################
# Instance
################################################################################
output "replication_instance_arn" {
description = "The Amazon Resource Name (ARN) of the replication instance"
value = try(aws_dms_replication_instance.this[0].replication_instance_arn, null)
}
output "replication_instance_private_ips" {
description = "A list of the private IP addresses of the replication instance"
value = try(aws_dms_replication_instance.this[0].replication_instance_private_ips, null)
}
output "replication_instance_public_ips" {
description = "A list of the public IP addresses of the replication instance"
value = try(aws_dms_replication_instance.this[0].replication_instance_public_ips, null)
}
output "replication_instance_tags_all" {
description = "A map of tags assigned to the resource, including those inherited from the provider `default_tags` configuration block"
value = try(aws_dms_replication_instance.this[0].tags_all, null)
}
################################################################################
# Endpoint
################################################################################
output "endpoints" {
description = "A map of maps containing the endpoints created and their full output of attributes and values"
value = aws_dms_endpoint.this
sensitive = true
}
################################################################################
# S3 Endpoint
################################################################################
output "s3_endpoints" {
description = "A map of maps containing the S3 endpoints created and their full output of attributes and values"
value = aws_dms_s3_endpoint.this
sensitive = true
}
################################################################################
# Replication Task
################################################################################
output "replication_tasks" {
description = "A map of maps containing the replication tasks created and their full output of attributes and values"
value = aws_dms_replication_task.this
}
output "serverless_replication_tasks" {
description = "A map of maps containing the serverless replication tasks (replication_config) created and their full output of attributes and values"
value = aws_dms_replication_config.this
}
################################################################################
# Event Subscription
################################################################################
output "event_subscriptions" {
description = "A map of maps containing the event subscriptions created and their full output of attributes and values"
value = aws_dms_event_subscription.this
}
################################################################################
# Certificate
################################################################################
output "certificates" {
description = "A map of maps containing the certificates created and their full output of attributes and values"
value = aws_dms_certificate.this
sensitive = true
}
################################################################################
# Access IAM Role
################################################################################
output "access_iam_role_name" {
description = "Access IAM role name"
value = try(aws_iam_role.access[0].name, null)
}
output "access_iam_role_arn" {
description = "Access IAM role ARN"
value = try(aws_iam_role.access[0].arn, null)
}
output "access_iam_role_unique_id" {
description = "Stable and unique string identifying the access IAM role"
value = try(aws_iam_role.access[0].unique_id, null)
}