From 7e117ad94971b1c2a5cb3200d43ee0af5bbcc06e Mon Sep 17 00:00:00 2001 From: Noam Date: Sat, 8 Aug 2020 13:28:20 +0300 Subject: [PATCH] docs: fixed dns config in cloudformation template. (#1894) --- contrib/aws/cloudformation-ec2-efs.yaml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/contrib/aws/cloudformation-ec2-efs.yaml b/contrib/aws/cloudformation-ec2-efs.yaml index 2bb7d9fde..7921cb140 100644 --- a/contrib/aws/cloudformation-ec2-efs.yaml +++ b/contrib/aws/cloudformation-ec2-efs.yaml @@ -22,11 +22,6 @@ Parameters: Description: > The route 53 hosted zone name to create the `npm.` record in. Do not include the trailing dot! - Route53RecordHostedZoneId: - Type: String - Description: > - Hosted Zone ID for the load balancer. Find it here: - https://docs.aws.amazon.com/general/latest/gr/rande.html Vpc: Type: AWS::EC2::VPC::Id Description: VPC to create this stack inside @@ -261,7 +256,9 @@ Resources: - Lb - DNSName HostedZoneId: - Ref: Route53RecordHostedZoneId + Fn::GetAtt: + - Lb + - CanonicalHostedZoneID HostedZoneName: Fn::Sub: ${DnsHostedZoneName}. Name: