2016-07-13 22:03:41 +02:00
|
|
|
---
|
|
|
|
layout: "scaleway"
|
|
|
|
page_title: "Scaleway: security_group"
|
|
|
|
sidebar_current: "docs-scaleway-resource-security_group"
|
|
|
|
description: |-
|
|
|
|
Manages Scaleway security groups.
|
|
|
|
---
|
|
|
|
|
2016-10-15 14:22:35 +02:00
|
|
|
# scaleway\_security\_group
|
2016-07-13 22:03:41 +02:00
|
|
|
|
|
|
|
Provides security groups. This allows security groups to be created, updated and deleted.
|
|
|
|
For additional details please refer to [API documentation](https://developer.scaleway.com/#security-groups).
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
|
|
```
|
|
|
|
resource "scaleway_security_group" "test" {
|
2017-02-18 23:48:50 +01:00
|
|
|
name = "test"
|
2016-07-13 22:03:41 +02:00
|
|
|
description = "test"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
|
|
|
* `name` - (Required) name of security group
|
|
|
|
* `description` - (Required) description of security group
|
|
|
|
|
|
|
|
Field `name`, `description` are editable.
|
|
|
|
|
|
|
|
## Attributes Reference
|
|
|
|
|
|
|
|
The following attributes are exported:
|
|
|
|
|
|
|
|
* `id` - id of the new resource
|
2016-10-15 23:49:14 +02:00
|
|
|
|
|
|
|
## Import
|
|
|
|
|
|
|
|
Instances can be imported using the `id`, e.g.
|
|
|
|
|
|
|
|
```
|
|
|
|
$ terraform import scaleway_security_group.test 5faef9cd-ea9b-4a63-9171-9e26bec03dbc
|
|
|
|
```
|