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




  1. Generate the policy JSON using the AWS policy generation tool
  2. Create a new policy using the JSON in the AWS console



Generate The Policy JSON Using The AWS Policy Generation Tool




Picture showing the search result of aws policy generation tool in google search page
Click to Enlarge



Picture showing the aws policy generation page
Click to Enlarge



FieldValue
Select Type of PolicyIAM Policy
EffectAllow
AWS ServiceAmazon EC2
ActionsAll Actions
Amazon Resource Name (ARN)*




FieldValue
ConditionStringLike
Keyec2 region
Valueus-east-1


Picture showing a section of aws policy generation page to add conditions
Click to Enlarge



Picture showing the condition gets added on click of Add statement button
Click to Enlarge



Picture showing the json text of the policy created using the aws policy generation tool
Click to Enlarge




Create A New Policy Using The JSON In The AWS Console




Picture showing the create policy button for adding the new policy
Click to Enlarge



Picture showing the JSON tab to paste the policy generated using the aws policy generation tool
Click to Enlarge



Picture showing the JSON tab pasted in the JSON tab while creating the policy
Click to Enlarge




Posted By  -  Karan Gupta
 
Posted On  -  Sunday, September 19, 2021

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250