Skip to content

Commit

Permalink
Add missing service grants to iam_policies
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigodelmonte committed Aug 11, 2020
1 parent 187e1ec commit 6cf5d08
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Terraform 0.12. Module version to ~> v2.0.
module "kinesis-stream" {
source = "rodrigodelmonte/kinesis-stream/aws"
version = "v2.0.1"
version = "v2.0.2"
name = "kinesis_stream_example"
shard_count = 1
Expand Down
4 changes: 3 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ resource "aws_iam_policy" "read-only" {
"kinesis:DescribeStream",
"kinesis:GetRecords",
"kinesis:GetShardIterator",
"kinesis:SubscribeToShard"
"kinesis:SubscribeToShard",
"kinesis:ListShards"
]
Resource = [
aws_kinesis_stream.this.arn
Expand All @@ -45,6 +46,7 @@ resource "aws_iam_policy" "write-only" {
{
Effect = "Allow"
Action = [
"kinesis:DescribeStream",
"kinesis:PutRecord",
"kinesis:PutRecords",
]
Expand Down

0 comments on commit 6cf5d08

Please sign in to comment.