-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from mesoform/develop
Develop - Update service_perimeter_regular module
- Loading branch information
Showing
10 changed files
with
397 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
gcp/access_context_manager/service_perimeter_regular/outputs.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
output "var_ingress_policies_file_path" { | ||
value = var.ingress_file_path | ||
} | ||
|
||
output "var_egress_policies_file_path" { | ||
value = var.egress_file_path | ||
} | ||
output "locals_ingress_policies_file_path" { | ||
value = local.ingress_file | ||
} | ||
|
||
output "locals_egress_policies_file_path" { | ||
value = local.egress_file | ||
} | ||
|
||
output "locals_ingress_policies" { | ||
value = local.ingress_policies | ||
} | ||
|
||
output "locals_egress_policies" { | ||
value = local.egress_policies | ||
} | ||
|
||
output locals_vpc_accessible_services { | ||
value = local.vpc_accessible_services | ||
} | ||
|
||
output locals_restricted_services { | ||
value = local.restricted_services | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tests/gcp/unit_tests/service_perimeter_regular/test_files/egress_policies.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
egressPolicies: | ||
- egressFrom: | ||
identityType: ANY_IDENTITY | ||
egressTo: | ||
operations: | ||
- serviceName: compute.googleapis.com | ||
methodSelectors: | ||
- method: '*' | ||
resources: | ||
- projects/000000000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
tests/gcp/unit_tests/service_perimeter_regular/test_files/python/test_egress_policy_empty.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from sys import path, stderr | ||
|
||
try: | ||
path.insert(1, '../../../test_fixtures/python_validator') | ||
from python_validator import python_validator | ||
except Exception as e: | ||
print(e, stderr) | ||
|
||
""" | ||
Tests whether an unfound file defaults to null | ||
""" | ||
|
||
expected_data = {} | ||
|
||
|
||
|
||
if __name__ == '__main__': | ||
python_validator(expected_data) |
18 changes: 18 additions & 0 deletions
18
...s/gcp/unit_tests/service_perimeter_regular/test_files/python/test_ingress_policy_empty.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from sys import path, stderr | ||
|
||
try: | ||
path.insert(1, '../../../test_fixtures/python_validator') | ||
from python_validator import python_validator | ||
except Exception as e: | ||
print(e, stderr) | ||
|
||
""" | ||
Tests whether an unfound file defaults to null | ||
""" | ||
|
||
expected_data = {} | ||
|
||
|
||
|
||
if __name__ == '__main__': | ||
python_validator(expected_data) |
Oops, something went wrong.