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{ "ingress": &schema.Schema{
Type: schema.TypeSet, Type: schema.TypeSet,
Required: true, Optional: true,
Elem: &schema.Resource{ Elem: &schema.Resource{
Schema: map[string]*schema.Schema{ Schema: map[string]*schema.Schema{
"from_port": &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 * `name` - (Required) The name of the security group
* `description` - (Required) The security group description. * `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. ingress rule. Each ingress block supports fields documented below.
* `vpc_id` - (Optional) The VPC ID. * `vpc_id` - (Optional) The VPC ID.
* `owner_id` - (Optional) The AWS Owner ID. * `owner_id` - (Optional) The AWS Owner ID.