简体   繁体   中英

Cross-Region Secrets Manager Access in Serverless Framework Template

I'm accessing Secrets Manager in my serverless.yml via

${ssm:/aws/reference/secretsmanager/<path-to-secret>~true}

which works out nicely.

Problem is, I'm keeping all my secrets in a single region & now I'm trying to add another region (= stage in serverless), but I don't know how to reference secrets from my main region. To keep costs low, I don't want to replicate my secrets to the secondary regions though.

Is there any way to achieve this without some pre-scripting magic but solely using Serverless?

Based on the docs , the following should work:

${ssm.<region-name>:/aws/reference/secretsmanager/<path-to-secret>~true}

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