Does SecretsManager support global endpoint, so single SecretsManagerClient can be used to access secrets across AWS regions.

0

AFIAK SecretsManagerClient can be configured with ONLY single AWS region. Is it possible to use same SecretsManagerClient client to access secrets across AWS regions.

EX: would like to use same SecretsManagerClient client to get secret from arn:aws:secretsmanager:us-east-1:xxxx:xxxxx and arn:aws:secretsmanager:us-west-2:xxxxxx:xxxxx.

질문됨 9달 전315회 조회
2개 답변
3
수락된 답변

I have to agree with you.. Reading the SDK, it seems the GetSecretValue only supports the current region where the call is made from. As with the CLi, you have to specify the region even if the full ARN is supplied.

I believe you would need to connect to the endpoint in the region where the secret is located.

This is very similar to how the console works when you switch regions.

profile picture
전문가
답변함 9달 전
profile picture
전문가
검토됨 9달 전
  • Even with replicated secrets, we need to create corresponding region SecretsManagerClient to access the secret. This is no global SecretsManagerClient. That would have been a useful feature. Any idea if such a feature is in development ?

  • Yeah that seems to be how it is. Most services are regional apart from say IAM which is global. I cant comment if its in feature development, I dont work for AWS or have the ability to find this out im afraid.

0

Hi,

the best practice is rather to replicate your secret to all relevant regions as per: https://docs.aws.amazon.com/secretsmanager/latest/userguide/create-manage-multi-region-secrets.html

If you later need to, you can promote a replica secret to a standalone and then set it up for replication independently.

It is better than switching endpoint to another region if you need to ensure regional data locality for your compliance.

Best,

Didier

profile pictureAWS
전문가
답변함 9달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠