terraform-aws-elasticsearch icon indicating copy to clipboard operation
terraform-aws-elasticsearch copied to clipboard

Getting clodstorage block error

Open ListentoNews opened this issue 3 years ago • 2 comments

error output:


Error: Unsupported block type

  on .terraform/modules/search/main.tf line 86, in resource "aws_elasticsearch_domain" "es_domain":
  86:       dynamic "cold_storage_options" {

Blocks of type "cold_storage_options" are not expected here.

ListentoNews avatar Oct 04 '22 03:10 ListentoNews

This is because you are using an old AWS provider. Upgrade to latest 4 and it will work.

versions.tf needs to be updated here to the correct minimal AWS provider version.

simonweil avatar Oct 27 '22 15:10 simonweil

@simonweil versions.tf has almost no constraints:

terraform {
  required_version = ">= 0.12.9"

  required_providers {
    aws    = ">= 3.35.0"
    random = ">=3.1.2"
  }
}

@ListentoNews what Terraform and AWS provider versions are you using?

lgallard avatar Oct 27 '22 19:10 lgallard