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

Update RDS Construct #91

Merged
merged 3 commits into from
Jan 30, 2024
Merged

Update RDS Construct #91

merged 3 commits into from
Jan 30, 2024

Conversation

williamputraintan
Copy link
Member

Mainly the switch from mysql to postgres RDS


const secret = new rds.DatabaseSecret(this, id + 'Secret', {
const dbSecret = new rds.DatabaseSecret(this, id + 'DbSecret', {
Copy link
Member

Choose a reason for hiding this comment

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

Is the idea that every microservice that needs the database will fetch this secret to connect?

Copy link
Member Author

Choose a reason for hiding this comment

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

I am thinking this way but do you have any suggestion?

Realising this, I should have pass in the secret name so that it could be discovered by the microservice.

Copy link
Member

Choose a reason for hiding this comment

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

I think this is okay. Probably simplest to just have one secret for the whole database cluster.

Copy link
Member

Choose a reason for hiding this comment

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

Ha, I was thinking similarly for the DB stack to set up databases / users for the different services and isolate them against each other... but let's start simple ;-)

@williamputraintan williamputraintan merged commit 50a6f66 into main Jan 30, 2024
2 checks passed
@williamputraintan williamputraintan deleted the feature/stateful-stack branch January 30, 2024 05:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants