awsdocs/amazon-rds-user-guide

Step 4 of "To configure IAM permissions for using your cluster with Lambda"

oq-9 opened this issue · 1 comments

oq-9 commented

In Step 4 of "To configure IAM permissions for using your cluster with Lambda" Documentation code says:

aws rds add-role-to-db-cluster \
       --db-cluster-identifier my-cluster-name \
       --feature-name Lambda \
       --role-arn  arn:aws:iam::444455556666:role/rds-lambda-role   \
       --region aws-region

I do not know where to find the db-cluster-identifier and I do not think I have one. Also when I look at AWS CLI documentation in the link you provided:
https://awscli.amazonaws.com/v2/documentation/api/latest/reference/rds/add-role-to-db-cluster.html
It states:

  add-role-to-db-cluster
--db-cluster-identifier <value>
--role-arn <value>
[--feature-name <value>]
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]

And I am guessing db-cluster-identifier is the DB instance ID under the configuration tab in the AWS RDS console? Is that correct?

Thanks for your feedback. You can find the db-cluster-identifier by following these steps:

  1. Sign in to the AWS Management Console and open the Amazon RDS console.

  2. In the navigation pane, choose Databases, and then choose the DB cluster.

  3. Choose the Configuration tab.

The db-cluster-identifier is shown under DB cluster ID.

Let me know if you need more information.