Skip to content

fix(rds): using both Instance imports & exports for Postgres fails deployment#17060

Merged
mergify[bot] merged 2 commits intoaws:masterfrom
skinny85:fix-rds-postgres-s3-import-export
Oct 25, 2021
Merged

fix(rds): using both Instance imports & exports for Postgres fails deployment#17060
mergify[bot] merged 2 commits intoaws:masterfrom
skinny85:fix-rds-postgres-s3-import-export

Conversation

@skinny85
Copy link
Copy Markdown
Contributor

@skinny85 skinny85 commented Oct 19, 2021

Our CDK code was assuming that all instance engines that support S3 imports & exports
must use the same Role if both functions are enabled at the same time.
However, it turns out that's true only for Oracle and SQL Server,
but not for Postgres - in fact, Postgres has the exact opposite requirement,
and will fail deployment if the same Role is used for both.
Change our code to only use a single Role if the engine is Oracle or SQL Server.

Fixes #16757


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

…ployment

Our CDK code was assuming that all instance engines that support S3 imports & exports
must use the same Role for both functionalities.
However, it turns out that's true only for Oracle and SQL Server,
but not for Postgres - in fact, Postgres has the exact opposite requirement,
and will fail deployment if the same Role is used for both.
Change our code to only use a single Role if the engine is Oracle or SQL Server.

Fixes aws#16757
@skinny85 skinny85 requested a review from njlynch October 19, 2021 18:48
@skinny85 skinny85 self-assigned this Oct 19, 2021
@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Oct 19, 2021

@mergify mergify bot added the contribution/core This is a PR that came from AWS. label Oct 19, 2021
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Oct 25, 2021

Thank you for contributing! Your pull request will be updated from master 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
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 86393b3
  • 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 ab627c6 into aws:master Oct 25, 2021
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Oct 25, 2021

Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@skinny85 skinny85 deleted the fix-rds-postgres-s3-import-export branch October 25, 2021 14:52
TikiTDO pushed a commit to TikiTDO/aws-cdk that referenced this pull request Feb 21, 2022
…ployment (aws#17060)

Our CDK code was assuming that all instance engines that support S3 imports & exports
must use the same Role if both functions are enabled at the same time.
However, it turns out that's true only for Oracle and SQL Server,
but not for Postgres - in fact, Postgres has the exact opposite requirement,
and will fail deployment if the same Role is used for both.
Change our code to only use a single Role if the engine is Oracle or SQL Server.

Fixes aws#16757

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

contribution/core This is a PR that came from AWS.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

(aws-rds): Cannot add both export and import bucket policies to rds cluster

3 participants