Loading...
Loading...
### Terraform Version ```shell terraform version Terraform v1.15.0 on linux_arm64 + provider registry.terraform.io/hashicorp/aws v4.31.0 ``` ### Terraform Configuration Files ```terraform terraform { backend "s3" { key = "terraform/tf-my-project" region = "ap-southeast-2" } } provider "aws" { region = "ap-southeast-2" } ``` ### Debug Output ``` │ Error: Missing required argument │ │ on main.tf line 2, in terraform: │ 2: backend "s3" { │ │ The argument "bucket" is required, but no definition was found. ``` ### Expected Behavior Should pass validation, or allow me to supply backend flags like: ``` terraform validate -backend-config="bucket=my-bucket-name-here" -backend-config="dynamodb_table=my-table-here" ``` ### Actual Behavior The CLI tool return `The argument "bucket" is required, but no definition was found.`. ### Steps to Reproduce 1. `terraform init -backend=false` 2. `terraform validate` ### Additional Context Terraform runs on a CI server and is verifying config is valid. When we perform a plan we normally supply `-backend-config` flags and therefore don't have the bucket name in the terraform code. This bucket name varies between our pre-production environment and production so it can't be hard coded. ### References _No response_ ### Generative AI / LLM assisted development? _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.