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

Serverless MySQL #22

Merged
merged 3 commits into from
May 24, 2023
Merged

Serverless MySQL #22

merged 3 commits into from
May 24, 2023

Conversation

williamputraintan
Copy link
Member

  • Attempt on changing to Serverless MySQL

export class SecurityGroupConstruct extends Construct {
constructor(scope: Construct, id: string, vpc: IVpc, props: SecurityGroupProps) {
constructor(scope: Construct, id: string, vpc: ec2.IVpc, props: SecurityGroupConstructProps) {
super(scope, id);

Copy link
Member Author

Choose a reason for hiding this comment

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

Just wondering here, if the SG is purposely for lambda, would it be better if this is created right on the stack where lambda will be created (on the OrcaBusStatelessStack before the workflow construct)?

Copy link
Member

@victorskl victorskl May 23, 2023

Choose a reason for hiding this comment

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

You are right that there will be another App specific SG down there in Stateless Construct for other inbound/outbound rules need.

However. This SG is special for Lambda to Database within VPC. Because the DB will be placed in Isolated subnet i.e. air-gapped. No direct access from Internet nor external but must be within VPC only.

So need to keep this one at Stateful.

@williamputraintan
Copy link
Member Author

@victorskl
Copy link
Member

Thanks Will for PR. I will review soon, tomorrow arvo, probably.

Copy link
Member

@victorskl victorskl left a comment

Choose a reason for hiding this comment

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

Thanks Will. LGTM! Please squash merge.

Copy link
Member

@reisingerf reisingerf left a comment

Choose a reason for hiding this comment

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

LGTM

@williamputraintan williamputraintan merged commit 587c25f into main May 24, 2023
@williamputraintan williamputraintan deleted the serverless-mysql branch May 26, 2023 04:42
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