0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Private SubnetにあるEC2からS3へ、VPCエンドポイントを利用してアクセスする

0
Posted at

エンドポイントの作成

VPCからエンドポイント選択
スクリーンショット 2020-10-06 12.44.20.png
サービス名でS3を検索
スクリーンショット 2020-10-06 12.45.11.png
対象のVPCとPrivateSubnetが明示的に関連づけられているルートテーブルを選択
スクリーンショット 2020-10-06 12.45.21.png
ポリシーは適宜用途に合わせて変更し、作成
スクリーンショット 2020-10-06 12.45.47.png

curlでアクセステスト

本来であればプライベートなサブネットに配置しているため、外部ネットワークに出られないはずだが、きちんとS3に到達していることが確認できる

curl --verbose https://your.s3.host

VPCエンドポイントとは

外部ネットワークにあるリソースにセキュアにアクセスする方法。公式

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?