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