Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

313
Visualizações
how to give full access of s3 bucket from ec2 security group

I want to give full access to the S3 bucket from the ec2 security group so all the ec2 instances all associated with that security group can have full access to S3 bucket.

also, I am thinking in the right direction or any other method need to use.

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

Unfortunately, you cannot add ec2 security group to the bucket policy.

However, usually if you want to enable access to S3 to your instances you would do this though instance roles. This way all instances which would need to have the S3 access would have the role attached allowed for it.

Having the role, if you want to use the bucket policy you would control access by specifying the role's ARN as the principle in the bucket policy.

over 4 years ago · Santiago Trujillo Relatório

0

I know it's a bit late, but for others wandering on to this question, see this post on server fault.

Tl;dr:

  • Create an access point for the bucket in S3, selecting the VPC that will access S3
  • Then create an endpoint in that VPC to S3 -- it will ask you to select the route from your VPC routing table that will redirect traffic from the concerned instances to S3
  • Lastly, create an outbound HTTPS rule in your security group with the VPC endpoint prefix as your destination, e.g. pl-xxxx

You can get the endpoint prefix in the AWS console via VPC --> Managed Prefix Lists --> prefix that points to S3.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda