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?

1 Risposta
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
ESPERTO
con risposta 2 mesi fa
profile picture
ESPERTO
verificato 2 mesi fa
  • @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?

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande