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

🐛 Fix AWS VPC routetable id #1873

Merged
merged 1 commit into from
Oct 2, 2023

Conversation

mariuskimmina
Copy link
Contributor

Found this bug during #1827

Before

aws.vpcs.where[0].routeTables: [
  0: aws.vpc.routetable id="rtb-0d28b6f55dfe767c2"
  1: aws.vpc.routetable id="rtb-0d28b6f55dfe767c2"
]

Shows the same id twice

After

aws.vpcs.where[0].routeTables: [
  0: aws.vpc.routetable id="rtb-0d28b6f55dfe767c2"
  1: aws.vpc.routetable id="rtb-0952ff3c9d1568369"
]

Signed-off-by: Marius Kimmina <[email protected]>
@@ -140,6 +140,10 @@ func (a *mqlAwsVpc) flowLogs() ([]interface{}, error) {
return flowLogs, nil
}

func (a *mqlAwsVpcRoutetable) id() (string, error) {
return a.Id.Data, nil
Copy link
Contributor

Choose a reason for hiding this comment

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

this fixes the bug, thank you!

same comment as the others, id love to have a region prefix or something on here unless aws guarantees these ids are unique across regions.

that said, this fixes a bug, so im gonna go ahead and get this merged in

@vjeffrey vjeffrey merged commit 6e2a951 into mondoohq:main Oct 2, 2023
4 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Oct 2, 2023
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.

2 participants