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): read replica instance cannot join domain #19202

Merged
merged 4 commits into from
Mar 1, 2022

Conversation

jogold
Copy link
Contributor

@jogold jogold commented Mar 1, 2022

The read replica instance always uses the same engine as the source instance
but some CF validations require the engine to be explicitely passed when some
properties are specified.

Pass the engine property to the CF resource if domain is specified.

Closes #18786


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

The read replica instance always uses the same engine as the source instance
but some CF validations require the engine to be explicitely passed when some
properties are specified.

Pass the `engine` property to the CF resource if `domain` is specified.

Closes aws#18786
@gitpod-io
Copy link

gitpod-io bot commented Mar 1, 2022

@github-actions github-actions bot added the @aws-cdk/aws-rds Related to Amazon Relational Database label Mar 1, 2022
Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

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

Thanks for the fix @jogold!

Two small comments/questions.

packages/@aws-cdk/aws-rds/lib/instance.ts Outdated Show resolved Hide resolved
SourceDBInstanceIdentifier: Match.anyValue(),
Engine: 'postgres',
});
});
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder... since this is a CFN validation, do we need a new small integration test for this, to confirm it deploys?

Copy link
Contributor Author

@jogold jogold Mar 1, 2022

Choose a reason for hiding this comment

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

Ideally yes but it's complicated because it means we need to create a domain using L1 resources from @aws-cdk/aws-directoryservice... and I don't have experience with those resources.

(domain is currently a string but could have been a IDirectory if we had L2 resources for this)

Copy link
Contributor

Choose a reason for hiding this comment

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

OK.

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject89A8053A-LhjRyN9kxr8o
  • Commit ID: 8902c6a
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

Copy link
Contributor

@skinny85 skinny85 left a comment

Choose a reason for hiding this comment

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

Thanks @jogold, awesome work as always 🙂.

@mergify
Copy link
Contributor

mergify bot commented Mar 1, 2022

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

@mergify mergify bot merged commit cef8fec into aws:master Mar 1, 2022
TheRealAmazonKendra pushed a commit to TheRealAmazonKendra/aws-cdk that referenced this pull request Mar 11, 2022
The read replica instance always uses the same engine as the source instance
but some CF validations require the engine to be explicitely passed when some
properties are specified.

Pass the `engine` property to the CF resource if `domain` is specified.

Closes aws#18786


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
@jogold jogold deleted the rds-replica-engine branch March 12, 2022 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-rds Related to Amazon Relational Database
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(rds): Read Replica cannot join kerberos domain
3 participants