Difference between revisions of "Aws:RequestedRegion"

From wikieduonline
Jump to navigation Jump to search
(Created page with "* <code>aws:RequestedRegion</code> (April 2018) <ref>https://aws.amazon.com/es/blogs/security/easier-way-to-control-access-to-aws-regions-using-iam-policies/</ref> == R...")
 
Line 1: Line 1:
 
* <code>[[aws:RequestedRegion]]</code> (April 2018) <ref>https://aws.amazon.com/es/blogs/security/easier-way-to-control-access-to-aws-regions-using-iam-policies/</ref>
 
* <code>[[aws:RequestedRegion]]</code> (April 2018) <ref>https://aws.amazon.com/es/blogs/security/easier-way-to-control-access-to-aws-regions-using-iam-policies/</ref>
 +
 +
 +
 +
Restrict to a region:
 +
<pre>
 +
{
 +
  "Version": "2012-10-17",
 +
  "Statement": [{
 +
    "Effect": "Deny",
 +
    "Action": "*",
 +
    "Resource": "*",
 +
    "Condition": {
 +
      "StringNotEquals": {
 +
        "aws:RequestedRegion": [
 +
          "eu-central-1",
 +
          "eu-west-1"
 +
        ]
 +
      }
 +
    }
 +
  }]
 +
}
 +
</pre>
  
  

Revision as of 11:02, 8 August 2021

Advertising: