1 Answer
- Newest
- Most votes
- Most comments
0
Hi
According to AWS CloudFormation documentation, AWS CloudFormation supports resource import for public (AWS) resources and private resource types that are provisionable.
However, there is no mention of explicit support for importing AWS::SecretsManager::SecretTargetAttachment resource.
But there is workaround trail :)
- Use the cdk import command to import the existing RDS instance into your CDK stack. This will create a CloudFormation template that references the existing RDS instance by its unique identifier (ARN).
- After importing the RDS instance, define the
secretsmanager.SecretTargetAttachment
resource within your CDK code. This code will recreate the attachment between the Secret Manager secret and the RDS instance.
For more information Import https://aws.amazon.com/blogs/devops/how-to-import-existing-resources-into-aws-cdk-stacks/
Relevant content
- asked a year ago
- asked 5 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 2 months ago