Closed mdaniel closed 4 years ago
Hi mdaniel, sorry for the late response and thank you for reporting this issue. We are looking at options to address this issue. I'll update this issue ticket when a decision has been made
Correct, this issue was addressed in release 2.3.1550. Thanks for linking the commit!
I am trying out amazon-ssm-agent (2.3.1319.0) and am experiencing unexpected behavior
What happened
When using
AWS-ApplyAnsiblePlaybooks
with aSourceType
ofS3
and a fixed, publicly accessiblepath
in theSourceInfo
, it dies with 403 due to an attempt toListS3Directory
on a bucket that we have configured to not haveList*
but that specified path is accessible without any S3 operations
What was expected
Fetch the given path as directed
I can appreciate the amazon-ssm-agent might not know ahead of time if a given
path
is a file or "directory," and so it attempting to callListS3Directory
is a reasonable action, but if thatListS3Directory
fails, but then there is a 200-OK response for the specified path, that 200 should supersede any auto-discovery logic and theaws:downloadContent
should fetch the content as directed