-
Notifications
You must be signed in to change notification settings - Fork 4.5k
certificatemanager: DnsValidatedCertificate tags with cross-stack usage fails on upgrade to 1.100 #14519
Description
i am using certificatemanager.DnsValidatedCertificate(python version) to create and validate the certificate ,
this was working fine until cdk version(1.100.0) with 1.100.0 DnsValidatedCertificate is adding Tags to the custom resource as shown below .

because of these tags it is trying to update the custom resource and fails with the error as shown below .

i have tried to remove these tags explicitly by using the remove tags method but it could not remove them.
cdk_core.Tags.of(core).remove(
"ApplicationName", include_resource_types=["AWS::CloudFormation::CustomResource"]
)
Reproduction Steps
self.hosted_zone_wildcard_certificate_us_east_1 = certificatemanager.DnsValidatedCertificate(
self,
"DnsValidationUsEast1",
hosted_zone=self.hosted_zone, # type: ignore
domain_name="*." + self.hosted_zone_name,
region="us-east-1",
)
if self.hosted_zone_wildcard_certificate_us_east_1 is used in another stack then it will fail.
What did you expect to happen?
this should not update the custom custom .
What actually happened?
it was not suppose to update the custom resource by adding the Tags to the custom resource.
Environment
- **CDK CLI Version :1.100.0
- **Framework Version:1.100.0
- **Node.js Version:14.15.4
- MAC:big sur 11.3OS :**
- **Language (Version):python3.8.8
Other
This is 🐛 Bug Report