Skip to content

Instantly share code, notes, and snippets.

@okram999
Last active February 19, 2019 22:08
Show Gist options
  • Save okram999/d3cdc70d6f81bdc2a0fbd3a7c773f928 to your computer and use it in GitHub Desktop.
Save okram999/d3cdc70d6f81bdc2a0fbd3a7c773f928 to your computer and use it in GitHub Desktop.
CFT-hostedZones
####################################################################################
#Setting up the internal hostedzone and the recordset
  avabackendhostedzone: 
    Type: "AWS::Route53::HostedZone"
    Properties: 
      HostedZoneConfig: 
        Comment: "Hosted zone for devtest env"
      Name: "be-devtest.xyz.com"
      VPCs: 
        - 
          VPCId: !Ref 'VpcId'
          VPCRegion: !Ref AWS::Region
      HostedZoneTags: 
        - 
          Key: "BusinessTower"
          Value: "AS"
        -
          Key: "Environment"
          Value: "devtest"

  avabackendrecordset:
    Type: AWS::Route53::RecordSetGroup
    Properties:
      HostedZoneName: ava-be-devtest.cbre.com.
      Comment: Alias targeted to Network LoadBalancer for test ava.
      RecordSets:
      - Name: ava-be-devtest.cbre.com.
        Type: A
        AliasTarget:
          HostedZoneId: !GetAtt BACKENDAPPALB.CanonicalHostedZoneID
          DNSName: !GetAtt BACKENDAPPALB.DNSName
#####################################################################################3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment