Skip to content

Commit

Permalink
POL-1408 AWS Account Credentials Meta Not Spawning Children (#2800)
Browse files Browse the repository at this point in the history
* update

* fix

* update

* fix

* update

* fix

* update

* update

* update

* update
  • Loading branch information
XOmniverse authored Oct 31, 2024
1 parent f76910e commit 9b4f8a8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions automation/aws/aws_account_credentials/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v0.1.2

- Fixed issue in meta policy that would prevent child policies from being created

## v0.1.1

- Minor code improvements to conform with current standards. Functionality unchanged.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ category "Cost"
severity "low"
default_frequency "daily"
info(
version: "0.1.1",
version: "0.1.2",
provider: "AWS",
service: "IAM",
policy_set: "Authentication",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ category "Meta"
default_frequency "15 minutes"
info(
provider: "AWS",
version: "0.1.1", # This version of the Meta Parent Policy Template should match the version of the Child Policy Template as it appears in the Catalog for best reliability
version: "0.1.2", # This version of the Meta Parent Policy Template should match the version of the Child Policy Template as it appears in the Catalog for best reliability
publish: "false",
deprecated: "false"
)
Expand Down Expand Up @@ -141,7 +141,7 @@ script "js_child_policy_options", type: "javascript" do
// Filter Options that are not appropriate for Child Policy
var options = _.map(ds_self_policy_information.options, function(option){
// param_combined_incident_email, param_dimension_filter_includes, param_dimension_filter_excludes, param_policy_schedule are exclusion to Meta Parent Policy Parameters
if (!_.contains(["param_combined_incident_email", "param_combined_incident_email_passed", "param_combined_incident_email_failed", "param_combined_incident_email_unknown", "param_dimension_filter_includes", "param_dimension_filter_excludes", "param_policy_schedule", "param_template_source"], option.name)) {
if (!_.contains(["param_combined_incident_email", "param_combined_incident_email_passed", "param_combined_incident_email_failed", "param_combined_incident_email_unknown", "param_combined_incident_email_child", "param_dimension_filter_includes", "param_dimension_filter_excludes", "param_policy_schedule", "param_template_source"], option.name)) {
return { "name": option.name, "value": option.value };
}
});
Expand Down

0 comments on commit 9b4f8a8

Please sign in to comment.