Skip to content

Commit

Permalink
Test fixes: add missing ARNs, fix depends_on's
Browse files Browse the repository at this point in the history
  • Loading branch information
Gregor Heine committed Apr 23, 2018
1 parent b4f7635 commit 47b08e8
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions aws/resource_aws_cloudwatch_event_target_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -507,9 +507,15 @@ resource "aws_cloudwatch_event_target" "test" {
role_arn = "${aws_iam_role.event_iam_role.arn}"
batch_target {
job_definition = "${aws_batch_job_definition.batch_job_definition}"
job_definition = "${aws_batch_job_definition.batch_job_definition.arn}"
job_name = "%[1]s"
}
depends_on = [
"aws_batch_job_queue.batch_job_queue",
"aws_batch_job_definition.batch_job_definition",
"aws_iam_role.event_iam_role",
]
}
resource "aws_iam_role" "event_iam_role" {
Expand Down Expand Up @@ -613,14 +619,14 @@ resource "aws_batch_compute_environment" "batch_compute_environment" {
}
service_role = "${aws_iam_role.batch_iam_role.arn}"
type = "MANAGED"
depends_on = ["aws_iam_role_policy_attachment.aws_batch_service_role"]
depends_on = ["aws_iam_role_policy_attachment.batch_policy_attachment"]
}
resource "aws_batch_job_queue" "batch_job_queue" {
name = "%[1]s"
state = "ENABLED"
priority = 1
compute_environments = ["${aws_batch_compute_environment.batch_compute_environment}"]
compute_environments = ["${aws_batch_compute_environment.batch_compute_environment.arn}"]
}
resource "aws_batch_job_definition" "batch_job_definition" {
Expand Down

0 comments on commit 47b08e8

Please sign in to comment.