Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged fom Master #210

Merged
merged 5 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions EC-Delete-LandingZone.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,17 @@ def main(argv):
delete_ssm_parameter('/org/member/KMSCloudtrailKey_arn', account_session)
delete_ssm_parameter('/org/member/SLZVersion', account_session)
delete_ssm_parameter('/org/member/SecLog_cloudtrail-groupname', account_session)
delete_ssm_parameter('/org/member/SecLog_cloudtrail-group-subscription-filter-name', account_session)
delete_ssm_parameter('/org/member/SecLog_insight-groupname', account_session)
delete_ssm_parameter('/org/member/SecLog_insight-group-subscription-filter-name', account_session)
delete_ssm_parameter('/org/member/SecLog_securityhub-groupname', account_session)
delete_ssm_parameter('/org/member/SecLog_securityhub-group-subscription-filter-name', account_session)
delete_ssm_parameter('/org/member/SecLog_config-groupname', account_session)
delete_ssm_parameter('/org/member/SecLog_config-group-subscription-filter-name', account_session)
delete_ssm_parameter('/org/member/SecLog_alarms-groupname', account_session)
for region in regions:
delete_ssm_parameter('/org/member/SecLog_guardduty-groupname', account_session, region=region)
delete_ssm_parameter('/org/member/SecLog_guardduty-group-subscription-filter-name', account_session, region=region)

print("")
print(f"####### AWS Landing Zone deletion script finished. Executed in {time.time() - start_time} seconds")
Expand Down
2 changes: 1 addition & 1 deletion EC-SLZ-Version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.5.11
1.5.12
4 changes: 4 additions & 0 deletions SH/EC-Configure-Client-Account.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ configure_client() {
securityhubgroupname=`aws --profile $SECLOG ssm get-parameter --name "/org/member/SecLog_securityhub-groupname" --output text --query 'Parameter.Value'`
configgroupname=`aws --profile $SECLOG ssm get-parameter --name "/org/member/SecLog_config-groupname" --output text --query 'Parameter.Value'`
alarmsgroupname=`aws --profile $SECLOG ssm get-parameter --name "/org/member/SecLog_alarms-groupname" --output text --query 'Parameter.Value'`
alarmsgroupname=`aws --profile $SECLOG ssm get-parameter --name "/org/member/SecLog_alarms-groupname" --output text --query 'Parameter.Value'`


echo ""
Expand Down Expand Up @@ -162,6 +163,9 @@ configure_client() {
fi
aws --profile $CLIENT --region $region ssm add-tags-to-resource --resource-type "Parameter" --resource-id /org/member/SecLog_guardduty-groupname --tags file://$CFN_TAGS_FILE

aws --profile $CLIENT --region $region ssm put-parameter --name /org/member/SecLog_guardduty-group-subscription-filter-name --type String --value "DEFAULT" --overwrite
aws --profile $CLIENT --region $region ssm add-tags-to-resource --resource-type "Parameter" --resource-id /org/member/SecLog_guardduty-group-subscription-filter-name --tags file://$CFN_TAGS_FILE

done

if [ ! -z "$securityhubgroupname" ] ; then
Expand Down
20 changes: 20 additions & 0 deletions Updates/1.5.12/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{ "version" : "1.5.12",
"regions" : ["ap-northeast-1","ap-northeast-2","ap-northeast-3","ap-south-1","ap-southeast-1","ap-southeast-2","ca-central-1","eu-central-1","eu-north-1","eu-west-1", "eu-west-2","eu-west-3","sa-east-1","us-east-1","us-east-2","us-west-1","us-west-2"],
"tags" : [
{ "Key": "Organization","Value": "EC" },
{ "Key": "Owner","Value": "DIGIT.C.1" },
{ "Key": "Environment","Value": "prod" },
{ "Key": "Criticity","Value": "high" },
{ "Key": "Project","Value": "secLZ" },
{ "Key": "Confidentiality","Value": "confidential" },
{ "Key": "ApplicationRole","Value": "security" }
],
"accounts" : {
"exclude" : [],
"include" : []
},
"stacks" : {

}

}