-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(rds): add clusterResourceIdentifier property to database cluster #23605
fix(rds): add clusterResourceIdentifier property to database cluster #23605
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The pull request linter has failed. See the aws-cdk-automation comment below for failure reasons. If you believe this pull request should receive an exemption, please comment and provide a justification.
✅ Updated pull request passes all PRLinter validations. Dissmissing previous PRLinter review.
@TheRealAmazonKendra @rix0rrr Any chance of a review on this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need to expose this identifier? It seems to just be a component of the arn, eg
arn:aws:rds-db:region:account-id:dbuser:DbClusterResourceId/db-user-name
If the only goal is to refer to the cluster in IAM policies, the arn being exposed should be sufficient here, since the DbClusterResourceId
is only used to construct the ARN. If we absolutely must use this DbClusterResourceId
, can we hide that complexity behind somegrant*()
methods.
/** | ||
* The immutable identifier for the cluster; for example: cluster-ABCD1234EFGH5678IJKL90MNOP. | ||
* | ||
* This AWS Region-unique identifier is used in things like IAM authentication policies. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* This AWS Region-unique identifier is used in things like IAM authentication policies. | |
* This AWS Region-unique identifier is used to grant access to the cluster. | |
* | |
* @see https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.IAMPolicy.html |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request has been modified.
* | ||
* This AWS Region-unique identifier is used in things like IAM authentication policies. | ||
* | ||
* @default - none |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* @default - none | |
* @default none |
This PR has been in the CHANGES REQUESTED state for 3 weeks, and looks abandoned. To keep this PR from being closed, please continue work on it. If not, it will automatically be closed in a week. |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
…ws#23605) **Summary** - Exposed the [`DBClusterResourceId`](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-rds-dbcluster.html#aws-resource-rds-dbcluster-return-values) on the database cluster as `clusterResourceIdentifier`. - This is needed to [create an IAM policy for IAM database access](https://docs.aws.amazon.com/AmazonRDS/latest/AuroraUserGuide/UsingWithRDS.IAMDBAuth.IAMPolicy.html).
Summary
DBClusterResourceId
on the database cluster asclusterResourceIdentifier
.