Skip to content

Commit

Permalink
updated instance profile examples
Browse files Browse the repository at this point in the history
  • Loading branch information
dsreehas committed Apr 28, 2024
1 parent 6f9e64c commit 8ec0bf6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 14 deletions.
8 changes: 3 additions & 5 deletions examples/instance-profile/policies/inline_policy_1.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
"Statement": [
{
"Effect": "Allow",
"Principal": {
"Service": "ec2.amazonaws.com"
},
"Action": "sts:AssumeRole"
"Action": ["s3:ListBucket"],
"Resource": ["arn:aws:s3:::example-bucket"]
}
]
}
}
12 changes: 3 additions & 9 deletions examples/instance-profile/policies/inline_policy_2.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,8 @@
"Statement": [
{
"Effect": "Allow",
"Action": [
"s3:ListBucket",
"s3:GetObject"
],
"Resource": [
"arn:aws:s3:::my-bucket",
"arn:aws:s3:::my-bucket/*"
]
"Action": ["dynamodb:DescribeTable"],
"Resource": ["arn:aws:dynamodb:*:*:table/example-table"]
}
]
}
}

0 comments on commit 8ec0bf6

Please sign in to comment.