Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

Error when using Ref for Certificate Arns. #247

Open
resistdesign opened this issue Aug 29, 2021 · 0 comments
Open

Error when using Ref for Certificate Arns. #247

resistdesign opened this issue Aug 29, 2021 · 0 comments

Comments

@resistdesign
Copy link

If you declare a Certificate Arn with a Ref to a Parameter like this:

  AppCDNCloudFront:
    Type: AWS::CloudFront::Distribution
    DependsOn: AppHostingStorage
    Properties:
      DistributionConfig:
        Aliases:
          - Ref: AppDomain
        ViewerCertificate:
          AcmCertificateArn:
            # CERT ARN:
            Ref: SSLCertificateArn

# OR...

  APIGatewayDomainName:
    Type: AWS::ApiGateway::DomainName
    Properties:
      CertificateArn:
        # CERT ARN:
        Ref: SSLCertificateArn

You get the following critical error:

Expecting an ARN, got 'string_input_SSLCertificateArn'

I think the expected result would be that it would accept it as long as SSLCertificateArn was a valid parameter id.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant