hey guys, I am getting the following error: `Error...
# sst
o
hey guys, I am getting the following error:
Error: 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?
f
Hey @Oleksii, I’m taking a look.
o
thank you
f
Can you show me how you are reading the domain from SSM?
k
Copy code
// 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,
    });
@Frank that's the example (since Oleksii is already offline for today)
f
Thanks @Karo! Let me go give it a try and keep you posted.
Hey @Oleksii @Karo, this should be now supported in v0.28.1. Give it a try!
o
@Frank will do thanks!
k
nice, thank you!