S3 batch operation CreateJob access denied

0

I'm trying to create batch jobs on S3. My API calls work fine when I have full S3 admin access, but now I'm trying to restrict access.

I granted S3::CreateJob on the bucket where the job is to be created, and iam::PassRole for the role for the job to run as, but CreateJob always fails with access denied. However, it works if I grant CreateJob on resource "*" rather than the specific bucket.

Is this expected? This old post https://repost.aws/questions/QUJGUe8pZ8SWKsqFCqGrvOFg/what-iam-permissions-are-needed-to-do-a-createjob-for-s3-batch#ANHD8M2jXfRtycUPZ4S5r-vQ suggests it is.

1 Antwort
1
Akzeptierte Antwort

Hello.
When using CreateJob, the resource section must be set to "*".
As you can see from the following documentation, there is nothing listed in the CreateJob resource column that can be restricted.
https://docs.aws.amazon.com/service-authorization/latest/reference/list_amazons3.html#amazons3-actions-as-permissions

profile picture
EXPERTE
beantwortet vor 9 Monaten
profile pictureAWS
EXPERTE
überprüft vor 9 Monaten
profile pictureAWS
EXPERTE
überprüft vor 9 Monaten
  • Thanks, I couldn't find a document like that.

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen