forked from runtastic/terraform-provider-opennebula
-
Notifications
You must be signed in to change notification settings - Fork 3
Security Group Data Source
Corey Melanson edited this page Jul 19, 2018
·
1 revision
The opennebula_secgroup data source can be used to get the ID of an Security Group which is not managed by Terraform. It accepts only the following parameter:
Parameter | Optional | Description |
---|---|---|
name | Required | Name of the Security Group to find |
data "opennebula_secgroup" "ExistingSecGroup" {
name = "My_Service_SecGroup"
}
#Usage in a VNET resource
resource "opennebula_vnet" "demo" {
security_groups = ["${data.opennebula_secgroup.ExistingSecGroup.id}"]
}