UNPKG

@incdevco/framework

Version:
36 lines 762 B
{ "AWSTemplateFormatVersion": "2010-09-09", "Description": "wildcard ssl certificate", "Parameters": { "DomainName": { "Type": "String" }, "Stage": { "Type": "String" } }, "Conditions": { "IsProduction": {"Fn::Equals": [{"Ref": "Stage"}, "production"]} }, "Mappings": {}, "Resources": { "Certificate": { "Type": "AWS::CertificateManager::Certificate", "Properties": { "DomainName": {"Fn::Join": ["", [ "*.", {"Fn::If": ["IsProduction", "", "development."]}, {"Ref": "DomainName"} ]]} } } }, "Outputs": { "CertificateArn": { "Value": {"Ref": "Certificate"} }, "Region": { "Value": {"Ref": "AWS::Region"} } } }