From d1b929e0133445c68e9a2b6812c9b2d5264b136c Mon Sep 17 00:00:00 2001 From: Rob Bruce Date: Tue, 1 Jun 2021 20:00:54 +0100 Subject: [PATCH] Corrected mistakes within the snowflake_system_get_privatelink_config documentation example (#554) --- docs/data-sources/system_get_privatelink_config.md | 9 +++++---- .../data-source.tf | 9 +++++---- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/docs/data-sources/system_get_privatelink_config.md b/docs/data-sources/system_get_privatelink_config.md index 0fd806ff31..38a911c669 100644 --- a/docs/data-sources/system_get_privatelink_config.md +++ b/docs/data-sources/system_get_privatelink_config.md @@ -13,7 +13,7 @@ description: |- ## Example Usage ```terraform -data "system_get_privatelink_config" "snowflake_private_link" {} +data "snowflake_system_get_privatelink_config" "snowflake_private_link" {} resource "aws_security_group" "snowflake_private_link" { vpc_id = var.vpc_id @@ -35,9 +35,10 @@ resource "aws_security_group" "snowflake_private_link" { resource "aws_vpc_endpoint" "snowflake_private_link" { vpc_id = var.vpc_id - service_name = data.system_get_privatelink_config.aws_vpce_id + service_name = data.snowflake_system_get_privatelink_config.snowflake_private_link.aws_vpce_id vpc_endpoint_type = "Interface" security_group_ids = [aws_security_group.snowflake_private_link.id] + subnet_ids = var.subnet_ids private_dns_enabled = false } @@ -51,7 +52,7 @@ resource "aws_route53_zone" "snowflake_private_link" { resource "aws_route53_record" "snowflake_private_link_url" { zone_id = aws_route53_zone.snowflake_private_link.zone_id - name = data.system_get_privatelink_config.snowflake_private_link.account_url + name = data.snowflake_system_get_privatelink_config.snowflake_private_link.account_url type = "CNAME" ttl = "300" records = [aws_vpc_endpoint.snowflake_private_link.dns_entry[0]["dns_name"]] @@ -59,7 +60,7 @@ resource "aws_route53_record" "snowflake_private_link_url" { resource "aws_route53_record" "snowflake_private_link_oscp_url" { zone_id = aws_route53_zone.snowflake_private_link_url.zone_id - name = data.system_get_privatelink_config.snowflake_private_link.oscp_url + name = data.snowflake_system_get_privatelink_config.snowflake_private_link.oscp_url type = "CNAME" ttl = "300" records = [aws_vpc_endpoint.snowflake_private_link.dns_entry[0]["dns_name"]] diff --git a/examples/data-sources/snowflake_system_get_privatelink_config/data-source.tf b/examples/data-sources/snowflake_system_get_privatelink_config/data-source.tf index f7d7ff1cb6..65e854c6f4 100644 --- a/examples/data-sources/snowflake_system_get_privatelink_config/data-source.tf +++ b/examples/data-sources/snowflake_system_get_privatelink_config/data-source.tf @@ -1,4 +1,4 @@ -data "system_get_privatelink_config" "snowflake_private_link" {} +data "snowflake_system_get_privatelink_config" "snowflake_private_link" {} resource "aws_security_group" "snowflake_private_link" { vpc_id = var.vpc_id @@ -20,9 +20,10 @@ resource "aws_security_group" "snowflake_private_link" { resource "aws_vpc_endpoint" "snowflake_private_link" { vpc_id = var.vpc_id - service_name = data.system_get_privatelink_config.aws_vpce_id + service_name = data.snowflake_system_get_privatelink_config.snowflake_private_link.aws_vpce_id vpc_endpoint_type = "Interface" security_group_ids = [aws_security_group.snowflake_private_link.id] + subnet_ids = var.subnet_ids private_dns_enabled = false } @@ -36,7 +37,7 @@ resource "aws_route53_zone" "snowflake_private_link" { resource "aws_route53_record" "snowflake_private_link_url" { zone_id = aws_route53_zone.snowflake_private_link.zone_id - name = data.system_get_privatelink_config.snowflake_private_link.account_url + name = data.snowflake_system_get_privatelink_config.snowflake_private_link.account_url type = "CNAME" ttl = "300" records = [aws_vpc_endpoint.snowflake_private_link.dns_entry[0]["dns_name"]] @@ -44,7 +45,7 @@ resource "aws_route53_record" "snowflake_private_link_url" { resource "aws_route53_record" "snowflake_private_link_oscp_url" { zone_id = aws_route53_zone.snowflake_private_link_url.zone_id - name = data.system_get_privatelink_config.snowflake_private_link.oscp_url + name = data.snowflake_system_get_privatelink_config.snowflake_private_link.oscp_url type = "CNAME" ttl = "300" records = [aws_vpc_endpoint.snowflake_private_link.dns_entry[0]["dns_name"]]