variable "foo" { default = "bar" description = "bar" } provider "aws" { foo =|| "${opeource "aws_security_group" "firewall" {} resource "aws_instance" "web" { ami = "${ resource "aws_load_balancer" "weblb" { members = "${aws_instance.web.id_list}" }