Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
YR-ZR0 opened this issue Jun 26, 2024 · 1 comment
Open

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

YR-ZR0 opened this issue Jun 26, 2024 · 1 comment

Comments

@YR-ZR0
Copy link

YR-ZR0 commented Jun 26, 2024

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:

  • Terraform version: 1.7.5
  • Module version: 1.4.0
  • OS: EndeavourOS (Arch)
  • Kernel: 6.9.6-zen1-1-zen
@Vermyndax
Copy link

Also have this with:

  • Terraform 1.9.5
  • Module version 1.5.0
  • OS: github runners (ubuntu20)
  • AWS provider 5.65.0
  • Spotinst provider 1.165.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants