Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

nclemons

This would be very helpful. In our AWS account, all of our IAM accounts have MFA required; the only thing that we can do with our base account is to register an MFA, change our password, or retrieve STS tokens using our MFA. I have a script that logs into each of our accounts and generates profile entries with the STS credentials; for example, if I had a credentials file that looked like this:
[devaws]
region = us-east-1
aws_access_key_id = REDACTED1
aws_secret_access_key = REDACTED2
 
[moxieawsprod]
region = us-east-1
aws_access_key_id = REDACTED3
aws_secret_access_key = REDACTED4

After running the script, it would look like this:
[devaws]
region = us-east-1
aws_access_key_id = REDACTED1
aws_secret_access_key = REDACTED2
 
[moxieawsprod]
region = us-east-1
aws_access_key_id = REDACTED3
aws_secret_access_key = REDACTED4
 
[devawsmfa]
region = us-east-1
aws_access_key_id = REDACTED5
aws_secret_access_key = REDACTED6
aws_session_token = REDACTED7
 
[moxieawsprodmfa]
region = us-east-1
aws_access_key_id = REDACTED8
aws_secret_access_key = REDACTED9
aws_session_token = REDACTED10

It would be great to be able to say "this S3 account should use the profile 'moxieawsprodmfa'".
martin

Re: Allow reading S3 credentials from AWS Profile

Thanks for your suggestion.
We will see, if more people ask for this.
madman6886

Allow reading S3 credentials from AWS Profile

Hello,

It would be awesome if there could be a setting (raw option) to specify an existing AWS Profile to be used for a specific site. I can kind of do that now by setting AWS_PROFILE environment variable and then launching the WinSCP, but I would prefer to have multiple sites referencing different profiles. Let's say there would be S3Profile raw option set in the site causing the WinSCP look up the credentials for that specific profile.

Thank you,
Alex