Start a Conversation

Unsolved

This post is more than 5 years old

1995

February 8th, 2019 08:00

ECS Bucket Policy to deny access for specific IP

Hi, I have created a bucket Policy to deny access for all hosts except from the one specified. I have looked at the data access guide and examples from aws. It seems pretty simple but it doesn't work. I can access the bucket from any hosts.. Any idea ? { "Version": "2012-10-17", "Id": "S3PolicyId1", "Statement": [ { "Sid": "Deny All Except Listed IP", "Effect": "Deny", "Principal": "test-mc-objuser", "Action": [ "s3:*" ], "Resource": [ "bucket-policy-testing/*" ], "Condition": { "NotIpAddress": { "aws:SourceIp": "1.1.1.1" } } } ] }

1 Message

May 24th, 2022 05:00

Hello Martin, I am facing the same issue; did you get the solution ? Thanks Pierre

Moderator

 • 

9.3K Posts

May 24th, 2022 09:00

Hi Pierre,

Thanks for your question about access control for the ECS bucket. Which version are you using? Are you trying to allow a single IP or a range? Is the IP address an internal or external IP address? Is it formatted like this https://dell.to/3PFsywF

 

Let us know if you have any additional questions.

No Events found!

Top