Skip to content
This repository has been archived by the owner on Jun 25, 2024. It is now read-only.

Initial network ingestion #30

Merged
merged 5 commits into from
Oct 5, 2020
Merged

Initial network ingestion #30

merged 5 commits into from
Oct 5, 2020

Conversation

austinkelleher
Copy link
Contributor

@austinkelleher austinkelleher commented Oct 3, 2020

Screen Shot 2020-10-03 at 3 01 04 PM

src/utils/firewall.ts Show resolved Hide resolved
terraform/compute_vms.tf Outdated Show resolved Hide resolved
Copy link
Contributor

@ndowmon ndowmon left a comment

Choose a reason for hiding this comment

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

Looks good @austinkelleher. I left a few notes.

src/steps/compute/constants.ts Show resolved Hide resolved
* If source service accounts are specified, the firewall rules apply
* only to traffic originating from an instance with a service account
* in this list. Source service accounts cannot be used to control
* traffic to an instance's external IP address because service
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* traffic to an instance's external IP address because service
* traffic to an instance's external IP address because service

Comment on lines +134 to +137
for (const networkInterface of computeInstance.networkInterfaces || []) {
const subnetwork = networkInterface.subnetwork as string;

const subnetEntity = await jobState.findEntity(subnetwork);
Copy link
Contributor

Choose a reason for hiding this comment

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

I noticed that this addition added two steps to the dependsOn of fetchComputeInstances- STEP_COMPUTE_NETWORKS and STEP_COMPUTE_SUBNETWORKS.

Can a google_compute_network have a google_compute_instance, or can only a google_compute_subnetwork have a google_compute_instance?

terraform/output.tf Show resolved Hide resolved
@austinkelleher austinkelleher merged commit 9489a76 into master Oct 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants