-
Notifications
You must be signed in to change notification settings - Fork 0
/
outputs.tf
116 lines (100 loc) · 3.75 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
######
# OpenSearch Collection
######
output "collection_arn" {
description = "Amazon Resource Name (ARN) of the collection."
value = aws_opensearchserverless_collection.this.arn
}
output "collection_id" {
description = "Unique identifier for the collection."
value = aws_opensearchserverless_collection.this.id
}
output "collection_endpoint" {
description = "Collection-specific endpoint used to submit index, search, and data upload requests to an OpenSearch Serverless collection."
value = aws_opensearchserverless_collection.this.collection_endpoint
}
output "dashboard_endpoint" {
description = "Collection-specific endpoint used to access OpenSearch Dashboards."
value = aws_opensearchserverless_collection.this.dashboard_endpoint
}
output "kms_key_arn" {
description = "The ARN of the Amazon Web Services KMS key used to encrypt the collection."
value = aws_opensearchserverless_collection.this.kms_key_arn
}
#######
## Encryption Policy
#######
output "encryption_policy_version" {
description = "Version of the encryption policy."
value = var.create_encryption_policy ? aws_opensearchserverless_security_policy.encryption[0].policy_version : null
}
output "encryption_policy_name" {
description = "Name of the encryption policy."
value = var.create_encryption_policy ? aws_opensearchserverless_security_policy.encryption[0].name : null
}
#######
## Network Policy
#######
output "network_policy_version" {
description = "Version of the network policy."
value = var.create_network_policy ? aws_opensearchserverless_security_policy.network[0].policy_version : null
}
output "network_policy_name" {
description = "Name of the network policy."
value = var.create_network_policy ? aws_opensearchserverless_security_policy.network[0].name : null
}
#######
## Vpce
#######
output "vpce_name" {
description = "Name of the interface endpoint."
value = local.create_vpce ? aws_opensearchserverless_vpc_endpoint.this[0].name : null
}
output "vpce_id" {
description = "Id of the vpce."
value = local.create_vpce ? aws_opensearchserverless_vpc_endpoint.this[0].id : null
}
#######
## Security Group
#######
output "security_group_id" {
description = "Id of the security group."
value = local.crate_sg ? aws_security_group.this[0].id : null
}
output "security_group_name" {
description = "Name of the security group."
value = local.crate_sg ? aws_security_group.this[0].name : null
}
#######
## Data Access Policy
#######
output "access_policy_version" {
description = "Version of the data access policy."
value = var.create_access_policy ? aws_opensearchserverless_access_policy.this[0].policy_version : null
}
output "access_policy_name" {
description = "Name of the data access policy."
value = var.create_access_policy ? aws_opensearchserverless_access_policy.this[0].name : null
}
#######
## Data Lifecycle Policy
#######
output "data_lifecycle_policy_version" {
description = "Version of the data lifecycle access policy."
value = var.create_data_lifecycle_policy ? aws_opensearchserverless_lifecycle_policy.this[0].policy_version : null
}
output "data_lifecycle_policy_name" {
description = "Name of the data lifecycle policy."
value = var.create_data_lifecycle_policy ? aws_opensearchserverless_lifecycle_policy.this[0].name : null
}
######
# Security Config
######
output "security_config_version" {
description = "Version of the security config."
value = var.create_security_config ? aws_opensearchserverless_security_config.this[0].config_version : null
}
output "security_config_name" {
description = "Name of the security config."
value = var.create_security_config ? aws_opensearchserverless_security_config.this[0].name : null
}