Skip to content

Commit deb4729

Browse files
author
Vikranth Subramanian
committed
add roleName to the config file parser
1 parent c3c41eb commit deb4729

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

pkg/models/attack_surface.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ type AttackSurface struct {
1212

1313
type AWSIntegration struct {
1414
Enable bool `yaml:"enable"`
15+
RoleNameToAssume string `yaml:"role_name_to_assume"`
1516
PrimaryAccountID string `yaml:"primary_account_id,omitempty"`
1617
PrimaryRegion string `yaml:"primary_region,omitempty"`
1718
TargetRegions *[]string `yaml:"target_regions,omitempty"`

tests/integration_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ func TestIntegration(t *testing.T) {
194194
PrimaryRegion: "ap-southeast-2",
195195
TargetRegions: &[]string{"ap-southeast-2", "us-east-2"},
196196
TargetAccounts: &[]string{"123456789012", "123456789013"},
197+
RoleNameToAssume: "nullify-role",
197198
},
198199
},
199200
}

tests/nullify.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@ attack_surface:
116116
methods: [POST]
117117
aws_integration:
118118
enable: true
119+
role_name_to_assume: nullify-role
119120
primary_account_id: 123456789012
120121
primary_region: ap-southeast-2
121122
target_regions: [ap-southeast-2, us-east-2]

0 commit comments

Comments
 (0)