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 Resposta
1
Resposta aceita

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
ESPECIALISTA
respondido há 9 meses
profile pictureAWS
ESPECIALISTA
avaliado há 9 meses
profile pictureAWS
ESPECIALISTA
avaliado há 9 meses
  • Thanks, I couldn't find a document like that.

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas