2017-03-29 18:37:14 +02:00
---
2017-04-04 00:24:53 +02:00
layout: "opc"
2017-03-29 18:37:14 +02:00
page_title: "Oracle: opc_compute_security_association"
2017-04-04 00:24:53 +02:00
sidebar_current: "docs-opc-resource-security-association"
2017-03-29 18:37:14 +02:00
description: |-
Creates and manages a security association in an OPC identity domain.
---
2017-03-29 19:30:04 +02:00
# opc\_compute\_security\_association
2017-03-29 18:37:14 +02:00
The ``opc_compute_security_association`` resource creates and manages an association between an instance and a security
list in an OPC identity domain.
## Example Usage
```
resource "opc_compute_security_association" "test_instance_sec_list_1" {
2017-04-04 00:24:53 +02:00
name = "association1"
vcable = "${opc_compute_instance.test_instance.vcable}"
seclist = "${opc_compute_security_list.sec_list1.name}"
2017-03-29 18:37:14 +02:00
}
```
## Argument Reference
The following arguments are supported:
2017-04-04 00:24:53 +02:00
* `name` - (Optional) The Name for the Security Association. If not specified, one is created automatically. Changing this forces a new resource to be created.
2017-03-29 18:37:14 +02:00
* `vcable` - (Required) The `vcable` of the instance to associate to the security list.
2017-03-29 19:30:04 +02:00
* `seclist` - (Required) The name of the security list to associate the instance to.
2017-04-04 00:24:53 +02:00
## Import
Security Association's can be imported using the `resource name` , e.g.
```
terraform import opc_compute_security_association.association1 example
```