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

#1316: EC2SubnetInstanceNodeProperties: s/subnet_id/subnetid/ #1320

Merged
merged 2 commits into from
Jun 18, 2024

Conversation

achantavy
Copy link
Contributor

@achantavy achantavy commented Jun 18, 2024

Fixes #1316.

Fixes a typo where EC2 subnets as known by EC2 instances would have their id in subnet_id instead of subnetid. This would cause a missing relationship between the subnet and VPC because VPCs attach to subnets using subnetid; see

MATCH (snet:EC2Subnet{subnetid: subnet.SubnetId}), (vpc:AWSVpc{id: subnet.VpcId})
MERGE (snet)-[r:MEMBER_OF_AWS_VPC]->(vpc)
.

This PR is the same as #1318 but with tests; getting this fixed asap.

See https://lyftoss.slack.com/archives/CTZUQL0KX/p1718644518442939 for more context.

@achantavy achantavy changed the title #1316: EC2SubnetInstance: s/subnet_id/subnetid/ #1316: EC2SubnetInstanceNodeProperties: s/subnet_id/subnetid/ Jun 18, 2024
@achantavy achantavy merged commit 7a55867 into master Jun 18, 2024
5 checks passed
@achantavy achantavy deleted the subnetid branch June 18, 2024 19:09
chandanchowdhury pushed a commit to juju4/cartography that referenced this pull request Jun 26, 2024
…ft#1320)

Fixes lyft#1316.

Fixes a typo where EC2 subnets as known by EC2 instances would have
their id in `subnet_id` instead of `subnetid`. This would cause a
missing relationship between the subnet and VPC because VPCs attach to
subnets using `subnetid`; see
https://github.com/lyft/cartography/blob/098d8ca5f4bb172944338dad9df797a36e23485a/cartography/intel/aws/ec2/subnets.py#L50-L51.

This PR is the same as lyft#1318 but with tests; getting this fixed asap.

See https://lyftoss.slack.com/archives/CTZUQL0KX/p1718644518442939 for
more context.
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.

AWS Subnets aren't linked to AWS VPCs on import
2 participants