Difference between revisions of "Error: Missing required argument"

From wikieduonline
Jump to navigation Jump to search
Line 17: Line 17:
 
  │ "[[Amazon AMI|ami]]": one of `ami,launch_template` must be specified
 
  │ "[[Amazon AMI|ami]]": one of `ami,launch_template` must be specified
 
  ╵
 
  ╵
 
 
 
 
  ╷
 
  ╷
 
  │ Error: Missing required argument
 
  │ Error: Missing required argument

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

from_port
to_port
outputs.tf

See also

  • https://stackoverflow.com/a/57631204
  • Advertising: