Skip to content

Commit

Permalink
Merge pull request #174 from dome9/CNAPP-5525-IsraelRegion
Browse files Browse the repository at this point in the history
CNAPP-5525-IsraelRegion
  • Loading branch information
EinatGalilee authored Jan 10, 2024
2 parents d591966 + d028921 commit f2b809f
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 5 deletions.
6 changes: 4 additions & 2 deletions dome9/common/providerconst/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ const (
AP_SOUTHEAST_4 = "32"
EU_CENTRAL_2 = "33"
EU_SOUTH_2 = "34"
IL_CENTRAL_1 = "35"
)

// Azure consts
Expand All @@ -124,7 +125,7 @@ var AzureSecurityGroupProtocol = []string{"UDP", "TCP", "ANY"}
var AzureSecurityGroupSourceScopeTypes = []string{"CIDR", "IPList", "Tag"}

// The 21 regions Dome9 manages in AWS cloud account
var AWSRegions = []string{"us_east_1", "us_west_1", "eu_west_1", "ap_southeast_1", "ap_northeast_1", "us_west_2", "sa_east_1", "ap_southeast_2", "eu_central_1", "ap_northeast_2", "ap_south_1", "us_east_2", "ca_central_1", "eu_west_2", "eu_west_3", "eu_north_1", "ap_east_1", "me_south_1", "af_south_1", "eu_south_1", "ap_northeast_3", "me_central_1", "ap_south_2", "ap_southeast_3", "ap_southeast_4", "eu_central_2", "eu_south_2"}
var AWSRegions = []string{"us_east_1", "us_west_1", "eu_west_1", "ap_southeast_1", "ap_northeast_1", "us_west_2", "sa_east_1", "ap_southeast_2", "eu_central_1", "ap_northeast_2", "ap_south_1", "us_east_2", "ca_central_1", "eu_west_2", "eu_west_3", "eu_north_1", "ap_east_1", "me_south_1", "af_south_1", "eu_south_1", "ap_northeast_3", "me_central_1", "ap_south_2", "ap_southeast_3", "ap_southeast_4", "eu_central_2", "eu_south_2", "il_central_1"}

// The 2 regions Dome9 manages in AWSGOV cloud account
var AWSGOVRegions = []string{"us_gov_west_1", "us_gov_east_1"}
Expand Down Expand Up @@ -189,7 +190,8 @@ var AWSRegionsEnum = map[string]string{
"ap_southeast_3": AP_SOUTHEAST_3,
"ap_southeast_4": AP_SOUTHEAST_4,
"eu_central_2": EU_CENTRAL_2,
"eu_south_2": EU_SOUTH_2,
"eu_south_2": EU_SOUTH_2,
"il_central_1": IL_CENTRAL_1,
}

var PermissionTrafficType = map[string]string{
Expand Down
4 changes: 4 additions & 0 deletions dome9/resource_dome9_cloudaccount_aws_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ net_sec {
new_group_behavior = "ReadOnly"
region = "eu_south_2"
}
regions {
new_group_behavior = "ReadOnly"
region = "il_central_1"
}
}
`,
groupBehavior,
Expand Down
2 changes: 1 addition & 1 deletion website/docs/d/role.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ In addition to all arguments above, the following attributes are exported:
### SRL
* `type` - (Optional) Accepted values: AWS, Azure, GCP, OrganizationalUnit.
* `main_id` - (Optional) Cloud Account or Organizational Unit ID.
* `region` - (Optional) Accepted values: "us_east_1", "us_west_1", "eu_west_1", "ap_southeast_1", "ap_northeast_1", "us_west_2", "sa_east_1", "ap_southeast_2", "eu_central_1", "ap_northeast_2", "ap_south_1", "us_east_2", "ca_central_1", "eu_west_2", "eu_west_3", "eu_north_1", "ap_east_1", "me_south_1", "af_south_1", "eu_south_1", "ap_northeast_3", "me_central_1", "ap_south_2", "ap_southeast_3", "ap_southeast_4", "eu_central_2", "eu_south_2".
* `region` - (Optional) Accepted values: "us_east_1", "us_west_1", "eu_west_1", "ap_southeast_1", "ap_northeast_1", "us_west_2", "sa_east_1", "ap_southeast_2", "eu_central_1", "ap_northeast_2", "ap_south_1", "us_east_2", "ca_central_1", "eu_west_2", "eu_west_3", "eu_north_1", "ap_east_1", "me_south_1", "af_south_1", "eu_south_1", "ap_northeast_3", "me_central_1", "ap_south_2", "ap_southeast_3", "ap_southeast_4", "eu_central_2", "eu_south_2", "il_central_1".
* `security_group_id` - (Optional) AWS Security Group ID.
* `traffic` - (Optional) Accepted values: "All Traffic", "All Services".
2 changes: 1 addition & 1 deletion website/docs/d/user.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@ In addition to all arguments above, the following attributes are exported:
### SRL
* `type` - (Optional) Accepted values: AWS, Azure, GCP, OrganizationalUnit.
* `main_id` - (Optional) Cloud Account or Organizational Unit ID.
* `region` - (Optional) Accepted values: "us_east_1", "us_west_1", "eu_west_1", "ap_southeast_1", "ap_northeast_1", "us_west_2", "sa_east_1", "ap_southeast_2", "eu_central_1", "ap_northeast_2", "ap_south_1", "us_east_2", "ca_central_1", "eu_west_2", "eu_west_3", "eu_north_1", "ap_east_1", "me_south_1", "af_south_1", "eu_south_1", "ap_northeast_3", "me_central_1", "ap_south_2", "ap_southeast_3", "ap_southeast_4", "eu_central_2", "eu_south_2".
* `region` - (Optional) Accepted values: "us_east_1", "us_west_1", "eu_west_1", "ap_southeast_1", "ap_northeast_1", "us_west_2", "sa_east_1", "ap_southeast_2", "eu_central_1", "ap_northeast_2", "ap_south_1", "us_east_2", "ca_central_1", "eu_west_2", "eu_west_3", "eu_north_1", "ap_east_1", "me_south_1", "af_south_1", "eu_south_1", "ap_northeast_3", "me_central_1", "ap_south_2", "ap_southeast_3", "ap_southeast_4", "eu_central_2", "eu_south_2", "il_central_1".
* `security_group_id` - (Optional) AWS Security Group ID.
* `traffic` - (Optional) Accepted values: "All Traffic", "All Services".
4 changes: 4 additions & 0 deletions website/docs/r/cloudaccount_aws.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ resource "dome9_cloudaccount_aws" "test" {
new_group_behavior = "ReadOnly"
region = "eu_south_2"
}
regions {
new_group_behavior = "ReadOnly"
region = "il_central_1"
}
}
}
```
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/role.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ The following arguments are supported:
### SRL
* `type` - (Optional) Accepted values: AWS, Azure, GCP, OrganizationalUnit.
* `main_id` - (Optional) Cloud Account or Organizational Unit ID.
* `region` - (Optional) Accepted values: "us_east_1", "us_west_1", "eu_west_1", "ap_southeast_1", "ap_northeast_1", "us_west_2", "sa_east_1", "ap_southeast_2", "eu_central_1", "ap_northeast_2", "ap_south_1", "us_east_2", "ca_central_1", "eu_west_2", "eu_west_3", "eu_north_1".
* `region` - (Optional) Accepted values: "us_east_1", "us_west_1", "eu_west_1", "ap_southeast_1", "ap_northeast_1", "us_west_2", "sa_east_1", "ap_southeast_2", "eu_central_1", "ap_northeast_2", "ap_south_1", "us_east_2", "ca_central_1", "eu_west_2", "eu_west_3", "eu_north_1", "il_central_1".
* `security_group_id` - (Optional) AWS Security Group ID.
* `traffic` - (Optional) Accepted values: "All Traffic", "All Services".

Expand Down

0 comments on commit f2b809f

Please sign in to comment.