I am using terraform v0.12.6 and I run into many errors like:
terraform v0.12.6
Error: Error creating Security Group: InvalidGroup.Duplicate: The security group \'sec
Change property "name" to "name_prefix" solved to me, and doesn't duplicate any roles and/or policies.