Search code examples
amazon-web-servicesaws-cdk

AWS CDK how to delete Custom::CrossRegionExportWriter


I am having trouble deploying my stack - I am getting the following error:

Custom::CrossRegionExportWriter | ExportsWriteruswest1086A087133A0F94D
Received response status [FAILED] from custom resource. Message returned: ParameterAlreadyExists: The parameter already exists. To overwrite this value, set the overwrite o
ption in the request to true.

and I cannot find this resource from the console to delete it in the first place! any idea where this resource is created and how can I delete it?


Solution

  • If you encounter this issue, and are deploying your stack using CDK, check all SSM parameters for all the regions and make sure to delete the parameter that is used for cross region export. this was my issue and it fixed it.