cloudposse / terraform-aws-security-group

Terraform module to provision an AWS Security Group
https://cloudposse.com/accelerate
Apache License 2.0
36 stars 35 forks source link

The argument "availability_zones" is required, but no definition was found. #18

Closed kenotsolutions closed 3 years ago

kenotsolutions commented 3 years ago

cd terraform-aws-multi-az-subnets/examples/complete

terraform plan -var-file fixtures.us-east-2.tfvars

╷
│ Error: Missing required argument
│
│   on main.tf line 137, in module "external_security_group":
│  137: module "external_security_group" {
│
│ The argument "availability_zones" is required, but no definition was found.
╵
╷
│ Error: Missing required argument
│
│   on main.tf line 137, in module "external_security_group":
│  137: module "external_security_group" {
│
│ The argument "cidr_block" is required, but no definition was found.
╵
╷
│ Error: Unsupported argument
│
│   on main.tf line 141, in module "external_security_group":
│  141:   id                     = aws_security_group.external.id
│
│ An argument named "id" is not expected here.
╵
╷
│ Error: Unsupported argument
│
│   on main.tf line 142, in module "external_security_group":
│  142:   rules                  = var.rules
│
│ An argument named "rules" is not expected here.
╵
╷
│ Error: Unsupported argument
│
│   on main.tf line 143, in module "external_security_group":
│  143:   security_group_enabled = false
│
│ An argument named "security_group_enabled" is not expected here.
Nuru commented 3 years ago

@kenotsolutions I do not understand this bug or why it is reported here. The error messages appear to be referring to a different module which does not match the text (main.tf only has 74 lines, whereas the errors here start on line 137).

I am closing this as invalid, but if you reproduce the bug and give more context, I will reopen it.