-
Notifications
You must be signed in to change notification settings - Fork 0
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
Serverless MySQL #22
Conversation
williamputraintan
commented
May 23, 2023
- 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); | ||
|
There was a problem hiding this comment.
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)?
There was a problem hiding this comment.
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.
Thanks Will for PR. I will review soon, tomorrow arvo, probably. |
There was a problem hiding this 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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM