Difference between revisions of "Error: Reference to undeclared resource"
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
│ 9: [[ami]] = data.aws_ami.windows.id | │ 9: [[ami]] = data.aws_ami.windows.id | ||
│ | │ | ||
− | │ A data resource "aws_ami" "windows" has not been declared in the root module. | + | │ A data resource "aws_ami" "windows" [[has not been declared in the root module]]. |
Revision as of 11:45, 2 June 2022
terraform plan ╷ │ Error: Reference to undeclared resource │ │ on main.tf line 9, in resource "aws_instance" "example": │ 9: ami = data.aws_ami.windows.id │ │ A data resource "aws_ami" "windows" has not been declared in the root module.
Related
See also
Advertising: