lvjian700
3/14/2016 - 6:14 AM

Update a IAM role's policy

Update a IAM role's policy

aws iam put-role-policy --role-name $iam_role_name --policy-name PolicyName --policy-document file://policy-document.json
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Allow",
      "Action": "elasticloadbalancing:DescribeInstanceHealth",
      "Resource": "*"
    },
    {
      "Effect": "Allow",
      "Action": "s3:GetObject",
      "Resource": "your ARN"
    }
  ]
}