File tree Expand file tree Collapse file tree
packages/cdkConstructs/src/constructs Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,7 +24,12 @@ import {accessLogFormat} from "./RestApiGateway/accessLogFormat.js"
2424import { Certificate , CertificateValidation } from "aws-cdk-lib/aws-certificatemanager"
2525import { Bucket } from "aws-cdk-lib/aws-s3"
2626import { BucketDeployment , Source } from "aws-cdk-lib/aws-s3-deployment"
27- import { ARecord , HostedZone , RecordTarget } from "aws-cdk-lib/aws-route53"
27+ import {
28+ ARecord ,
29+ AaaaRecord ,
30+ HostedZone ,
31+ RecordTarget
32+ } from "aws-cdk-lib/aws-route53"
2833import { ApiGateway as ApiGatewayTarget } from "aws-cdk-lib/aws-route53-targets"
2934import { NagSuppressions } from "cdk-nag"
3035import { ACCOUNT_RESOURCES , LAMBDA_RESOURCES } from "../constants"
@@ -245,6 +250,12 @@ export class RestApiGateway extends Construct {
245250 zone : hostedZone
246251 } )
247252
253+ new AaaaRecord ( this , "AaaaRecord" , {
254+ recordName : props . stackName ,
255+ target : RecordTarget . fromAlias ( new ApiGatewayTarget ( apiGateway ) ) ,
256+ zone : hostedZone
257+ } )
258+
248259 const cfnStage = apiGateway . deploymentStage . node . defaultChild as CfnStage
249260 cfnStage . cfnOptions . metadata = {
250261 guard : {
You can’t perform that action at this time.
0 commit comments