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]

gefragt vor 3 Jahren239 Aufrufe
1 Antwort
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.

beantwortet vor 3 Jahren

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen