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

Error when using Ref for Certificate Arns. #247

@resistdesign

Description

@resistdesign

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions