Closed gregory-lecomte closed 7 months ago
You can add --profile
to the list of arguments you want to run. Slightly messy maybe, but as profile is part of the command line call, adding it makes sense.
e.g.
aws_cli_commands = ["s3api", "list-objects", "--profile", "your-profile-name-here", "--bucket", "ryft-public-sample-data", "--no-sign-request"]
I can certainly add the option of using a profile argument.
And I'll also fix the lack of white space (VERY sorry about that!!!).
I've also added support for --region
. Final testing and releasing shortly.
Hello,
I can't use the module when I want to use a profile + an assume role. The console return the following error :
Additionally, as you can see in the return message, there is an error line 27, some spaces are missing around brackets.
To fix temporary my issue, I had to add in the bash script the option "--profile" in sts assume command line to fix my issue with a variable "profile" in the variable.tf file.
But I think you can do better to take in consideration the option --profile when it's set or not.
Regards,