跳至内容

Access denied to rds:CreateDBInstance

0

Hi I'm getting access denied while trying create database in RDS. Can you pls assist me?

User: arn:aws:sts::994242736896:assumed-role/Admin/raja.munisamy Action: rds:CreateDBInstance On resource(s): arn:aws:rds:eu-central-1:994242736896:db:aws-bluage-l3-workshop-database-raja Context: a service control policy explicitly denies the action

已提问 2 年前815 查看次数

1 回答
0
已接受的回答

Based on the error message you've provided, it appears you're encountering an access denied error while trying to create a database in Amazon RDS. The specific issue is that a Service Control Policy (SCP) is explicitly denying the rds:CreateDBInstance action for your user.

Service Control Policies are a type of policy that can be applied at the AWS Organizations level to control permissions across multiple accounts. In this case, there's an SCP in place that's explicitly denying the ability to create RDS instances, even though you're using an assumed Admin role.

To resolve this issue, you'll need to take the following steps:

  1. Contact your AWS account administrator or the person responsible for managing your organization's SCPs.

  2. Ask them to review the SCP that's denying the rds:CreateDBInstance action. They may need to modify the SCP to allow this action for your role or for the specific RDS resources you're trying to create.

  3. If the SCP cannot be changed, you may need to explore alternative solutions, such as using a different AWS account that isn't subject to this restrictive SCP, or finding a different way to accomplish your task that doesn't involve creating a new RDS instance.

Remember, SCPs are designed to set guardrails for an organization, so there may be valid reasons for this restriction. It's important to understand why the policy is in place before requesting changes.

If you're the administrator and you're unsure about the SCP settings, you may need to review your AWS Organizations configuration and the SCPs applied to your account or organizational unit.
Sources
Troubleshoot access denied error messages - AWS Identity and Access Management

已回答 2 年前

专家

已审核 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。