layout | page_title | sidebar_current | description |
---|---|---|---|
rightscale |
Rightscale: network_gateway |
docs-rightscale-resource-network_gateway |
Create and maintain a RightScale network gateway. |
Use this resource to create, update or destroy RightScale network gateways in cloud management.
resource "rightscale_network_gateway" "us-oregon-devops-vpc-gateway" {
name = "us-oregon-devops-vpc-gateway"
description = "AWS US Oregon vpc gateway for devopery"
cloud_href = "/api/clouds/6"
type = "internet"
}
output "us-oregon-devops-vpc-gateway-aws-uid" {
value = "${rightscale_network_gateway.us-oregon-devops-vpc-gateway.resource_uid}"
}
resource "rightscale_network_gateway" "us-oregon-devops-vpc-gateway" {
name = "us-oregon-devops-vpc-gateway"
description = "AWS US Oregon vpc gateway for devopery"
cloud_href = "/api/clouds/6"
type = "internet"
network_href = "${rightscale_network.us-oregon-devops-vpc.href}"
}
The following arguments are supported:
-
cloud_href
- (Required) Cloud you want to create the network gateway in. -
type
- (Required) Type of network gateway. Options are "internet" or "vpc". -
name
- (Required) Network gateway name. -
description
- (Optional) Network gateway description. -
network_href
- (Optional) Href of network you want to attach the network gateway to.
The following attributes are exported:
-
href
- Href of the network gateway. -
created_at
- Date the network gateway was created at. -
updated_at
- Date the network gateway was updated at. -
state
- State of the network gateway. ("available" means attached to a network) -
resource_uid
- Cloud resource_uid. -
links
- Hrefs of related API resources.