Difference between revisions of "Error: Missing required argument"
Jump to navigation
Jump to search
↑ https://stackoverflow.com/a/57631204
(Created page with " │ Error: Missing required argument │ │ with module.compute.aws_instance.this[0], │ on ../path/to/your/terraformodule.tf line 1, in resource "aws_instance" "t...") |
|||
(11 intermediate revisions by 2 users not shown) | |||
Line 6: | Line 6: | ||
│ 1: resource "aws_instance" "this" { | │ 1: resource "aws_instance" "this" { | ||
│ | │ | ||
− | │ "launch_template": one of `[[ami]],[[instance_type]],launch_template` must be specified | + | │ "[[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," { | ||
+ | │ | ||
+ | │ "[[Amazon AMI|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: <code>export [[AWS_DEFAULT_REGION]]=us-east-1</code> <ref>https://stackoverflow.com/a/57631204</ref> | ||
+ | |||
+ | |||
+ | == Related == | ||
+ | [[from_port]] | ||
+ | [[to_port]] | ||
+ | [[outputs.tf]] | ||
== See also == | == See also == |
Latest revision as of 11:30, 30 April 2023
│ 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]
Related[edit]
from_port to_port outputs.tf
See also[edit]
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: