Skip to content

Commit 3e1885d

Browse files
authored
fix: Add credentials to control tower accounts (#1675)
Signed-off-by: Lei Jin <[email protected]>
1 parent 33d32ad commit 3e1885d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lwgenerate/aws/aws.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -923,7 +923,7 @@ func createAwsProvider(args *GenerateAwsTfConfigurationArgs) ([]*hclwrite.Block,
923923

924924
attributes := map[string]interface{}{}
925925
// set `access_key`, `secret_key` and `token` for single-account multiple-region Agentless
926-
if args.Agentless {
926+
if args.Agentless || args.ControlTower {
927927
for k, v := range args.ExtraProviderArguments {
928928
attributes[k] = v
929929
}

0 commit comments

Comments
 (0)