func (e *InternetGateway) TerraformLink() *terraform.Literal { shared := fi.BoolValue(e.Shared) if shared { if e.ID == nil { glog.Fatalf("ID must be set, if InternetGateway is shared: %s", e) } glog.V(4).Infof("reusing existing InternetGateway with id %q", *e.ID) return terraform.LiteralFromStringValue(*e.ID) } return terraform.LiteralProperty("aws_internet_gateway", *e.Name, "id") }
func (e *RouteTable) TerraformLink() *terraform.Literal { return terraform.LiteralProperty("aws_route_table", *e.Name, "id") }
func (e *LaunchConfiguration) TerraformLink() *terraform.Literal { return terraform.LiteralProperty("aws_launch_configuration", *e.Name, "id") }
func (i *Subnet) TerraformName() *terraform.Literal { return terraform.LiteralProperty("google_compute_subnetwork", *i.Name, "name") }
func (e *SecurityGroup) TerraformLink() *terraform.Literal { return terraform.LiteralProperty("aws_security_group", *e.Name, "id") }
func (e *AutoscalingGroup) TerraformLink() *terraform.Literal { return terraform.LiteralProperty("aws_autoscaling_group", *e.Name, "id") }
func (e *DHCPOptions) TerraformLink() *terraform.Literal { return terraform.LiteralProperty("aws_vpc_dhcp_options", *e.Name, "id") }
func (e *Subnet) TerraformLink() *terraform.Literal { return terraform.LiteralProperty("aws_subnet", *e.Name, "id") }
func (e *IAMRole) TerraformLink() *terraform.Literal { return terraform.LiteralProperty("aws_iam_role", *e.Name, "name") }
func (e *SSHKey) TerraformLink() *terraform.Literal { return terraform.LiteralProperty("aws_key_pair", *e.Name, "id") }
func (e *IAMInstanceProfile) TerraformLink() *terraform.Literal { return terraform.LiteralProperty("aws_iam_instance_profile", *e.Name, "id") }