spotinst / terraform-spotinst-ocean-aws-k8s

A Terraform module to create an Ocean Cluster.
Apache License 2.0
4 stars 5 forks source link

Blocks of type "attach_load_balancer" are not expected here. #44

Open YR-ZR0 opened 4 months ago

YR-ZR0 commented 4 months ago

What happened:

Terraform fails to validate the spot module due to the following error

│ Error: Unsupported block type
│ 
│   on .terraform/modules/ocean-aws-k8s/ocean.tf line 244, in resource "spotinst_ocean_aws" "ocean":
│  244:   dynamic "attach_load_balancer" {
│ 
│ Blocks of type "attach_load_balancer" are not expected here.
╵
╷
│ Error: Unsupported block type
│ 
│   on .terraform/modules/ocean-aws-k8s/ocean.tf line 254, in resource "spotinst_ocean_aws" "ocean":
│  254:   dynamic "detach_load_balancer" {
│ 
│ Blocks of type "detach_load_balancer" are not expected here.

What you expected to happen:

Terraform to successfully validate.

How to reproduce it (as minimally and precisely as possible): run terraform validate a similar setup

    module "ocean-aws-k8s" {
      source  = "spotinst/ocean-aws-k8s/spotinst"
    }

Anything else we need to know:

Environment:

Vermyndax commented 1 month ago

Also have this with: