# dns/prx.mx-hosted_zone.yml
AWSTemplateFormatVersion: "2010-09-09"
Description: >
  Hosted zone and record sets for prx.mx
Parameters:
  Domain:
    Default: prx.mx.
    Description: The domain name and hosted zone
    Type: String
Resources:
  HostedZone:
    Type: "AWS::Route53::HostedZone"
    Properties:
      HostedZoneConfig:
        Comment: Remix domain
      HostedZoneTags:
        - Key: Project
          Value: Remix
        - Key: "prx:cloudformation:stack-name"
          Value: !Ref AWS::StackName
        - Key: "prx:cloudformation:stack-id"
          Value: !Ref AWS::StackId
      Name: !Ref Domain
  Website:
    Type: "AWS::Route53::RecordSetGroup"
    Properties:
      Comment: WWW
      HostedZoneId: !Ref HostedZone
      RecordSets:
        - Type: A
          Name: !Ref Domain
          AliasTarget:
            DNSName: s3-website-us-east-1.amazonaws.com.
            # us-east-1 hosted zone ID
            HostedZoneId: Z3AQBSTGFYJSTF
        - ResourceRecords:
            - www.prx.mx.herokudns.com.
          TTL: "300"
          Type: CNAME
          Name: !Sub www.${Domain}

# dns/prx.mx-hosted_zone.yml
AWSTemplateFormatVersion: "2010-09-09"
Description: >
  Hosted zone and record sets for prx.mx
Parameters:
  Domain:
    Default: prx.mx.
    Description: The domain name and hosted zone
    Type: String
Resources:
  HostedZone:
    Type: "AWS::Route53::HostedZone"
    Properties:
      HostedZoneConfig:
        Comment: Remix domain
      HostedZoneTags:
        - Key: Project
          Value: Remix
        - Key: "prx:cloudformation:stack-name"
          Value: !Ref AWS::StackName
        - Key: "prx:cloudformation:stack-id"
          Value: !Ref AWS::StackId
      Name: !Ref Domain
  Website:
    Type: "AWS::Route53::RecordSetGroup"
    Properties:
      Comment: WWW
      HostedZoneId: !Ref HostedZone
      RecordSets:
        - Type: A
          Name: !Ref Domain
          AliasTarget:
            DNSName: s3-website-us-east-1.amazonaws.com.
            # us-east-1 hosted zone ID
            HostedZoneId: Z3AQBSTGFYJSTF
        - ResourceRecords:
            - remix.prx.tech.
          TTL: "300"
          Type: CNAME
          Name: !Sub www.${Domain}

Move prx.mx from heroku to ecs
Move prx.mx from heroku to ecs
