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"
}
]
}