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?

已提问 2 个月前257 查看次数
1 回答
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
专家
已回答 2 个月前
profile picture
专家
已审核 2 个月前
  • @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?

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则