jetbridge / jetbridge/cdk-nextjs
nextjsDomain Creates Cerificates in Wrong Region in Version 4.2.4
- Dominant language
- TypeScript
- Stars
- 362
- Forks
- 50
- PR merge metrics
- No merged PRs in 30d
Description
Upgrading from version 3.2.1 to version 4.2.4 and using individual components rather the the wrapper. 3.2.1 created the certificate in the correct region whereas 4,2,4 creates the certificate in the deployment region but it must be in us-east-1. Structure has changed a bit between the two versions but I have included my deployment code for each version where the certificate is created. 3.2.1 uses a function to create the certificate in us-east-1 whereas 4.2.4 creates the certificate directly in Cloudformation. Please let me know if I should be creating the certificate differently (other than manually).
## 3.2.1 Certificate Creation
```
const nextjsDistribution = new NextjsDistribution(this, 'NextjsDistribution', {
nextjsPath,
tempBuildDir,
nextBuild,
staticAssetsBucket: bucket,
serverFunction: nextJsLambda.lambdaFunction,
imageOptFunction: imageOptimizationLambda,
stackPrefix: system,
stageName: environment,
customDomain: {
domainName: props.domainName,
hostedZone
}
});
```
## 4.2.4 Certificate Creation
```
const nextjsDomain = new NextjsDomain(this, 'NextjsDomain', {
domainName: props.domainName,
hostedZone
});
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.