简体   繁体   中英

Bring existing AWS secrets into Cloud Formation stack

Initially I created secrets outside of Cloud Formation using Custom Resource. Now I want to migrate those existing secrets to existing Cloud Formation Stack without creating a new one. Is there a way to incorporate those existing secrets using CLI(preferably) or any other way to achieve this? I'm aware of drift detection operation but doesn't seem like it allows an entire secret to migrate. I referred this doc: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resource-import-supported-resources.html

Import AWS::SecretsManager::Secret is not supported . This means that you have to create new secrets from scratch in CloudFormation and delete the old ones. Otherwise, you have to keep them fully separate as you have now.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM