-
Notifications
You must be signed in to change notification settings - Fork 24
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
✨ Add AWS VPC subnet resource #1827
✨ Add AWS VPC subnet resource #1827
Conversation
39f3623
to
3dd30ab
Compare
Added the filed
|
43fcabf
to
0f9ace5
Compare
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.
this looks awesome!! thank you! ✨ I'll pull it down and try it out later this morning
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.
can you please add in the subnet arn, and add an id function for the subnet func (s *mqlAwsVpcSubnet) id() (string, error) {
that returns the arn?
this will help ensure the objects are uniquely identifiable
I have added the arn field, I noticed a bug tho.
So the number of subnets is correct but they all have the same id. I have 2 route tables in my aws account
I see two route tables here but they both have the same id |
did you add in the id function?
route table might also need the id fix |
Ah, adding the I also saw now this comment
But, doesn't that mean that there is probably a bug in the default _id implementation because it should have been able to use the correct |
cf43826
to
664e630
Compare
using the arn as the id guarantees we get the unique one since it includes the region and account id - whenever dealing with aws we always want to use the arn where possible because of that. good question about the _id thing tho, i haven't looked at it much yet in our new v9 world...i'll dig around for an answer for u on that |
Signed-off-by: Marius Kimmina <[email protected]>
2559871
to
d91a05e
Compare
Anything still needs to be done here from my side? @vjeffrey |
sorry for the delay! this is great, thank you! |
#1794
first time making changes to providers, so please review carefully.
Example usage
I wasn't sure what kind of fields to add here. Just went with
id
andcidrs
for now - there's probably more that could make sense.