Closed agowa closed 3 years ago
Hi @agowa338,
Please confirm if you are referring to uploading files using AWS Toolkit for VS S3Browser or a different tool. It is quite possible that the tool is configured to use a different AWS profile than the supplied credentials via Powershell command. Kindly confirm if this is no longer an issue.
Thanks, Ashish
With S3Browser i was referring to this software: https://s3browser.com/
With both tools the powershell script and the S3Browser Gui software the same accesskey, secret, bucket and files were used.
Hi @agowa338,
Good afternoon.
Could you please check if this is still an issue with the latest version of PowerShell tools? This is a basic scenario and should work if proper role and policies are attacked to IAM account. If possible, kindly share the reproduction steps along with the sample content which could reproduce the issue. We could not compare the behavior on S3Browser 3rd party tool.
Thanks, Ashish
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
I tried to use
Write-S3Object
andGet-S3Object
with an S3 compatible object store.Expected Behavior
Write-S3Object uploads the file.
Current Behavior
Write-S3Object
fails to upload a file withWrite-S3Object: Error making request with Error Code InvalidAccessKeyId and Http Status Code Forbidden. No further error information was returned by the service.
Get-S3Object
works just fine with the same credentials. S3Browser also works just fine (Uploading and Downloading) using the same credentials.Fidler capture of what Write-S3Object sends:
than the server returns:
and with S3Browser:
and the server returns:
Possible Solution
Not required, but suggest a fix/reason for the bug, or ideas how to implement the addition or change.
Steps to Reproduce (for bugs)
Context
How has this issue affected you? What are you trying to accomplish? Providing context helps us come up with a solution that is most useful in the real world.
Your Environment
Include as many relevant details about the environment where the bug was discovered.
Get-AWSPowerShellVersion
:AWS Tools for PowerShell Version 4.0.6.0 Copyright 2012-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Amazon Web Services SDK for .NET Core Runtime Version 3.3.107.9 Copyright 2009-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
Release notes: https://github.com/aws/aws-tools-for-powershell/blob/master/CHANGELOG.md
This software includes third party software subject to the following copyrights:
Name Value
PSVersion 7.0.1 PSEdition Core GitCommitId 7.0.1 OS Microsoft Windows 6.3.9600 Platform Win32NT PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0