Skip to content

CloudQuest - Database in practice step - permissions issue

0

Hi, I completed all steps except this one. Once I am launching the lab, going according to practice and try to create database according to instructions. I have the following error:

User: arn:aws:sts::045032096600:assumed-role/AWSLabsUser-ryXaegPwBVXT21qFGqGUdC/d110efa4-47d4-4e28-9bc7-f3eda51f5514 Action: rds:CreateDBInstance On resource(s): arn:aws:rds:us-east-1:045032096600:db:my-database Context: no identity-based policy allows the action

I tried to stop the lab and start it again several times, the error returns.

This step is preventing me recertify my practitioner certificate. please advise. Thanks!

  • I was having the same issue following the instructions. I tried changing the user permissions but was unable to.

    What did work was changing the size from db.t3.xlarge to a smaller size. Adding the answer here as the issue still exists.

asked 2 years ago718 views

2 Answers
1

Hi, You say above than you cannot assgn roles.

Can you at least add policies to an existing role like User: arn:aws:sts::045032096600:assumed-role/AWSLabsUser-ryXaegPwBVXT21qFGqGUdC/d110efa4-47d4-4e28-9bc7-f3eda51f5514 ?

If yes, just attach a new policy allowing rds:CreateDBInstance to this role and you should be able to move on.

Best,

Didier

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

  • Hi, Yes I tried - no permissions

    User: arn:aws:sts::045032096600:assumed-role/AWSLabsUser-ryXaegPwBVXT21qFGqGUdC/d110efa4-47d4-4e28-9bc7-f3eda51f5514 Action: iam:CreatePolicy Context: no identity-based policy allows the action

  • I also do not have even permission to view current role - User: arn:aws:sts::045032096600:assumed-role/AWSLabsUser-ryXaegPwBVXT21qFGqGUdC/d110efa4-47d4-4e28-9bc7-f3eda51f5514 Action: iam:GetRole Context: an identity-based policy explicitly denies the action

1

The error you're encountering suggests that the IAM role or user you're using (AWSLabsUser) doesn't have the necessary permissions to create an RDS database instance. This is likely due to the lab environment having restricted permissions for security reasons.

To resolve this issue, you should:

  1. Double-check that you're following the lab instructions exactly as provided. Sometimes labs use specific naming conventions or have pre-configured resources that you need to use.

  2. Verify if there are any specific IAM roles or policies mentioned in the lab instructions that you need to assume or use for this particular task.

  3. If the lab provides a way to view or modify IAM permissions, look for policies related to RDS and ensure that the "rds:CreateDBInstance" action is allowed for the role you're using.

  4. Check if there are any prerequisites or setup steps that you might have missed, which could include granting necessary permissions.

  5. If you're certain you've followed all instructions correctly, reach out to the lab provider's support team. They may need to adjust the permissions in the lab environment or provide you with additional guidance specific to their setup.

Remember that in a real-world scenario, you would need to ensure that your IAM user or role has the appropriate permissions to create RDS instances. This typically involves attaching a policy that includes the "rds:CreateDBInstance" permission, along with any other necessary RDS-related actions.

If the issue persists after trying these steps, it's best to contact the lab provider or the certification program support for assistance, as they can provide specific guidance tailored to their lab environment and certification requirements.
Sources
Troubleshoot missing permission errors in CloudFormation | AWS re:Post
Resolve IAM permission errors in CloudFormation | AWS re:Post

answered 2 years ago

EXPERT

reviewed 2 years ago

  • I checked all of the above. also my user do not have permissions to assign new roles.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.