How do I set the S3 bucket policy so that it can only be accessed by the specified IP
This document records how to set up the S3 bucket policy so that it can only be accessed by the specified IP.
Set the bucket policy to deny the operation except for the specified IP.
If you use this policy, you can access the S3 bucket only if the IP is 126.96.36.199.
Note: Please confirm that the specified IP is a static IP,If you use dynamic IP, there is a risk that the S3 bucket will not be accessible when the IP is changed.if unfortunately, you need to contact the AWS Support revocation policy.