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 short lived instance field in agentless data structs #1399

Merged
merged 1 commit into from
Oct 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions api/cloud_accounts_aws_sidekick.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ type AwsSidekickData struct {
ScanHostVulnerabilities bool `json:"scanHostVulnerabilities"`
ScanMultiVolume bool `json:"scanMultiVolume"`
ScanStoppedInstances bool `json:"scanStoppedInstances"`
ScanShortLivedInstances bool `json:"scanShortLivedInstances"`

AccountID string `json:"awsAccountId,omitempty"`
BucketArn string `json:"bucketArn,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions api/cloud_accounts_aws_sidekick_org.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ type AwsSidekickOrgData struct {
ScanHostVulnerabilities bool `json:"scanHostVulnerabilities"`
ScanMultiVolume bool `json:"scanMultiVolume"`
ScanStoppedInstances bool `json:"scanStoppedInstances"`
ScanShortLivedInstances bool `json:"scanShortLivedInstances"`

//Properties specific to the AWS organization integration type
ScanningAccount string `json:"scanningAccount"`
Expand Down
3 changes: 3 additions & 0 deletions api/cloud_accounts_aws_sidekick_org_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ func singleAwsSidekickOrgCloudAccount(id string) string {
"scanFrequency": 24,
"scanContainers": true,
"scanHostVulnerabilities": true,
"scanShortLivedInstances": false,
"scanStoppedInstances": true,
"scanMultiVolume": false,
"managementAccount": "000123456789",
"monitoredAccounts": "r-1234, ou-0987",
"scanningAccount": "123456789000"
Expand Down
5 changes: 4 additions & 1 deletion api/cloud_accounts_aws_sidekick_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ func singleAwsSidekickCloudAccount(id string) string {
},
"scanFrequency": 24,
"scanContainers": true,
"scanHostVulnerabilities": true
"scanHostVulnerabilities": true,
"scanShortLivedInstances": false,
"scanStoppedInstances": true,
"scanMultiVolume": false
},
"enabled": 1,
"intgGuid": "` + id + `",
Expand Down