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?

demandé il y a 2 mois257 vues
1 réponse
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
EXPERT
répondu il y a 2 mois
profile picture
EXPERT
vérifié il y a 2 mois
  • @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?

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions