Difference between revisions of "Error: Missing required argument"
Jump to navigation
Jump to search
↑ https://stackoverflow.com/a/57631204
Line 44: | Line 44: | ||
[[The argument "region" is required, but was not set.]] | [[The argument "region" is required, but was not set.]] | ||
+ | |||
+ | Known bug, solution: <code>export [[AWS_DEFAULT_REGION]]=us-east-1</code> <ref>https://stackoverflow.com/a/57631204</ref> | ||
Revision as of 05:53, 13 September 2022
│ Error: Missing required argument │ │ with module.compute.aws_instance.this[0], │ on ../path/to/your/terraformodule.tf line 1, in resource "aws_instance" "this": │ 1: resource "aws_instance" "this" { │ │ "launch_template": one of `ami,instance_type,launch_template` must be specified
╷ │ Error: Missing required argument │ │ with aws_instance.your_name, │ on main.tf line 6, in resource "aws_instance" "your_name,": │ 6: resource "aws_instance" "your_name," { │ │ "ami": one of `ami,launch_template` must be specified ╵
╷ │ Error: Missing required argument │ │ with module.db_aurora.module.db_option_group.aws_db_option_group.this[0], │ on ../../modules/db_option_group/main.tf line 15, in resource "aws_db_option_group" "this": │ 15: major_engine_version = var.major_engine_version │ │ The argument "major_engine_version" is required, but no definition was found. ╵
╷ │ Error: Missing required argument │ │ with module.db_aurora.module.db_parameter_group.aws_db_parameter_group.this[0], │ on ../../modules/db_parameter_group/main.tf line 14, in resource "aws_db_parameter_group" "this": │ 14: family = var.family │ │ The argument "family" is required, but no definition was found. ╵
Error: Missing required argument The argument "region" is required, but was not set.
Known bug, solution: export AWS_DEFAULT_REGION=us-east-1
[1]
See also
terraform plan
: [-refresh-only | -lock=false
|-target
|-var-file
|will be created
|--help
], Terraform plan errors, Terraform plan examples, Terraform plan execution errors, (known after apply)
Advertising: