Skip to content

Commit

Permalink
tf 12 syntax for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DrFaust92 committed Aug 31, 2020
1 parent 3e9a4d0 commit 4ba2886
Showing 1 changed file with 21 additions and 14 deletions.
35 changes: 21 additions & 14 deletions aws/resource_aws_kinesis_firehose_delivery_stream_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2811,42 +2811,49 @@ var testAccKinesisFirehoseDeliveryStreamConfig_ElasticsearchEndpoint = testAccKi
resource "aws_kinesis_firehose_delivery_stream" "test" {
depends_on = ["aws_iam_role_policy.firehose-elasticsearch"]
name = "terraform-kinesis-firehose-es-%d"
name = "terraform-kinesis-firehose-es-%d"
destination = "elasticsearch"
s3_configuration {
role_arn = "${aws_iam_role.firehose.arn}"
bucket_arn = "${aws_s3_bucket.bucket.arn}"
role_arn = aws_iam_role.firehose.arn
bucket_arn = aws_s3_bucket.bucket.arn
}
elasticsearch_configuration {
cluster_endpoint = "https://${aws_elasticsearch_domain.test_cluster.endpoint}"
role_arn = "${aws_iam_role.firehose.arn}"
index_name = "test"
type_name = "test"
role_arn = aws_iam_role.firehose.arn
index_name = "test"
type_name = "test"
}
}`

var testAccKinesisFirehoseDeliveryStreamConfig_ElasticsearchEndpointUpdate = testAccKinesisFirehoseDeliveryStreamBaseElasticsearchConfig + `
resource "aws_kinesis_firehose_delivery_stream" "test" {
depends_on = ["aws_iam_role_policy.firehose-elasticsearch"]
name = "terraform-kinesis-firehose-es-%d"
name = "terraform-kinesis-firehose-es-%d"
destination = "elasticsearch"
s3_configuration {
role_arn = "${aws_iam_role.firehose.arn}"
bucket_arn = "${aws_s3_bucket.bucket.arn}"
role_arn = aws_iam_role.firehose.arn
bucket_arn = aws_s3_bucket.bucket.arn
}
elasticsearch_configuration {
cluster_endpoint = "https://${aws_elasticsearch_domain.test_cluster.endpoint}"
role_arn = "${aws_iam_role.firehose.arn}"
index_name = "test"
type_name = "test"
cluster_endpoint = "https://${aws_elasticsearch_domain.test_cluster.endpoint}"
role_arn = "${aws_iam_role.firehose.arn}"
index_name = "test"
type_name = "test"
buffering_interval = 500
processing_configuration {
enabled = false
processors {
type = "Lambda"
parameters {
parameter_name = "LambdaArn"
parameter_name = "LambdaArn"
parameter_value = "${aws_lambda_function.lambda_function_test.arn}:$LATEST"
}
}
Expand Down

0 comments on commit 4ba2886

Please sign in to comment.