Skip to content
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

Conversation

alexedwardjones
Copy link
Contributor

@alexedwardjones alexedwardjones commented Jan 7, 2023

Summary

@gitpod-io
Copy link

gitpod-io bot commented Jan 7, 2023

@aws-cdk-automation aws-cdk-automation requested a review from a team January 7, 2023 20:50
@github-actions github-actions bot added beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK p2 labels Jan 7, 2023
@alexedwardjones alexedwardjones changed the title refactor(aws-rds): add clusterResourceIdentifier property to database cluster feat(aws-rds): add clusterResourceIdentifier property to database cluster Jan 7, 2023
Copy link
Collaborator

@aws-cdk-automation aws-cdk-automation left a 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.

@alexedwardjones alexedwardjones changed the title feat(aws-rds): add clusterResourceIdentifier property to database cluster fix(aws-rds): add clusterResourceIdentifier property to database cluster Jan 8, 2023
@alexedwardjones alexedwardjones changed the title fix(aws-rds): add clusterResourceIdentifier property to database cluster fix(rds): add clusterResourceIdentifier property to database cluster Jan 19, 2023
@aws-cdk-automation aws-cdk-automation dismissed their stale review January 22, 2023 20:42

✅ Updated pull request passes all PRLinter validations. Dissmissing previous PRLinter review.

@alexedwardjones
Copy link
Contributor Author

@TheRealAmazonKendra @rix0rrr Any chance of a review on this?

Copy link
Contributor

@comcalvi comcalvi left a 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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* 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

Copy link
Contributor Author

@alexedwardjones alexedwardjones Feb 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @comcalvi, thanks for the review 😄

I was following the existing examples of docdb and neptune that expose both the cluster identifier and cluster resource identifiers as properties.

@comcalvi comcalvi self-assigned this Feb 8, 2023
@mergify mergify bot dismissed comcalvi’s stale review February 10, 2023 17:32

Pull request has been modified.

*
* This AWS Region-unique identifier is used in things like IAM authentication policies.
*
* @default - none
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* @default - none
* @default none

@aws-cdk-automation
Copy link
Collaborator

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.

@mergify mergify bot dismissed comcalvi’s stale review March 5, 2023 12:49

Pull request has been modified.

@mergify
Copy link
Contributor

mergify bot commented Mar 6, 2023

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-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: 0981e65
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit 6bda4e5 into aws:main Mar 6, 2023
@mergify
Copy link
Contributor

mergify bot commented Mar 6, 2023

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).

homakk pushed a commit to homakk/aws-cdk that referenced this pull request Mar 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
beginning-contributor [Pilot] contributed between 0-2 PRs to the CDK p2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants