Skip to content

certificatemanager: DnsValidatedCertificate tags with cross-stack usage fails on upgrade to 1.100 #14519

@Ranjith072

Description

@Ranjith072

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 .
image

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

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-certificatemanagerRelated to Amazon Certificate ManagerbugThis issue is a bug.effort/smallSmall work item – less than a day of effortp1

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions