Oleksii
06/16/2021, 1:19 PMError: The domain name needs to be in lowercase
I see that in version 0.17 a new check has been added to enforce the domain name format. But in our case, we are using the SSM parameter to construct the domain name, so the domainName
attribute has the value:
name.${Token[TOKEN.153]}
is there a workaround for this error?Frank
Oleksii
06/16/2021, 5:51 PMFrank
Karo
06/16/2021, 8:06 PM// Grab the configuration from the Parameter store
const domain = StringParameter.valueForStringParameter(
this,
`/xxx/${stageSettingNamespace}/dns/zonename`, // example: <http://the.domain.net|the.domain.net>
);
const zoneId = StringParameter.valueForStringParameter(
this,
`/xxx/${stageSettingNamespace}/dns/zoneid`,
);
// DNS for the API
this.xxxDomain = `${stageSubdomain}.${domain}`; // example: <http://api-dev.the.domain.net|api-dev.the.domain.net>
this.zone = HostedZone.fromHostedZoneAttributes(this, 'hostedZone', {
hostedZoneId: zoneId,
zoneName: this.xxxDomain,
});
Karo
06/16/2021, 8:07 PMFrank
Frank
Oleksii
06/18/2021, 11:26 AMKaro
06/18/2021, 3:45 PM