Files
opentf/website/source/docs/providers/cloudstack/r/security_group.html.markdown
Sander van Harmelen 1619a8138f provider/cloudstack: enhance security groups and rules (#9645)
* govendor: update go-cloudstack dependency

* Separate security groups and rules

This commit separates the creation and management of security groups and security group rules.

It extends the `icmp` options so you can supply `icmp_type` and `icmp_code` to enbale more specific configs.

And it adds lifecycle management of security group rules, so that security groups do not have to be recreated when rules are added or removed.

This is particulary helpful since the `cloudstack_instance` cannot update a security group without having to recreate the instance.

In CloudStack >= 4.9.0 it is possible to update security groups of existing instances, but as that is just added to the latest version it seems a bit too soon to start using this (causing backwards incompatibility issues for people or service providers running older versions).

* Add and update documentation

* Add acceptance tests
2016-10-27 11:10:15 +02:00

938 B

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
cloudstack CloudStack: cloudstack_security_group docs-cloudstack-resource-security-group Creates a security group.

cloudstack_security_group

Creates a security group.

Example Usage

resource "cloudstack_security_group" "default" {
  name = "allow_web"
  description = "Allow access to HTTP and HTTPS"
}

Argument Reference

The following arguments are supported:

  • name - (Required) The name of the security group. Changing this forces a new resource to be created.

  • description - (Optional) The description of the security group. Changing this forces a new resource to be created.

  • project - (Optional) The name or ID of the project to create this security group in. Changing this forces a new resource to be created.

Attributes Reference

The following attributes are exported:

  • id - The ID of the security group.