commitdev/zero

Unsupported block type

Opened this issue · 0 comments

I'm getting this error when zero apply

Terraform has been successfully initialized!

You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.

If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
╷
│ Error: Unsupported block type
│
│   on .terraform/modules/stage.create_db_user.docker_image/modules/docker-build/main.tf line 25, in resource "docker_registry_image" "this":
│   25:   build {
│
│ Blocks of type "build" are not expected here.
╵
make[1]: Leaving directory '/root/sumatra/infrastructure'
make[1]: *** [Makefile:43: apply-env] Error 1
make: *** [Makefile:8: make-apply] Error 2
2023/01/26 03:03:46 Module Apply failed: Module (zero-aws-eks-stack) ╷
│ Error: Unsupported block type
│
│   on .terraform/modules/stage.create_db_user.docker_image/modules/docker-build/main.tf line 25, in resource "docker_registry_image" "this":
│   25:   build {
│
│ Blocks of type "build" are not expected here.
╵
make[1]: *** [Makefile:43: apply-env] Error 1
make: *** [Makefile:8: make-apply] Error 2