aws: Making security group ingress rules optional

This commit is contained in:
Armon Dadgar 2014-12-07 23:52:04 -08:00
parent fae29f4685
commit 38697d6b4c
2 changed files with 2 additions and 2 deletions

View File

@ -41,7 +41,7 @@ func resourceAwsSecurityGroup() *schema.Resource {
"ingress": &schema.Schema{
Type: schema.TypeSet,
Required: true,
Optional: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"from_port": &schema.Schema{

View File

@ -54,7 +54,7 @@ The following arguments are supported:
* `name` - (Required) The name of the security group
* `description` - (Required) The security group description.
* `ingress` - (Required) Can be specified multiple times for each
* `ingress` - (Optional) Can be specified multiple times for each
ingress rule. Each ingress block supports fields documented below.
* `vpc_id` - (Optional) The VPC ID.
* `owner_id` - (Optional) The AWS Owner ID.