Skip to content
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 pkg/models/attack_surface.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ type AttackSurface struct {

type AWSIntegration struct {
Enable bool `yaml:"enable"`
RoleNameToAssume string `yaml:"role_name_to_assume"`
PrimaryAccountID string `yaml:"primary_account_id,omitempty"`
PrimaryRegion string `yaml:"primary_region,omitempty"`
TargetRegions *[]string `yaml:"target_regions,omitempty"`
Expand Down
1 change: 1 addition & 0 deletions tests/integration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,7 @@ func TestIntegration(t *testing.T) {
PrimaryRegion: "ap-southeast-2",
TargetRegions: &[]string{"ap-southeast-2", "us-east-2"},
TargetAccounts: &[]string{"123456789012", "123456789013"},
RoleNameToAssume: "nullify-role",
},
},
}
Expand Down
1 change: 1 addition & 0 deletions tests/nullify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ attack_surface:
methods: [POST]
aws_integration:
enable: true
role_name_to_assume: nullify-role
primary_account_id: 123456789012
primary_region: ap-southeast-2
target_regions: [ap-southeast-2, us-east-2]
Expand Down
Loading