Skip to content

Commit 84bd9e2

Browse files
committed
cnquery-6264 AWS: EC2 AMI images collection
1 parent 1c3f958 commit 84bd9e2

File tree

4 files changed

+324
-10
lines changed

4 files changed

+324
-10
lines changed

providers/aws/resources/aws.lr

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2953,6 +2953,8 @@ aws.ec2 {
29532953
keypairs() []aws.ec2.keypair
29542954
// List of Elastic IPs (EIPs)
29552955
eips() []aws.ec2.eip
2956+
// List of AMI images owned by the account
2957+
images() []aws.ec2.image
29562958
}
29572959

29582960
// Amazon Elastic IP (EIP)
@@ -3434,6 +3436,22 @@ private aws.ec2.image @defaults("ownerAlias id name") {
34343436
enaSupport bool
34353437
// The supported TPM version. If the image is configured for NitroTPM support, the value is v2.0
34363438
tpmSupport string
3439+
// Current state of the image (available, pending, failed, etc.)
3440+
state string
3441+
// Whether the image is public
3442+
public bool
3443+
// Root device type (ebs or instance-store)
3444+
rootDeviceType string
3445+
// Virtualization type (hvm or paravirtual)
3446+
virtualizationType string
3447+
// Block device mappings for the image
3448+
blockDeviceMappings []dict
3449+
// Whether all EBS block devices are encrypted (derived from blockDeviceMappings)
3450+
encrypted bool
3451+
// Tags associated with the image
3452+
tags map[string]string
3453+
// Region where the image is located
3454+
region string
34373455
}
34383456

34393457
// Amazon EC2 instance block device

providers/aws/resources/aws.lr.go

Lines changed: 130 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

providers/aws/resources/aws.lr.manifest.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1019,6 +1019,8 @@ resources:
10191019
ebsEncryptionByDefault: {}
10201020
eips:
10211021
min_mondoo_version: 9.0.0
1022+
images:
1023+
min_mondoo_version: 9.0.0
10221024
instances: {}
10231025
internetGateways: {}
10241026
keypairs: {}
@@ -1084,19 +1086,35 @@ resources:
10841086
fields:
10851087
architecture: {}
10861088
arn: {}
1089+
blockDeviceMappings:
1090+
min_mondoo_version: 9.0.0
10871091
createdAt:
10881092
min_mondoo_version: 9.0.0
10891093
deprecatedAt:
10901094
min_mondoo_version: 9.0.0
10911095
enaSupport:
10921096
min_mondoo_version: 9.0.0
1097+
encrypted:
1098+
min_mondoo_version: 9.0.0
10931099
id: {}
10941100
name: {}
10951101
ownerAlias:
10961102
min_mondoo_version: 5.22.0
10971103
ownerId: {}
1104+
public:
1105+
min_mondoo_version: 9.0.0
1106+
region:
1107+
min_mondoo_version: 9.0.0
1108+
rootDeviceType:
1109+
min_mondoo_version: 9.0.0
1110+
state:
1111+
min_mondoo_version: 9.0.0
1112+
tags:
1113+
min_mondoo_version: 9.0.0
10981114
tpmSupport:
10991115
min_mondoo_version: 9.0.0
1116+
virtualizationType:
1117+
min_mondoo_version: 9.0.0
11001118
is_private: true
11011119
min_mondoo_version: 5.15.0
11021120
platform:

0 commit comments

Comments
 (0)