Skip to content

Commit

Permalink
Force recreation (#98)
Browse files Browse the repository at this point in the history
- Force recreation of AWS Security Groups in case of VPC/Region/Account change
  • Loading branch information
DanielRis authored Jan 27, 2021
1 parent 5506fa5 commit 92dd1e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dome9/resource_dome9_cloud_security_group_aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ func resourceCloudSecurityGroupAWS() *schema.Resource {
"dome9_cloud_account_id": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
},
"description": {
Type: schema.TypeString,
Expand All @@ -38,6 +39,7 @@ func resourceCloudSecurityGroupAWS() *schema.Resource {
"aws_region_id": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Default: "us_east_1",
ValidateFunc: validation.StringInSlice(providerconst.AWSRegions, true),
},
Expand All @@ -55,11 +57,13 @@ func resourceCloudSecurityGroupAWS() *schema.Resource {
Type: schema.TypeString,
Computed: true,
Optional: true,
ForceNew: true,
},
"vpc_name": {
Type: schema.TypeString,
Computed: true,
Optional: true,
ForceNew: true,
},
"external_id": {
Type: schema.TypeString,
Expand Down

0 comments on commit 92dd1e6

Please sign in to comment.