Unsolved
This post is more than 5 years old
4 Posts
0
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" } } } ] }
No Events found!
PCottignies
1 Message
0
May 24th, 2022 05:00
Hello Martin, I am facing the same issue; did you get the solution ? Thanks Pierre
DELL-Josh Cr
Moderator
•
9.3K Posts
0
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.