Skip to content

Commit

Permalink
fix: Add credentials to control tower accounts (#1675)
Browse files Browse the repository at this point in the history
Signed-off-by: Lei Jin <lei.jin@lacework.net>
  • Loading branch information
leijin-lw authored Nov 4, 2024
1 parent 33d32ad commit 3e1885d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lwgenerate/aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -923,7 +923,7 @@ func createAwsProvider(args *GenerateAwsTfConfigurationArgs) ([]*hclwrite.Block,

attributes := map[string]interface{}{}
// set `access_key`, `secret_key` and `token` for single-account multiple-region Agentless
if args.Agentless {
if args.Agentless || args.ControlTower {
for k, v := range args.ExtraProviderArguments {
attributes[k] = v
}
Expand Down

0 comments on commit 3e1885d

Please sign in to comment.