Skip to content

Commit

Permalink
Revert fix. Travis CI Needs to use TF v0.12.
Browse files Browse the repository at this point in the history
  • Loading branch information
Xtigyro committed Jul 6, 2019
1 parent 99425f3 commit 7edc404
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions iam.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
data "aws_iam_policy_document" "log_assume" {
count = "${var.enabled == "true" ? 1 : 0}"
count = var.enabled == "true" ? 1 : 0

statement {
actions = ["sts:AssumeRole"]
Expand Down Expand Up @@ -28,14 +28,14 @@ data "aws_iam_policy_document" "log" {
}

resource "aws_iam_role_policy" "log" {
count = "${var.enabled == "true" ? 1 : 0}"
count = var.enabled == "true" ? 1 : 0
name = module.vpc_label.id
role = aws_iam_role.log[0].id
policy = data.aws_iam_policy_document.log.json
}

resource "aws_iam_role" "log" {
count = "${var.enabled == "true" ? 1 : 0}"
count = var.enabled == "true" ? 1 : 0
name = module.vpc_label.id
assume_role_policy = data.aws_iam_policy_document.log_assume[0].json
}
Expand Down Expand Up @@ -66,13 +66,13 @@ data "aws_iam_policy_document" "kinesis" {
}

resource "aws_iam_role" "kinesis" {
count = "${var.enabled == "true" ? 1 : 0}"
count = var.enabled == "true" ? 1 : 0
name = module.kinesis_label.id
assume_role_policy = data.aws_iam_policy_document.kinesis_assume.json
}

resource "aws_iam_role_policy" "kinesis" {
count = "${var.enabled == "true" ? 1 : 0}"
count = var.enabled == "true" ? 1 : 0
name = module.vpc_label.id
role = aws_iam_role.kinesis[0].id
policy = data.aws_iam_policy_document.kinesis.json
Expand Down

0 comments on commit 7edc404

Please sign in to comment.