Skip to content
This repository has been archived by the owner on Dec 9, 2020. It is now read-only.

Latest commit

 

History

History
68 lines (46 loc) · 1.97 KB

cm_network_gateway.markdown

File metadata and controls

68 lines (46 loc) · 1.97 KB
layout page_title sidebar_current description
rightscale
Rightscale: network_gateway
docs-rightscale-resource-network_gateway
Create and maintain a RightScale network gateway.

rightscale_network_gateway

Use this resource to create, update or destroy RightScale network gateways in cloud management.

Example Usage #1 - Create an internet gateway

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}"
}

Example Usage #2 - Create an internet gateway and attach it to a network

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}"
}

Argument Reference

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.

Attributes Reference

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.