Example #1
0
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")
}
Example #2
0
func (e *RouteTable) TerraformLink() *terraform.Literal {
	return terraform.LiteralProperty("aws_route_table", *e.Name, "id")
}
Example #3
0
func (e *LaunchConfiguration) TerraformLink() *terraform.Literal {
	return terraform.LiteralProperty("aws_launch_configuration", *e.Name, "id")
}
Example #4
0
func (i *Subnet) TerraformName() *terraform.Literal {
	return terraform.LiteralProperty("google_compute_subnetwork", *i.Name, "name")
}
Example #5
0
func (e *SecurityGroup) TerraformLink() *terraform.Literal {
	return terraform.LiteralProperty("aws_security_group", *e.Name, "id")
}
Example #6
0
func (e *AutoscalingGroup) TerraformLink() *terraform.Literal {
	return terraform.LiteralProperty("aws_autoscaling_group", *e.Name, "id")
}
Example #7
0
func (e *DHCPOptions) TerraformLink() *terraform.Literal {
	return terraform.LiteralProperty("aws_vpc_dhcp_options", *e.Name, "id")
}
Example #8
0
func (e *Subnet) TerraformLink() *terraform.Literal {
	return terraform.LiteralProperty("aws_subnet", *e.Name, "id")
}
Example #9
0
func (e *IAMRole) TerraformLink() *terraform.Literal {
	return terraform.LiteralProperty("aws_iam_role", *e.Name, "name")
}
Example #10
0
func (e *SSHKey) TerraformLink() *terraform.Literal {
	return terraform.LiteralProperty("aws_key_pair", *e.Name, "id")
}
Example #11
0
func (e *IAMInstanceProfile) TerraformLink() *terraform.Literal {
	return terraform.LiteralProperty("aws_iam_instance_profile", *e.Name, "id")
}