Articles → AWS → Create A Conditional Policy Using The AWS Policy Generation Tool
Create A Conditional Policy Using The AWS Policy Generation Tool
What Should I Know Before Reading This Article?
Scenario
Different Steps For Creating Conditional Policy
- Generate the policy JSON using the AWS policy generation tool
- Create a new policy using the JSON in the AWS console
Generate The Policy JSON Using The AWS Policy Generation Tool
Click to Enlarge
Click to Enlarge
| Field | Value |
|---|
| Select Type of Policy | IAM Policy |
| Effect | Allow |
| AWS Service | Amazon EC2 |
| Actions | All Actions |
| Amazon Resource Name (ARN) | * |
| Field | Value |
|---|
| Condition | StringLike |
| Key | ec2 region |
| Value | us-east-1 |
Click to Enlarge
Click to Enlarge
Click to Enlarge
Create A New Policy Using The JSON In The AWS Console
Click to Enlarge
Click to Enlarge
Click to Enlarge
| Posted By - | Karan Gupta |
| |
| Posted On - | Sunday, September 19, 2021 |