[Yandex Cloud documentation](../../index.md) > [Terraform in Yandex Cloud](../index.md) > Terraform reference > Resources > Virtual Private Cloud > Resources > vpc_gateway

# yandex_vpc_gateway (Resource)

Manages a gateway within the Yandex Cloud. For more information, see [the official documentation](../../vpc/concepts/gateways.md).

* How-to Guides
  * [Cloud Networking](../../vpc/index.md).

## Example usage

```terraform
//
// Create a new VPC NAT Gateway.
//
resource "yandex_vpc_gateway" "my_gw" {
  name = "foobar"
  shared_egress_gateway {}
}
```

## Arguments & Attributes Reference

- `created_at` (*Read-Only*) (String). The creation timestamp of the resource.
- `description` (String). The resource description.
- `folder_id` (String). The folder identifier that resource belongs to. If it is not provided, the default provider `folder-id` is used.
- `id` (String). 
- `labels` (Map Of String). A set of key/value label pairs which assigned to resource.
- `name` (String). The resource name.
- `shared_egress_gateway` [Block]. Shared egress gateway configuration. Currently empty.
- `timeouts` [Block]. 
  - `create` (String). 
  - `delete` (String). 
  - `update` (String).

## Import

The resource can be imported by using their `resource ID`. For getting it you can use Yandex Cloud [Web Console](https://console.yandex.cloud) or Yandex Cloud [CLI](../../cli/quickstart.md).

```shell
# terraform import yandex_vpc_gateway.<resource Name> <resource Id>
terraform import yandex_vpc_gateway.my_gw ...
```