Difference between revisions of "Terraform: subnet id"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
Line 23: Line 23:
 
* [[Terraform: VPCIdNotSpecified]]
 
* [[Terraform: VPCIdNotSpecified]]
 
* [[InvalidSubnetID]]
 
* [[InvalidSubnetID]]
 +
tf show | grep subnet_id
  
 
== See also ==
 
== See also ==

Revision as of 05:44, 22 March 2023

subnet_id

Examples

  • subnet_id = "subnet-0a72be05b421abcde"

Errors

│ Error: Error in function call
│
│   on ../path_to_your/plan.tf line 7, in resource "aws_instance" "this":
│    7:   subnet_id = element(var.subnet_ids,count.index)
│     ├────────────────
│     │ count.index is 0
│     │ var.subnet_ids is empty list of string
│
│ Call to function "element" failed: cannot use element function with an empty list.

Related

tf show | grep subnet_id

See also

Advertising: