How to Access Amazon S3 with AWS STS AssumeRole and Temporary IAM Role Credentials in CS Browser
CS Browser
Free Windows client for Amazon S3 and Amazon S3 compatible storage services
 
Follow

Access Amazon S3 with AWS STS AssumeRole

Use the Amazon S3 via AssumeRole account type to access Amazon S3 with an IAM role in your AWS account or another AWS account. For example, you can use a read-only role to browse files in a bucket shared by another team.

CS Browser uses credentials from a source account to call AssumeRole in AWS Security Token Service (AWS STS). AWS returns temporary security credentials that include an access key ID, a secret access key, and a session token. CS Browser uses them to access Amazon S3 with the role's permissions, keeps them in memory, and requests new credentials as needed when they are about to expire.

Before you start

Get the target Role ARN from your AWS administrator and make sure the account you will use as the source is already added to CS Browser. The source identity must be allowed to assume the role, and the role must grant the Amazon S3 permissions you need.

For cross-account access, the target role's trust policy must allow the source identity to assume it, and the source identity must have sts:AssumeRole permission for that role. Ask your administrator whether the trust policy also requires an external ID or multi-factor authentication (MFA). See Switch to an IAM role in the AWS documentation.

Add an AssumeRole account

  1. In CS Browser, choose Accounts, Add new account or press Ctrl+Alt+N.

    Accounts menu with Add new account highlighted and Ctrl+Alt+N shown
    Open the Add New Account dialog from the Accounts menu.

    The Add New Account dialog opens:

    Add New Account dialog with the AssumeRole account type, an example role ARN, and a source account
    An example AssumeRole account with a read-only role ARN.
  2. Enter a Display name to identify the account in the Accounts menu.

  3. Under Account type, select Amazon S3 via AssumeRole.

  4. Enter the target Role ARN. For example, arn:aws:iam::123456789012:role/s3-read-only-access.

  5. Select the Source account whose AWS credentials CS Browser will use to call AssumeRole.

  6. Keep Use secure transfer (SSL/TLS) enabled to encrypt connections to Amazon S3. If the role requires an external ID or MFA, open advanced settings and enter the required values.

  7. Click Add new account, then select the new account from the Accounts menu or use the shortcut shown next to its name.

    Accounts menu with the new AssumeRole account highlighted
    Select the saved AssumeRole account to use it.

Advanced Account Settings

These settings let you configure the IAM role session, change how CS Browser connects to Amazon S3, and choose which buckets it lists.

Click advanced settings at the bottom left of the account dialog.

The Advanced Account Settings dialog opens:

AssumeRole tab with External ID, MFA Serial, session duration, and session name
Configure the parameters CS Browser sends to AWS STS.

External ID - Enter the value provided by your administrator if the role's trust policy requires one. This is common when a third party assumes a role in your AWS account.

MFA Serial - If the role requires MFA, enter the serial number of the caller's hardware MFA device or the ARN of the caller's virtual MFA device. CS Browser prompts for the current one-time code when it requests a role session.

Session duration in seconds - Enter a value from 900 seconds (15 minutes) up to the role's configured maximum, which can be as high as 43,200 seconds (12 hours). The default is 3600 seconds (1 hour). If the source account uses an IAM role to assume another role (role chaining), AWS limits the new session to 3600 seconds.

Session name - Use a name that helps identify this session when reviewing AWS CloudTrail logs. It appears in the assumed-role ARN. Use the name your administrator specifies if the role's trust policy requires one.

Connection

Select the Connection tab to change how this account connects to Amazon S3.

Connection tab for an AssumeRole account showing certificate validation, proxy, dual-stack endpoints, and Transfer Acceleration
Connection settings for an AssumeRole account.

SSL/TLS certificate validation - Choose how CS Browser verifies server certificates for this account.

  • Use global settings - Inherit Tools, Options, Advanced, Bypass SSL/TLS validation. This is the default.
  • Validate certificates - Verify server certificates for this account regardless of the global setting.
  • Bypass certificate validation - Ignore certificate validation errors and trust all server certificates for this account.

Proxy - Shows the current proxy mode. Click the summary or the pencil button to open Proxy Settings.

Use dual-stack endpoints (IPv4/IPv6) - Use Amazon S3 endpoints that support both IPv4 and IPv6.

Use Amazon S3 Transfer Acceleration - Use a Transfer Acceleration endpoint for file transfers. Enable this option for buckets where Transfer Acceleration is configured.

Click Close, then click Add new account or Save changes to save the account. Proxy and certificate validation changes apply to new connections.

Miscellaneous

Use the Miscellaneous tab to choose what CS Browser loads when you select the account.

Miscellaneous tab with bucket listing, CloudFront distribution checks, and External Buckets
Choose whether to list buckets automatically and add any external buckets.

List all my buckets when account assigned - When enabled, CS Browser calls the Amazon S3 ListBuckets operation when you select this account. If that operation returns AccessDenied, check whether the role has the s3:ListAllMyBuckets permission. If the role is intended to access only specific buckets, turn off this option and add those buckets under External Buckets.

Check CloudFront distributions when account assigned - Enables a CloudFront ListDistributions check after bucket listing so CS Browser can mark buckets used as origins. The role needs the cloudfront:ListDistributions permission for this check. Turn off this option if the role has no CloudFront access.

External Buckets - Enter one bucket per line. You can include an optional prefix, for example example-bucket/reports/2026. The role still needs permission to access that bucket or prefix. See how to open a shared bucket.

See Also

CS Browser 13.6.9 Freeware
Powered by Amazon Web Services and Rated by CNET Editors!
Our customers say

"CS Browser is an invaluable tool to me as a web developer to easily manage my automated site backups" -Bob Kraft, Web Developer

"Just want to show my appreciation for a wonderful product. I use CS Browser a lot, it is a great tool." -Gideon Kuijten, Pro User

"Thank You Thank You Thank You for this tool. A must have for anyone using Amazon S3!" -Brian Cummiskey, USA

Related Products
RdpGuard
protects your Windows Server from RDP Brute-force Attacks.
CS Browser is developed by Netsdk Software FZE and is not affiliated with, endorsed by, or sponsored by Amazon or AWS. Amazon S3 and Amazon S3 Glacier are trademarks of Amazon.com, Inc. or its affiliates.
Copyright © 2008-2026 Netsdk Software FZE. All rights reserved.  Terms of Use.  Privacy Policy.  Refund Policy.  Mount Amazon S3 Bucket.  RDP brute-force protection.