Saltar al contenido

Bandwidth Qurey

0

I have high bandwidth issue. My EC2 is running a file server to S3 is there anyway I can solve this issue?

preguntada hace 2 años364 visualizaciones
4 Respuestas
1
Respuesta aceptada

ensure is it setup correctly

There are 2 methos exists

1.Check with CloudTrail

Execute the API and check it via CloudTrail. Check CloudTrail logs, vpcEndpointId field exists.

$ aws s3 ls s3://YOUR-BUCKET/
Check the CloudTrail log and if the vpcEndpointId field exists, success.

{
    ...
    "eventSource": "s3.amazonaws.com",.
    "eventName": "ListBuckets",.
    ...
    "sourceIPAddress": "10.30.0.160", ...
    ...
    "vpcEndpointId": "vpce-0554e2f536c2ae78c", ...
    ...
}

2.Executing command from private subnet

As a way to check for private subnet limitation, it is successful if the API can be executed even though it cannot communicate with the Internet.

EXPERTO
respondido hace 2 años
EXPERTO
revisado hace 2 años
  • If VPC Endpoint is not working, check here

    https://repost.aws/knowledge-center/connect-s3-vpc-endpoint

  • Thanks for the advice but may I check run this "aws s3 ls s3://YOUR-BUCKET/" on my EC2 or?

  • Yes. On your EC2.

  • This is what I get:

    ubuntu@ip-17*-3*-2*-2*:~$ aws s3 ls s3://fr**-t***-fi***********-f********-s3/ PRE Ba******/ PRE fr**-t***-fi***********-f********-s3/

    is this counted as going via VPC Endpoint?

  • Ifyou are executing command from EC2 private subnet,its going via Endpoint.

1

Hi. This document will help you.

[How can I improve the transfer speeds for copying data between my S3 bucket and EC2 instance?]

https://repost.aws/knowledge-center/s3-transfer-data-bucket-instance

In this case, especially these instructions will work.

  • Use enhanced networking on the EC2 instance
  • Use a VPC endpoint for Amazon S3
  • Upgrade your EC2 instance type
EXPERTO
respondido hace 2 años
EXPERTO
revisado hace 2 años
  • I have setup VPC endpoint but ensure is it setup correctly any expert can help to see please?

1
EXPERTO
respondido hace 2 años
EXPERTO
revisado hace 2 años
  • Thank You exeprt Sedat_Salman

0

Maybe based on the below image:

Enter image description here

Do you think I have setup my VPC Endpoint correctly?

respondido hace 2 años
  • Yes.It seems well.

  • Thanks You Expert :D

  • Your welcome.If you don't mind, I would like you to "Accept Answer" to my first answer for the sake of the community and those who are troubled by the same event.

  • Yes Exeprt. I have accept the answer on this post. Once again thanks.

  • Thanks! :D

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.