Skip to content

Commit

Permalink
[tf] feedback from #525
Browse files Browse the repository at this point in the history
  • Loading branch information
Jack Naglieri committed Dec 12, 2017
1 parent 34a83ec commit b092979
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions terraform/modules/tf_stream_alert_kinesis_streams/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,9 @@ resource "aws_iam_group_membership" "stream_alert" {

// IAM Group Policy: Allow users in the group to PutRecords to Kinesis
resource "aws_iam_group_policy" "stream_alert_kinesis_put_records" {
count = "${var.create_user ? 1 : 0}"
name = "KinesisPutRecords"
group = "${aws_iam_group.stream_alert.id}"

count = "${var.create_user ? 1 : 0}"
name = "KinesisPutRecords"
group = "${aws_iam_group.stream_alert.id}"
policy = "${data.aws_iam_policy_document.stream_alert_writeonly.json}"
}

Expand All @@ -45,9 +44,9 @@ data "aws_iam_policy_document" "stream_alert_writeonly" {

statement {
actions = [
"kinesis:PutRecord*",
"kinesis:DescribeStream",
"kinesis:ListStreams",
"kinesis:PutRecord*",
]

resources = [
Expand Down

0 comments on commit b092979

Please sign in to comment.