aws_kinesis_firehose_delivery_stream for cross-account ElasticSearch #14915
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
service/firehose
Issues and PRs that pertain to the firehose service.
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Actual Behavior
1 error occurred:
* aws_kinesis_firehose_delivery_stream.waf-mgmt-es: 1 error occurred:
* aws_kinesis_firehose_delivery_stream.waf-mgmt-es: error creating Kinesis Firehose Delivery Stream: InvalidArgumentException: Domain not found: my-es-domain-public
Steps to Reproduce
The issue is present when I try to create a cross-account firehose delivery stream to ElasticSearch.
Reason for that I believe, that via AWS CLI when I create this delivery stream I specify an additional parameter:
ClusterEndpoint - which is not supported in terraform and I do not specify domain.
resource "aws_kinesis_firehose_delivery_stream" "waf-mgmt-es" {
destination = "elasticsearch"
name = "aws-waf-logs-mgmt-es"
elasticsearch_configuration {
domain_arn = "arn:aws:es:eu-central-1:<--accountB-->:domain/my-es-domain-public"
index_name = "waf-${var.env_name}"
role_arn = "arn:aws:iam::<--accountA-->:role/firehose_role"
}
s3_configuration {
role_arn = "arn:aws:iam::991799896228:role/firehose_temp_role"
bucket_arn = "${aws_s3_bucket.temp.arn}"
buffer_size = 10
buffer_interval = 400
compression_format = "GZIP"
}
}
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: