# stacks/certificate.yml
AWSTemplateFormatVersion: "2010-09-09"
Description: >
  Creates a wildcard ACM certificate for the some PRX operated domains
Resources:
  Certificate:
    Type: AWS::CertificateManager::Certificate
    Properties:
      DomainName: "*.prx.tech"
      DomainValidationOptions:
        - ValidationDomain: prx.tech
          DomainName: "*.prx.tech"
      SubjectAlternativeNames:
        - "*.prx.org"
        - "*.prxu.org"
        - "*.staging.prxu.org"
        - "*.prx.tech"
        - "*.staging.prx.tech"
      Tags:
        - Key: Project
          Value: Misc
        - Key: Name
          Value: Utility Wildcard
        - Key: "prx:cloudformation:stack-name"
          Value: !Ref AWS::StackName
        - Key: "prx:cloudformation:stack-id"
          Value: !Ref AWS::StackId
Outputs:
  CertificateArn:
    Description: The ARN for the wildcard certificate
    Value: !Ref Certificate

# stacks/certificate.yml
AWSTemplateFormatVersion: "2010-09-09"
Description: >
  Creates a wildcard ACM certificate for the some PRX operated domains
Resources:
  Certificate:
    Type: AWS::CertificateManager::Certificate
    Properties:
      DomainName: "*.prx.tech"
      DomainValidationOptions:
        - ValidationDomain: prx.tech
          DomainName: "*.prx.tech"
      SubjectAlternativeNames:
        - "*.prx.org"
        - "*.prxu.org"
        - "*.staging.prxu.org"
        - "*.prx.tech"
        - "*.staging.prx.tech"
      Tags:
        - Key: Project
          Value: Misc
        - Key: Name
          Value: Utility Wildcard
        - Key: "prx:cloudformation:stack-name"
          Value: !Ref AWS::StackName
        - Key: "prx:cloudformation:stack-id"
          Value: !Ref AWS::StackId
      ValidationMethod: DNS
Outputs:
  CertificateArn:
    Description: The ARN for the wildcard certificate
    Value: !Ref Certificate

Use DNS validation for wildcard certificate
Use DNS validation for wildcard certificate
