Drift detection false positive for ApiGatewayV2::DomainName

0

I've created a stack with a ApiGatewayV2::DomainName resource, and immediately after creating the stack, drift detection detects drift in the resource.

Template excerpt (generated by AWS CDK):

[code]
DomainNameEC95A6E9:
Type: AWS::ApiGatewayV2::DomainName
Properties:
DomainName: api.mytls.info
DomainNameConfigurations:
- CertificateArn:
Ref: Certificate4E7ABB08
EndpointType: REGIONAL
Metadata:
aws:cdk:path: IfconfigApiInfra/DomainName/Resource
[/code]

Drift detection results:

Expected:
[code]
{
"DomainName": "api.mytls.info",
"DomainNameConfigurations": [
{
"CertificateArn": "arn:aws:acm:us-east-1:158674830910:certificate/a3380477-ec3f-4b69-ad41-1ce25bfa4b08",
"EndpointType": "REGIONAL"
}
]
}
[/code]
Actual:
[code]
{
"DomainNameConfigurations": [
{
"CertificateArn": "arn:aws:acm:us-east-1:158674830910:certificate/a3380477-ec3f-4b69-ad41-1ce25bfa4b08",
"EndpointType": "REGIONAL"
}
]
}
[/code]
Note that "DomainName": "api.mytls.info", is omitted from "Actual".

The domain name is working correctly and has not been modified. Here's the result of get-domain-name in the AWS CLI:
[code]
aws apigatewayv2 get-domain-name --domain-name api.mytls.info --region us-east-1
{
"ApiMappingSelectionExpression": "$request.basepath",
"DomainName": "api.mytls.info",
"DomainNameConfigurations": [
{
"ApiGatewayDomainName": "d-mbw1qwxs57.execute-api.us-east-1.amazonaws.com",
"CertificateArn": "arn:aws:acm:us-east-1:158674830910:certificate/a3380477-ec3f-4b69-ad41-1ce25bfa4b08",
"DomainNameStatus": "AVAILABLE",
"EndpointType": "REGIONAL",
"HostedZoneId": "Z1UJRXOUMOOFQ8",
"SecurityPolicy": "TLS_1_2"
}
],
"Tags": {}
}
[/code]

asked 3 years ago235 views
1 Answer
0

As of this morning, this seems resolved. I changed nothing about the stack or resource... just check for drift and now it shows IN_SYNC Perhaps someone on the CloudFormation team fixed it lickity split? Or it was a temporary issue. Either way, looks good now.

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions