Open ghost opened 4 years ago
Hey @ppeterson-evotek 👋 Thank you for taking the time to file this issue. Given that there's been a number of AWS provider releases since you initially filed it, can you confirm whether you're still experiencing this behavior?
provider "aws" {
region = "us-east-1" # Replace with your desired region
}
# List of Kinesis Firehose stream names
variable "firehose_streams" {
type = "list"
default = [
"firehose-nginx-access-admin",
"firehose-nginx-access-api",
"firehose-nginx-access-webhooks",
"firehose-nginx-access-consumer-out",
"firehose-nginx-error-consumer-out"
# Add more streams as needed
]
}
# Create Kinesis Firehose delivery streams
resource "aws_kinesis_firehose_delivery_stream" "kinesis_stream" {
for_each = toset(var.firehose_streams)
name = each.value
destination = "elasticsearch" # Specify your destination
elasticsearch_configuration {
# Add your Elasticsearch configuration here
}
}
# Null resource to introduce delay
resource "null_resource" "throttle_delay" {
count = length(var.firehose_streams)
provisioner "local-exec" {
command = "sleep 10" # Adjust the delay as needed
}
depends_on = [
aws_kinesis_firehose_delivery_stream.kinesis_stream
]
}
output "firehose_stream_names" {
value = aws_kinesis_firehose_delivery_stream.kinesis_stream.*.name
}
This issue was originally opened by @ppeterson-evotek as hashicorp/terraform#23598. It was migrated here as a result of the provider split. The original body of the issue is below.