Skip to content

Commit

Permalink
Updates to allow domainName to be overridden
Browse files Browse the repository at this point in the history
  • Loading branch information
estohlmann committed Oct 28, 2024
1 parent b5ef29f commit 676245a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/api-base/fastApiContainer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export class FastApiContainer extends Construct {
healthyThresholdCount: 2,
unhealthyThresholdCount: 10
},
domainName: null,
domainName: config.restApiConfig.domainName,
sslCertIamArn: config.restApiConfig?.sslCertIamArn ?? null,
},
},
Expand Down
1 change: 1 addition & 0 deletions lib/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,7 @@ const RdsInstanceConfig = z.object({
*/
const FastApiContainerConfigSchema = z.object({
internetFacing: z.boolean().default(true),
domainName: z.string().optional().nullable().default(null),
sslCertIamArn: z.string().optional().nullable().default(null),
rdsConfig: RdsInstanceConfig.optional()
.default({
Expand Down

0 comments on commit 676245a

Please sign in to comment.