AWSTemplateFormatVersion: '2010-09-09'
Description: O11y certificate
Resources:
  RsCertificate:
    Type: AWS::CertificateManager::Certificate
    Properties:
      DomainName: TMPL_RS_DOMAIN_NAME
      ValidationMethod: DNS
      DomainValidationOptions:
        - DomainName: TMPL_RS_DOMAIN_NAME
          HostedZoneId: TMPL_HOSTED_ZONE_ID
      Tags: 
        - Key: Environment
          Value: TMPL_ENV
  DsCertificate:
    Type: AWS::CertificateManager::Certificate
    Properties:
      DomainName: TMPL_DS_DOMAIN_NAME
      ValidationMethod: DNS
      DomainValidationOptions:
        - DomainName: TMPL_DS_DOMAIN_NAME
          HostedZoneId: TMPL_HOSTED_ZONE_ID
      Tags: 
        - Key: Environment
          Value: TMPL_ENV
Outputs:
  RsCertificateArn:
    Description: ARN of the created certificate
    Value: !Ref RsCertificate
  DsCertificateArn:
    Description: ARN of the created certificate
    Value: !Ref DsCertificate
