特定IPと、API Gatewayからのアクセスを許可するS3バケットのポリシーの書き方を教えてください

0

以下を満たすS3バケットのアクセス許可のポリシーの書き方を教えてください。

  1. Pythonでupload_file() を使いアップロード: 特定のIPアドレスを持つPCからのみ許可
  2. API Gateway REST APIでPOST: 全て許可

以下のような書き方では、API Gatewayからのアクセスが不可能でした。

{ "Version": "2012-10-17", "Statement": { "Effect": "Deny", "Action": "", "Resource": "", "Condition": { "NotIpAddress": { "aws:SourceIp": [ "x.x.x.x/xx" ] }, "Bool": {"aws:ViaAWSService": "false"} } } }

otashi
preguntada hace 6 meses301 visualizaciones
No hay respuestas

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas