joining two conditions in amazon s3 bucket policy
问题 say I have a condition like where I want that if the request is not from these ips ["192.0.2.0/24","203.0.113.0/24"] and if the request doesn't have a referrer among the following [example1.com, example2.com ] then deny it. I know individually I can do something like this: { "Sid": "6", "Effect": "Allow", "Principal": "*", "Action": "s3:GetObject", "Resource": "arn:aws:s3:::my_bucket/*", "Condition": { "IpAddress":{ "aws:SourceIp": ["192.0.2.0/24","203.0.113.0/24"] } } } { "Sid": "7", "Effect