We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a Terraform config that looks something like this:
resource "aws_security_group" "allow_ssh" { name = "allow_ssh" description = "Allow all inbound traffic on port 22" ingress { from_port = 22 to_port = 22 protocol = "tcp" cidr_blocks = ["0.0.0.0/0"] } } resource "aws_instance" "worker" { security_groups = ["allow_ssh"] depends_on = ["aws_security_group.allow_ssh"] count = 2 # …snip… }
The dependency graph for this, however, looks like this:
I'd expect both aws_instance.worker.0 and aws_instance.worker.1 to depend on aws_security_group.allow_ssh.
The text was updated successfully, but these errors were encountered:
Yeah this looks funny. I'll take a look.
Sorry, something went wrong.
terraform: depends_on with count creates proper graph [GH-244]
28a2e7b
Fixed. Good catch.
No branches or pull requests
I have a Terraform config that looks something like this:
The dependency graph for this, however, looks like this:
I'd expect both aws_instance.worker.0 and aws_instance.worker.1 to depend on aws_security_group.allow_ssh.
The text was updated successfully, but these errors were encountered: