Force resource ordering when dependency is not inferred from arguments.
Section: Meta-arguments
Explicit dependency
hcl
hcl
resource "aws_instance" "web" {
# ...
depends_on = [aws_internet_gateway.this]
}Explanation
Force resource ordering when dependency is not inferred from arguments.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Meta-arguments