Sümeyye Sever


Users & Groups

When we created an account on AWS we created a root acount by default. This is root user of our account. You should use this only when creating your account. You shouldn’t use that account anymore or even share it. What should you do then? Create users.

So why do we create users and why do we create groups? Because we want to allow them to use our AWS accounts and allow to them to do so, we have to give them permissions.

Permissions

Policies Structure

{
  "Version": "2012-10-17",
  "Id": "S3-Account-Permissions",
  "Statement": [
    {
	    "Sid": "1",
      "Effect": "Allow",
      "Action": "s3:ListBucket",
      "Resource": "arn:aws:s3:::example-bucket"
    },
    {
      "Effect": "Allow",
      "Principal": {
	      "AWS": ["arn:aws:iam::123456789012:root"]
	     },
      "Action": [
        "s3:GetObject",
        "s3:PutObject"
      ],
      "Resource": "arn:aws:s3:::example-bucket/*"
    }
  ]
}

1. "Version": "2012-10-17"