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

⭐ Add new properties to the aws.vpc resource #2007

Merged
merged 2 commits into from
Oct 2, 2023
Merged

⭐ Add new properties to the aws.vpc resource #2007

merged 2 commits into from
Oct 2, 2023

Conversation

tas50
Copy link
Member

@tas50 tas50 commented Oct 1, 2023

Add a few new things for asset inventory:

  • CIDR Block
  • Instance tenancy settings
cnquery> aws.vpcs.first{*}
aws.vpcs.first: {
  instanceTenancy: "default"
  region: "ap-south-1"
  cidrBlock: "172.31.0.0/16"
  isDefault: true
  state: "available"
  arn: "FOO"
  id: "vpc-0c67aa67"
  flowLogs: []
  tags: {}
  routeTables: [
    0: aws.vpc.routetable id="FOO"
  ]
}

Signed-off-by: Tim Smith [email protected]

@tas50 tas50 changed the title Add new properties to the aws.vpc resource ⭐ Add new properties to the aws.vpc resource Oct 2, 2023
"state": llx.StringData(string(v.State)),
"isDefault": llx.BoolData(convert.ToBool(v.IsDefault)),
"instanceTenancy": llx.StringData(string(v.InstanceTenancy)),
"cidrBlock": llx.StringData(convert.ToString(v.CidrBlock)),
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: u can use StringDataPtr here

tas50 added 2 commits October 2, 2023 09:45
Add a few new things for asset inventory:

- CIDR Block
- Instance tenancy settings

```
cnquery> aws.vpcs.first{*}
aws.vpcs.first: {
  instanceTenancy: "default"
  region: "ap-south-1"
  cidrBlock: "172.31.0.0/16"
  isDefault: true
  state: "available"
  arn: "FOO"
  id: "vpc-0c67aa67"
  flowLogs: []
  tags: {}
  routeTables: [
    0: aws.vpc.routetable id="FOO"
  ]
}
```
Signed-off-by: Tim Smith <[email protected]>
Signed-off-by: Tim Smith <[email protected]>
@vjeffrey vjeffrey merged commit e56eac2 into main Oct 2, 2023
@vjeffrey vjeffrey deleted the tas50/vpc branch October 2, 2023 17:16
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants