Skip to content

Instantly share code, notes, and snippets.

@doberloh
Created November 21, 2014 01:14
Show Gist options
  • Save doberloh/4aaa7a3a2bc336361669 to your computer and use it in GitHub Desktop.
Save doberloh/4aaa7a3a2bc336361669 to your computer and use it in GitHub Desktop.
Terraform CIDR problem with aws_db_security_group
My code has a mixture of security groups from two seperate AWS accounts. Plus an ingress with my current IP. I have tried running with and without declaring the cidr ingress. When I run terraform I get this error:
Error applying plan:
1 error(s) occurred:
* 1 error(s) occurred:
* Error authorizing security group ingress: InvalidParameterCombination: Please see the documentation for authorizing DBSecurityGroup ingress. For non-VPC, use EC2SecurityGroupOwner and either EC2SecurityGroupId or EC2SecurityGroupName. To authorize only the source address of this request (and no other address), pass xx.xxx.xxx.xxx/32 as the CIDRIP parameter.
Terraform does not automatically rollback in the face of errors.
Instead, your Terraform state file has been partially updated with
any resources that successfully completed. Please address the error
above and apply again to incrementally change your infrastructure.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment