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

Configurable restricted VPC for tooling account #337

Merged
merged 11 commits into from
Mar 6, 2023
Merged

Conversation

dlpzx
Copy link
Contributor

@dlpzx dlpzx commented Mar 1, 2023

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.

image

  • 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 docs: OpenSearch Serverless docs - V1.5.0 release #323, CodeBuild Linux images were updated, eliminating the need to install yum packages and node.

Relates

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

@dlpzx dlpzx changed the title Cleancicdnetworking Configurable restricted VPC for tooling account Mar 3, 2023
@dlpzx dlpzx marked this pull request as ready for review March 3, 2023 14:28
@dlpzx dlpzx requested a review from kukushking March 3, 2023 14:30
@dlpzx
Copy link
Contributor Author

dlpzx commented Mar 3, 2023

Hi @kukushking, I tested the above configuration in a fresh deployment and it completed successfully :)

)
nacl.add_entry(
"entryInboundAllInVPC",
cidr=ec2.AclCidr.ipv4("10.0.0.0/16"),
Copy link
Contributor

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?

Copy link
Contributor Author

@dlpzx dlpzx Mar 6, 2023

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Tested 👍

Copy link
Contributor

@kukushking kukushking left a comment

Choose a reason for hiding this comment

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

Looks great!

@dlpzx dlpzx merged commit 86559a1 into v1m5m0 Mar 6, 2023
@dlpzx dlpzx deleted the cleancicdnetworking branch April 4, 2023 07:15
dlpzx added a commit that referenced this pull request Apr 11, 2023
### 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.


![image](https://user-images.githubusercontent.com/71252798/222077893-69329834-e8a0-4b6e-97e5-2ea2c7833d72.png)

- 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.
@dlpzx dlpzx mentioned this pull request Apr 11, 2023
dlpzx added a commit that referenced this pull request Apr 25, 2023
### 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>
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.

2 participants