Skip to content

Commit 6eaff00

Browse files
fix: add missing one function
1 parent 5a59a49 commit 6eaff00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ resource "aws_vpc_endpoint" "this" {
3737
count = module.this.enabled ? 1 : 0
3838

3939
vpc_id = var.vpc_id
40-
service_name = data.snowflake_system_get_privatelink_config.this[*].aws_vpce_id
40+
service_name = one(data.snowflake_system_get_privatelink_config.this[*].aws_vpce_id)
4141
vpc_endpoint_type = "Interface"
4242
security_group_ids = [one(aws_security_group.this[*].id)]
4343
subnet_ids = var.subnet_ids
@@ -67,7 +67,7 @@ resource "aws_route53_record" "snowflake_private_link_url" {
6767
count = module.this.enabled ? 1 : 0
6868

6969
zone_id = one(aws_route53_zone.this[*].zone_id)
70-
name = data.snowflake_system_get_privatelink_config.this[*].account_url
70+
name = one(data.snowflake_system_get_privatelink_config.this[*].account_url)
7171
type = "CNAME"
7272
ttl = "300"
7373
records = [one(aws_vpc_endpoint.this).dns_entry[0]["dns_name"]]
@@ -77,7 +77,7 @@ resource "aws_route53_record" "snowflake_private_link_ocsp_url" {
7777
count = module.this.enabled ? 1 : 0
7878

7979
zone_id = one(aws_route53_zone.this[*].zone_id)
80-
name = data.snowflake_system_get_privatelink_config.this[*].ocsp_url
80+
name = one(data.snowflake_system_get_privatelink_config.this[*].ocsp_url)
8181
type = "CNAME"
8282
ttl = "300"
8383
records = [one(aws_vpc_endpoint.this).dns_entry[0]["dns_name"]]

0 commit comments

Comments
 (0)