Jason Pascoe
01/16/2021, 1:47 PMuserPool.addDomain('CognitoDomain', {
cognitoDomain: {
domainPrefix: 'airappauth',
},
});
The above works to add a subdomain to the hosted userpool login, but I'm having trouble using a custom domain.
I'm getting a linting error when trying to build.
import * as certificatemanager from "@aws-cdk/aws-certificatemanager";
const certificateArn = 'arn:aws:acm:us-east-1:xxx:certificate/xxx-4d67-4f23-bf36-xxx';
const domainCert = certificatemanager.Certificate.fromCertificateArn(this, 'domainCert', certificateArn);
console.log('certificateArn', domainCert.certificateArn);
userPool.addDomain('CustomDomain', {
customDomain: {
domainName: '<http://xxx.xxx.xxx|xxx.xxx.xxx>',
certificate: domainCert,
},
});
Jay