providers/aws: update comment

This commit is contained in:
Mitchell Hashimoto 2014-08-21 12:00:32 -07:00
parent 200f7c4488
commit 5b620b76f5
1 changed files with 7 additions and 0 deletions

View File

@ -195,6 +195,13 @@ func resourceAwsSecurityGroupUpdate(d *schema.ResourceData, meta interface{}) er
// TODO: We need to handle partial state better in the in-between // TODO: We need to handle partial state better in the in-between
// in this update. // in this update.
// TODO: It'd be nicer to authorize before removing, but then we have
// to deal with complicated unrolling to get individual CIDR blocks
// to avoid authorizing already authorized sources. Removing before
// adding is easier here, and Terraform should be fast enough to
// not have service issues.
if len(remove) > 0 { if len(remove) > 0 {
// Revoke the old rules // Revoke the old rules
_, err = ec2conn.RevokeSecurityGroup(group, remove) _, err = ec2conn.RevokeSecurityGroup(group, remove)