Skip to content

After upgrading to 4.1.737 - Write-S3Object causes Access Denied #371

Closed
@httran13

Description

@httran13

Describe the bug

Hi, after upgrading to 4.1.737 my code for Write-S3Object causes Access Denied. Im not exactly sure why but I've confirmed this by downgrading the module to 4.1.736.0 and my script worked again.

I see there are some changes to checksum but from what I can tell, im not utilizing any multi-part upload. Infact its just a single xml file of kb size

            Write-S3Object -EndpointUrl $Env:S3_ENDPOINT -Region $Env:S3_REGION -ProfileName "my-s3-api" -BucketName $Env:S3_RESULT_BUCKET -Folder "./results/" -KeyPrefix "latest" -SearchPattern "$topFolder/*.xml"

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

Expected the Write-S3Object to write object to bucket successfully

Current Behavior

Throws exception with Access Denied when using version 4.1.737

Reproduction Steps

Install previous version
Install-AWSToolsModule AWS.Tools.S3 -CleanUp -Force -RequiredVersion "4.1.736.0"
Run cmd

            Write-S3Object -EndpointUrl $Env:S3_ENDPOINT -Region $Env:S3_REGION -ProfileName "my-s3-api" -BucketName $Env:S3_RESULT_BUCKET -Folder "./results/" -KeyPrefix "latest" -SearchPattern "$topFolder/*.xml"

SHould be success
Install-AWSToolsModule AWS.Tools.S3 -CleanUp -Force -RequiredVersion "4.1.737.0"
run cmd above again

Possible Solution

No response

Additional Information/Context

We are targeting IBM Cloud Object Storage API's, not Amazon

AWS Tools for PowerShell version used

4.1.737.0

PowerShell version used

Name Value


PSVersion 7.4.2
PSEdition Core
GitCommitId 7.4.2
OS Darwin 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:03:15 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6000
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

Operating System and version

OSX Sequioa

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions