S3 Bucket name trough RDS DB identifier name

0

How can i fetch s3 bucket name associated with the given RDS DB identifier name using java code?

  • Hi, could you detail the use cases a little bit more? Which RDS DB type are you using? Which S3 bucket do you want to identify? Why do you want to interact with that bucket?

質問済み 1年前227ビュー
1回答
0

Hello,

Greetings of the day!! Thank you for contacting AWS.

Unfortunately, there is no direct way to pull out the S3 Bucket name associated with the RDS DB identifier name. However, Its the IAM role that will be associated with the RDS instance and the policy of the IAM role will have the S3 bucket name and permissions. As Code support is beyond scope of AWS Support. I researched on this and on the best effort basis, providing you below documents which can prove to be useful to you.

Code snippet of AWS SDK in Java to get a policy : [+] https://docs.aws.amazon.com/sdk-for-java/v1/developer-guide/examples-iam-policies.html#getting-a-policy [+] https://github.com/awsdocs/aws-doc-sdk-examples/blob/main/java/example_code/iam/src/main/java/aws/example/iam/GetPolicy.java

AWS
サポートエンジニア
Sania_K
回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ