-
Notifications
You must be signed in to change notification settings - Fork 82
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
Configurable restricted VPC for tooling account #337
Conversation
…names. First draft of custom NACL
Hi @kukushking, I tested the above configuration in a fresh deployment and it completed successfully :) |
deploy/stacks/vpc.py
Outdated
) | ||
nacl.add_entry( | ||
"entryInboundAllInVPC", | ||
cidr=ec2.AclCidr.ipv4("10.0.0.0/16"), |
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.
How about referring toself.vpc.cidr
here just in case the user changes the cidr from the default?
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.
Good idea! I just added it and I am testing it right now
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.
Tested 👍
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.
Looks great!
### Feature or Bugfix - Feature ### Detail - New cdk.json configuration parameter `tooling_vpc_restricted_nacl` - If set to `true` we create a custom NACL for the tooling data.all created VPC with the following inbound rules. Outbound allows all traffic.  - We have enabled DNS private names for CodeArtifact endpoints, to correctly resolve them inside the VPC and keep traffic within the VPC. - Modified some CodeBuild steps to install pip and npm packages from CodeArtifact instead of from the internet. - In #323, CodeBuild Linux images were updated, eliminating the need to install yum packages and node. ### Relates - #307 By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
### Feature or Bugfix - V1.5.0 Features. Check each PR for a complete description of the feature. ### Detail - #292 - #355 - #337 - #427 - #431 By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license. --------- Co-authored-by: kukushking <kukushkin.anton@gmail.com> Co-authored-by: Dariusz Osiennik <osiend@amazon.com> Co-authored-by: Noah Paige <69586985+noah-paige@users.noreply.github.com> Co-authored-by: Dennis Goldner <107395339+degoldner@users.noreply.github.com>
Feature or Bugfix
Detail
tooling_vpc_restricted_nacl
true
we create a custom NACL for the tooling data.all created VPC with the following inbound rules. Outbound allows all traffic.Relates
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.