IAM: Policies and Permissions
This policies will help us to define access
Users or Groups can be assigned JSON documents called policies.
These policies define the permissions of the users.
In AWS you apply the least privilege principle: don’t give more permissions than a user needs.
Here we allow user to describe ec2 and few access to CloudWatch.


IAM Policies Structure

Consists of
Version: policy language version, always include “2012 -10-17”
Id: an identifier for the policy (optional) *
Statement: one or more individual statements (required)
Statements consists of
Sid: an identifier for the statement (optional) *
Effect: whether the statement allows or denies access (Allow, Deny)
Principal: account/user/role to which this policy applied to
Action: list of actions this policy allows or denies
Resource: list of resources to which the actions applied to
Condition: conditions for when this policy is in effect (optional) *
Last updated