aws-samples / aws-samples/lambda-ecs-worker-pattern

unable to access sqs queue from ecs task

Aberta
#6 4 comentários 3 reações 0 responsáveis Ver no GitHub
Linguagem predominante
POV-Ray SDL
Estrelas
293
Forks
46
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

I'm trying to understand how this worked. When I run it i'm able to create the SQS task and launch the task but when the ECS task tries to read from the queue it gets the following error, which I have reproduced by logging into the shell script container (after preventing it from exiting):

root@f9910bdcd9d6:/# aws sqs receive-message --queue-url=https://queue.amazonaws.com/831754492748/ecs-test-plepeskaQueue --region=us-east-1

An error occurred (AccessDenied) when calling the ReceiveMessage operation: Access to the resource https://queue.amazonaws.com/ is denied.

And this makes sense b/c although I can see that the ecsInstanceRole has a policy that gives it access to the S3 bucket I can't see where it is given access to the SQS queue.

Has something changed since this worked? Or, is there another reason why access to the queue is denied?

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Comece pela configuração da função ECS referenciada na issue e reproduza o comando aws sqs receive-message dentro do contêiner. Rastreie qual função a tarefa usa e compare suas permissões com as da fila nomeada; considera-se concluído quando a causa da negação for identificada e o exemplo for documentado ou corrigido para que a tarefa possa receber mensagens.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
aws
Domínio
authorization, cloud
Tipo de issue
Bug
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
35/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.