how to access s3 bucket from resources within a private vpc?

0

I have a sagemaker processing job that runs in a private vpc, will it be able to access s3 buckets within the same account , but not in a vpc?

gefragt vor 2 Monaten257 Aufrufe
1 Antwort
2

Hi,

First of all, Amazon S3 buckets can not be hosted inside a VPC.

Having said that, you can access an Amazon S3 bucket from a private subnet, with non additional charge, using gateway VPC endpoints. Take a look at the following AWS documentation page, I hope it helps you.

Note that you can also add an Internet Gateway + NAT Gateway to allow your workloads from a private subnet to communicate with an Amazon S3 bucket over the internet, but apart from being more expensive, I suppose that you want to avoid it.

profile picture
EXPERTE
beantwortet vor 2 Monaten
profile picture
EXPERTE
überprüft vor 2 Monaten
  • @Mikel Del Tio - thanks . somewhat related follow up question , do you know if other resources in sagemaker, like models and endpoints are also in vpc by default? if so, i will create a vpc endpoints for all the sagemaker resources to access s3?

  • Sorry, I don't understand what you mean. Could you add more information please?

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