@@ -20,6 +20,7 @@ validate: export AWS_PAGER=""
2020validate :
2121	aws --region us-east-1 cloudformation validate-template --template-body file://./foundational.cft.yaml
2222	aws --region us-east-1 cloudformation validate-template --template-body file://./log_ingestion.events.cft.yaml
23+ 	aws --region us-east-1 cloudformation validate-template --template-body file://./log_ingestion.legacy_events.cft.yaml
2324	aws --region us-east-1 cloudformation validate-template --template-body file://./log_ingestion.s3.cft.yaml
2425	aws --region us-east-1 cloudformation validate-template --template-body file://./volume_access.cft.yaml
2526	aws --region us-east-1 cloudformation validate-template --template-body file://./vm_workload_scanning.cft.yaml
3031	yq ' .Resources.EventBridgeRuleStackSet.Properties.TemplateBody'   log_ingestion.events.cft.yaml |  cfn-lint -
3132	yq ' .Resources.OrganizationRoleStackSet.Properties.TemplateBody'   log_ingestion.events.cft.yaml |  cfn-lint -
3233	yq ' .Resources.OrganizationRuleStackSet.Properties.TemplateBody'   log_ingestion.events.cft.yaml |  cfn-lint -
34+ 	yq ' .Resources.EventBridgeRuleStackSet.Properties.TemplateBody'   log_ingestion.legacy_events.cft.yaml |  cfn-lint -
35+ 	yq ' .Resources.OrganizationRoleStackSet.Properties.TemplateBody'   log_ingestion.legacy_events.cft.yaml |  cfn-lint -
36+ 	yq ' .Resources.OrganizationRuleStackSet.Properties.TemplateBody'   log_ingestion.legacy_events.cft.yaml |  cfn-lint -
3337	yq ' .Resources.AccountStackSet.Properties.TemplateBody'   volume_access.cft.yaml |  cfn-lint -
3438	yq ' .Resources.OrganizationStackSet.Properties.TemplateBody'   volume_access.cft.yaml |  cfn-lint -
3539	yq ' .Resources.ScanningOrgStackSet.Properties.TemplateBody'   vm_workload_scanning.cft.yaml |  cfn-lint -
@@ -38,6 +42,7 @@ publish:
3842	aws s3 cp foundational.cft.yaml s3://$(S3_BUCKET ) /modules/$(S3_PREFIX ) /foundational.cft.yaml
3943	aws s3 cp log_ingestion.s3.cft.yaml s3://$(S3_BUCKET ) /modules/$(S3_PREFIX ) /log_ingestion.s3.cft.yaml
4044	aws s3 cp log_ingestion.events.cft.yaml s3://$(S3_BUCKET ) /modules/$(S3_PREFIX ) /log_ingestion.events.cft.yaml
45+ 	aws s3 cp log_ingestion.legacy_events.cft.yaml s3://$(S3_BUCKET ) /modules/$(S3_PREFIX ) /log_ingestion.legacy_events.cft.yaml
4146	aws s3 cp volume_access.cft.yaml s3://$(S3_BUCKET ) /modules/$(S3_PREFIX ) /volume_access.cft.yaml
4247	aws s3 cp vm_workload_scanning.cft.yaml s3://$(S3_BUCKET ) /modules/$(S3_PREFIX ) /vm_workload_scanning.cft.yaml
4348
@@ -76,6 +81,22 @@ deploy:
7681			" IncludeOUIDs=$( PARAM_INCLUDE_OU_IDS) "   \ 
7782			" IncludeAccounts=$( PARAM_INCLUDE_ACCOUNTS) "   \ 
7883			" ExcludeAccounts=$( PARAM_EXCLUDE_ACCOUNTS) " 
84+ 	aws cloudformation deploy \ 
85+ 		--stack-name $(STACK_NAME ) -LogIngestion-LegacyEventBridge-$(PARAM_NAME_SUFFIX )  \ 
86+ 		--template-file log_ingestion.legacy_events.cft.yaml \ 
87+ 		--capabilities " CAPABILITY_NAMED_IAM"   " CAPABILITY_AUTO_EXPAND"   \ 
88+ 		--parameter-overrides \ 
89+ 			" NameSuffix=$( PARAM_NAME_SUFFIX) "   \ 
90+ 			" ExternalID=$( PARAM_EXTERNAL_ID) "   \ 
91+ 			" TrustedIdentity=$( PARAM_TRUSTED_IDENTITY) "   \ 
92+ 			" Regions=$( PARAM_REGIONS) "   \ 
93+ 			" IsOrganizational=$( PARAM_IS_ORGANIZATIONAL) "   \ 
94+ 			" OrganizationalUnitIDs=$( PARAM_ORGANIZATIONAL_UNIT_IDS) "   \ 
95+ 			" Partition=${PARAM_PARTITION} "   \ 
96+ 			" RootOUID=$( PARAM_ROOT_OU_ID) "   \ 
97+ 			" IncludeOUIDs=$( PARAM_INCLUDE_OU_IDS) "   \ 
98+ 			" IncludeAccounts=$( PARAM_INCLUDE_ACCOUNTS) "   \ 
99+ 			" ExcludeAccounts=$( PARAM_EXCLUDE_ACCOUNTS) " 
79100	aws cloudformation deploy \ 
80101		--stack-name $(STACK_NAME ) -LogIngestion-S3-$(PARAM_NAME_SUFFIX )  \ 
81102		--template-file log_ingestion.s3.cft.yaml \ 
0 commit comments