@meyicloud/meyi-insight-server 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/constants/incidentCategories.d.ts +18 -0
- package/dist/constants/incidentCategories.d.ts.map +1 -0
- package/dist/constants/incidentCategories.js +36 -0
- package/dist/constants/incidentCategories.js.map +1 -0
- package/dist/controllers/alert.controller.d.ts +12 -0
- package/dist/controllers/alert.controller.d.ts.map +1 -0
- package/dist/controllers/alert.controller.js +89 -0
- package/dist/controllers/alert.controller.js.map +1 -0
- package/dist/controllers/incident.controller.d.ts +16 -0
- package/dist/controllers/incident.controller.d.ts.map +1 -0
- package/dist/controllers/incident.controller.js +215 -0
- package/dist/controllers/incident.controller.js.map +1 -0
- package/dist/controllers/notification-provider.controller.d.ts +10 -0
- package/dist/controllers/notification-provider.controller.d.ts.map +1 -0
- package/dist/controllers/notification-provider.controller.js +59 -0
- package/dist/controllers/notification-provider.controller.js.map +1 -0
- package/dist/controllers/settings.controller.d.ts +7 -0
- package/dist/controllers/settings.controller.d.ts.map +1 -0
- package/dist/controllers/settings.controller.js +27 -0
- package/dist/controllers/settings.controller.js.map +1 -0
- package/dist/controllers/sop.controller.d.ts +11 -0
- package/dist/controllers/sop.controller.d.ts.map +1 -0
- package/dist/controllers/sop.controller.js +89 -0
- package/dist/controllers/sop.controller.js.map +1 -0
- package/dist/controllers/source.controller.d.ts +26 -0
- package/dist/controllers/source.controller.d.ts.map +1 -0
- package/dist/controllers/source.controller.js +333 -0
- package/dist/controllers/source.controller.js.map +1 -0
- package/dist/controllers/sourceDatadog.controller.d.ts +17 -0
- package/dist/controllers/sourceDatadog.controller.d.ts.map +1 -0
- package/dist/controllers/sourceDatadog.controller.js +169 -0
- package/dist/controllers/sourceDatadog.controller.js.map +1 -0
- package/dist/controllers/tenant.controller.d.ts +7 -0
- package/dist/controllers/tenant.controller.d.ts.map +1 -0
- package/dist/controllers/tenant.controller.js +33 -0
- package/dist/controllers/tenant.controller.js.map +1 -0
- package/dist/controllers/webhook.controller.d.ts +6 -0
- package/dist/controllers/webhook.controller.d.ts.map +1 -0
- package/dist/controllers/webhook.controller.js +83 -0
- package/dist/controllers/webhook.controller.js.map +1 -0
- package/dist/controllers/workflow.controller.d.ts +18 -0
- package/dist/controllers/workflow.controller.d.ts.map +1 -0
- package/dist/controllers/workflow.controller.js +118 -0
- package/dist/controllers/workflow.controller.js.map +1 -0
- package/dist/database/index.d.ts +7 -0
- package/dist/database/index.d.ts.map +1 -0
- package/dist/database/index.js +12 -0
- package/dist/database/index.js.map +1 -0
- package/dist/database/schema.d.ts +5358 -0
- package/dist/database/schema.d.ts.map +1 -0
- package/dist/database/schema.js +516 -0
- package/dist/database/schema.js.map +1 -0
- package/dist/features/sources/cloudtrail/controller.d.ts +38 -0
- package/dist/features/sources/cloudtrail/controller.d.ts.map +1 -0
- package/dist/features/sources/cloudtrail/controller.js +421 -0
- package/dist/features/sources/cloudtrail/controller.js.map +1 -0
- package/dist/features/sources/cloudtrail/routes.d.ts +6 -0
- package/dist/features/sources/cloudtrail/routes.d.ts.map +1 -0
- package/dist/features/sources/cloudtrail/routes.js +8 -0
- package/dist/features/sources/cloudtrail/routes.js.map +1 -0
- package/dist/features/sources/cloudtrail/schema.d.ts +2 -0
- package/dist/features/sources/cloudtrail/schema.d.ts.map +1 -0
- package/dist/features/sources/cloudtrail/schema.js +26 -0
- package/dist/features/sources/cloudtrail/schema.js.map +1 -0
- package/dist/features/sources/cloudtrail/stackTemplates.d.ts +3 -0
- package/dist/features/sources/cloudtrail/stackTemplates.d.ts.map +1 -0
- package/dist/features/sources/cloudtrail/stackTemplates.js +548 -0
- package/dist/features/sources/cloudtrail/stackTemplates.js.map +1 -0
- package/dist/features/sources/cloudtrail/template.d.ts +21 -0
- package/dist/features/sources/cloudtrail/template.d.ts.map +1 -0
- package/dist/features/sources/cloudtrail/template.js +1230 -0
- package/dist/features/sources/cloudtrail/template.js.map +1 -0
- package/dist/features/sources/cloudwatch/controller.d.ts +13 -0
- package/dist/features/sources/cloudwatch/controller.d.ts.map +1 -0
- package/dist/features/sources/cloudwatch/controller.js +514 -0
- package/dist/features/sources/cloudwatch/controller.js.map +1 -0
- package/dist/features/sources/cloudwatch/eventbridgeTemplate.d.ts +7 -0
- package/dist/features/sources/cloudwatch/eventbridgeTemplate.d.ts.map +1 -0
- package/dist/features/sources/cloudwatch/eventbridgeTemplate.js +230 -0
- package/dist/features/sources/cloudwatch/eventbridgeTemplate.js.map +1 -0
- package/dist/features/sources/cloudwatch/service.d.ts +50 -0
- package/dist/features/sources/cloudwatch/service.d.ts.map +1 -0
- package/dist/features/sources/cloudwatch/service.js +269 -0
- package/dist/features/sources/cloudwatch/service.js.map +1 -0
- package/dist/features/sources/cloudwatch/template.d.ts +26 -0
- package/dist/features/sources/cloudwatch/template.d.ts.map +1 -0
- package/dist/features/sources/cloudwatch/template.js +335 -0
- package/dist/features/sources/cloudwatch/template.js.map +1 -0
- package/dist/features/sources/cloudwatch/types.d.ts +26 -0
- package/dist/features/sources/cloudwatch/types.d.ts.map +1 -0
- package/dist/features/sources/cloudwatch/types.js +2 -0
- package/dist/features/sources/cloudwatch/types.js.map +1 -0
- package/dist/features/sources/grafana/controller.d.ts +18 -0
- package/dist/features/sources/grafana/controller.d.ts.map +1 -0
- package/dist/features/sources/grafana/controller.js +183 -0
- package/dist/features/sources/grafana/controller.js.map +1 -0
- package/dist/features/sources/grafana/routes.d.ts +6 -0
- package/dist/features/sources/grafana/routes.d.ts.map +1 -0
- package/dist/features/sources/grafana/routes.js +6 -0
- package/dist/features/sources/grafana/routes.js.map +1 -0
- package/dist/features/sources/grafana/schema.d.ts +2 -0
- package/dist/features/sources/grafana/schema.d.ts.map +1 -0
- package/dist/features/sources/grafana/schema.js +24 -0
- package/dist/features/sources/grafana/schema.js.map +1 -0
- package/dist/features/sources/grafana/service.d.ts +33 -0
- package/dist/features/sources/grafana/service.d.ts.map +1 -0
- package/dist/features/sources/grafana/service.js +215 -0
- package/dist/features/sources/grafana/service.js.map +1 -0
- package/dist/features/sources/index.d.ts +29 -0
- package/dist/features/sources/index.d.ts.map +1 -0
- package/dist/features/sources/index.js +47 -0
- package/dist/features/sources/index.js.map +1 -0
- package/dist/features/sources/observability/controller.d.ts +6 -0
- package/dist/features/sources/observability/controller.d.ts.map +1 -0
- package/dist/features/sources/observability/controller.js +16 -0
- package/dist/features/sources/observability/controller.js.map +1 -0
- package/dist/features/sources/observability/routes.d.ts +4 -0
- package/dist/features/sources/observability/routes.d.ts.map +1 -0
- package/dist/features/sources/observability/routes.js +8 -0
- package/dist/features/sources/observability/routes.js.map +1 -0
- package/dist/features/sources/observability/schema.d.ts +3 -0
- package/dist/features/sources/observability/schema.d.ts.map +1 -0
- package/dist/features/sources/observability/schema.js +44 -0
- package/dist/features/sources/observability/schema.js.map +1 -0
- package/dist/features/sources/observability/service.d.ts +36 -0
- package/dist/features/sources/observability/service.d.ts.map +1 -0
- package/dist/features/sources/observability/service.js +127 -0
- package/dist/features/sources/observability/service.js.map +1 -0
- package/dist/features/sources/prometheus/controller.d.ts +9 -0
- package/dist/features/sources/prometheus/controller.d.ts.map +1 -0
- package/dist/features/sources/prometheus/controller.js +359 -0
- package/dist/features/sources/prometheus/controller.js.map +1 -0
- package/dist/features/sources/prometheus/templates.d.ts +18 -0
- package/dist/features/sources/prometheus/templates.d.ts.map +1 -0
- package/dist/features/sources/prometheus/templates.js +244 -0
- package/dist/features/sources/prometheus/templates.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -0
- package/dist/migrations/0007_pipeline_yaml_definitions.d.ts +3 -0
- package/dist/migrations/0007_pipeline_yaml_definitions.d.ts.map +1 -0
- package/dist/migrations/0007_pipeline_yaml_definitions.js +19 -0
- package/dist/migrations/0007_pipeline_yaml_definitions.js.map +1 -0
- package/dist/migrations/0008_tenant_isolation.d.ts +3 -0
- package/dist/migrations/0008_tenant_isolation.d.ts.map +1 -0
- package/dist/migrations/0008_tenant_isolation.js +42 -0
- package/dist/migrations/0008_tenant_isolation.js.map +1 -0
- package/dist/migrations/run.d.ts +6 -0
- package/dist/migrations/run.d.ts.map +1 -0
- package/dist/migrations/run.js +1262 -0
- package/dist/migrations/run.js.map +1 -0
- package/dist/models/alarm-group.model.d.ts +42 -0
- package/dist/models/alarm-group.model.d.ts.map +1 -0
- package/dist/models/alarm-group.model.js +98 -0
- package/dist/models/alarm-group.model.js.map +1 -0
- package/dist/models/alert.model.d.ts +54 -0
- package/dist/models/alert.model.d.ts.map +1 -0
- package/dist/models/alert.model.js +119 -0
- package/dist/models/alert.model.js.map +1 -0
- package/dist/models/dedup-config.model.d.ts +53 -0
- package/dist/models/dedup-config.model.d.ts.map +1 -0
- package/dist/models/dedup-config.model.js +157 -0
- package/dist/models/dedup-config.model.js.map +1 -0
- package/dist/models/grouping-config.model.d.ts +70 -0
- package/dist/models/grouping-config.model.d.ts.map +1 -0
- package/dist/models/grouping-config.model.js +174 -0
- package/dist/models/grouping-config.model.js.map +1 -0
- package/dist/models/incident-comment.model.d.ts +14 -0
- package/dist/models/incident-comment.model.d.ts.map +1 -0
- package/dist/models/incident-comment.model.js +38 -0
- package/dist/models/incident-comment.model.js.map +1 -0
- package/dist/models/incident-event.model.d.ts +16 -0
- package/dist/models/incident-event.model.d.ts.map +1 -0
- package/dist/models/incident-event.model.js +31 -0
- package/dist/models/incident-event.model.js.map +1 -0
- package/dist/models/incident.model.d.ts +47 -0
- package/dist/models/incident.model.d.ts.map +1 -0
- package/dist/models/incident.model.js +201 -0
- package/dist/models/incident.model.js.map +1 -0
- package/dist/models/normalization-config.model.d.ts +44 -0
- package/dist/models/normalization-config.model.d.ts.map +1 -0
- package/dist/models/normalization-config.model.js +153 -0
- package/dist/models/normalization-config.model.js.map +1 -0
- package/dist/models/notification-provider.model.d.ts +12 -0
- package/dist/models/notification-provider.model.d.ts.map +1 -0
- package/dist/models/notification-provider.model.js +48 -0
- package/dist/models/notification-provider.model.js.map +1 -0
- package/dist/models/pipeline-event.model.d.ts +15 -0
- package/dist/models/pipeline-event.model.d.ts.map +1 -0
- package/dist/models/pipeline-event.model.js +32 -0
- package/dist/models/pipeline-event.model.js.map +1 -0
- package/dist/models/settings.model.d.ts +8 -0
- package/dist/models/settings.model.d.ts.map +1 -0
- package/dist/models/settings.model.js +30 -0
- package/dist/models/settings.model.js.map +1 -0
- package/dist/models/sop.model.d.ts +58 -0
- package/dist/models/sop.model.d.ts.map +1 -0
- package/dist/models/sop.model.js +138 -0
- package/dist/models/sop.model.js.map +1 -0
- package/dist/models/source.model.d.ts +177 -0
- package/dist/models/source.model.d.ts.map +1 -0
- package/dist/models/source.model.js +794 -0
- package/dist/models/source.model.js.map +1 -0
- package/dist/models/tenant.model.d.ts +13 -0
- package/dist/models/tenant.model.d.ts.map +1 -0
- package/dist/models/tenant.model.js +28 -0
- package/dist/models/tenant.model.js.map +1 -0
- package/dist/models/workflow.model.d.ts +36 -0
- package/dist/models/workflow.model.d.ts.map +1 -0
- package/dist/models/workflow.model.js +136 -0
- package/dist/models/workflow.model.js.map +1 -0
- package/dist/pipeline/AlarmPipelineWorker.d.ts +18 -0
- package/dist/pipeline/AlarmPipelineWorker.d.ts.map +1 -0
- package/dist/pipeline/AlarmPipelineWorker.js +342 -0
- package/dist/pipeline/AlarmPipelineWorker.js.map +1 -0
- package/dist/pipeline/CanonicalAlarm.d.ts +59 -0
- package/dist/pipeline/CanonicalAlarm.d.ts.map +1 -0
- package/dist/pipeline/CanonicalAlarm.js +81 -0
- package/dist/pipeline/CanonicalAlarm.js.map +1 -0
- package/dist/pipeline/DedupService.d.ts +29 -0
- package/dist/pipeline/DedupService.d.ts.map +1 -0
- package/dist/pipeline/DedupService.js +172 -0
- package/dist/pipeline/DedupService.js.map +1 -0
- package/dist/pipeline/GroupFlushWorker.d.ts +16 -0
- package/dist/pipeline/GroupFlushWorker.d.ts.map +1 -0
- package/dist/pipeline/GroupFlushWorker.js +196 -0
- package/dist/pipeline/GroupFlushWorker.js.map +1 -0
- package/dist/pipeline/GroupingService.d.ts +27 -0
- package/dist/pipeline/GroupingService.d.ts.map +1 -0
- package/dist/pipeline/GroupingService.js +338 -0
- package/dist/pipeline/GroupingService.js.map +1 -0
- package/dist/pipeline/NormalizationRuleEngine.d.ts +5 -0
- package/dist/pipeline/NormalizationRuleEngine.d.ts.map +1 -0
- package/dist/pipeline/NormalizationRuleEngine.js +86 -0
- package/dist/pipeline/NormalizationRuleEngine.js.map +1 -0
- package/dist/pipeline/NormalizationService.d.ts +29 -0
- package/dist/pipeline/NormalizationService.d.ts.map +1 -0
- package/dist/pipeline/NormalizationService.js +275 -0
- package/dist/pipeline/NormalizationService.js.map +1 -0
- package/dist/pipeline/alarmQueue.d.ts +66 -0
- package/dist/pipeline/alarmQueue.d.ts.map +1 -0
- package/dist/pipeline/alarmQueue.js +254 -0
- package/dist/pipeline/alarmQueue.js.map +1 -0
- package/dist/pipeline/defaults/ensureDefaults.d.ts +3 -0
- package/dist/pipeline/defaults/ensureDefaults.d.ts.map +1 -0
- package/dist/pipeline/defaults/ensureDefaults.js +124 -0
- package/dist/pipeline/defaults/ensureDefaults.js.map +1 -0
- package/dist/pipeline/defaults/pipelineDefaults.d.ts +13 -0
- package/dist/pipeline/defaults/pipelineDefaults.d.ts.map +1 -0
- package/dist/pipeline/defaults/pipelineDefaults.js +266 -0
- package/dist/pipeline/defaults/pipelineDefaults.js.map +1 -0
- package/dist/pipeline/yaml/DedupYaml.d.ts +33 -0
- package/dist/pipeline/yaml/DedupYaml.d.ts.map +1 -0
- package/dist/pipeline/yaml/DedupYaml.js +25 -0
- package/dist/pipeline/yaml/DedupYaml.js.map +1 -0
- package/dist/pipeline/yaml/GroupingYaml.d.ts +49 -0
- package/dist/pipeline/yaml/GroupingYaml.d.ts.map +1 -0
- package/dist/pipeline/yaml/GroupingYaml.js +39 -0
- package/dist/pipeline/yaml/GroupingYaml.js.map +1 -0
- package/dist/pipeline/yaml/NormalizationYaml.d.ts +54 -0
- package/dist/pipeline/yaml/NormalizationYaml.d.ts.map +1 -0
- package/dist/pipeline/yaml/NormalizationYaml.js +23 -0
- package/dist/pipeline/yaml/NormalizationYaml.js.map +1 -0
- package/dist/pipeline/yaml/pipelineYaml.d.ts +11 -0
- package/dist/pipeline/yaml/pipelineYaml.d.ts.map +1 -0
- package/dist/pipeline/yaml/pipelineYaml.js +49 -0
- package/dist/pipeline/yaml/pipelineYaml.js.map +1 -0
- package/dist/realtime/events.d.ts +11 -0
- package/dist/realtime/events.d.ts.map +1 -0
- package/dist/realtime/events.js +21 -0
- package/dist/realtime/events.js.map +1 -0
- package/dist/routes/alert.routes.d.ts +4 -0
- package/dist/routes/alert.routes.d.ts.map +1 -0
- package/dist/routes/alert.routes.js +15 -0
- package/dist/routes/alert.routes.js.map +1 -0
- package/dist/routes/dedup-config.routes.d.ts +4 -0
- package/dist/routes/dedup-config.routes.d.ts.map +1 -0
- package/dist/routes/dedup-config.routes.js +82 -0
- package/dist/routes/dedup-config.routes.js.map +1 -0
- package/dist/routes/grouping-config.routes.d.ts +4 -0
- package/dist/routes/grouping-config.routes.d.ts.map +1 -0
- package/dist/routes/grouping-config.routes.js +82 -0
- package/dist/routes/grouping-config.routes.js.map +1 -0
- package/dist/routes/incident.routes.d.ts +4 -0
- package/dist/routes/incident.routes.d.ts.map +1 -0
- package/dist/routes/incident.routes.js +21 -0
- package/dist/routes/incident.routes.js.map +1 -0
- package/dist/routes/index.d.ts +47 -0
- package/dist/routes/index.d.ts.map +1 -0
- package/dist/routes/index.js +83 -0
- package/dist/routes/index.js.map +1 -0
- package/dist/routes/normalization-config.routes.d.ts +4 -0
- package/dist/routes/normalization-config.routes.d.ts.map +1 -0
- package/dist/routes/normalization-config.routes.js +199 -0
- package/dist/routes/normalization-config.routes.js.map +1 -0
- package/dist/routes/notification-provider.routes.d.ts +4 -0
- package/dist/routes/notification-provider.routes.d.ts.map +1 -0
- package/dist/routes/notification-provider.routes.js +13 -0
- package/dist/routes/notification-provider.routes.js.map +1 -0
- package/dist/routes/pipeline.routes.d.ts +8 -0
- package/dist/routes/pipeline.routes.d.ts.map +1 -0
- package/dist/routes/pipeline.routes.js +243 -0
- package/dist/routes/pipeline.routes.js.map +1 -0
- package/dist/routes/settings.routes.d.ts +4 -0
- package/dist/routes/settings.routes.d.ts.map +1 -0
- package/dist/routes/settings.routes.js +10 -0
- package/dist/routes/settings.routes.js.map +1 -0
- package/dist/routes/sop.routes.d.ts +4 -0
- package/dist/routes/sop.routes.d.ts.map +1 -0
- package/dist/routes/sop.routes.js +14 -0
- package/dist/routes/sop.routes.js.map +1 -0
- package/dist/routes/source.routes.d.ts +9 -0
- package/dist/routes/source.routes.d.ts.map +1 -0
- package/dist/routes/source.routes.js +31 -0
- package/dist/routes/source.routes.js.map +1 -0
- package/dist/routes/tenant.routes.d.ts +4 -0
- package/dist/routes/tenant.routes.d.ts.map +1 -0
- package/dist/routes/tenant.routes.js +10 -0
- package/dist/routes/tenant.routes.js.map +1 -0
- package/dist/routes/workflow.routes.d.ts +4 -0
- package/dist/routes/workflow.routes.d.ts.map +1 -0
- package/dist/routes/workflow.routes.js +18 -0
- package/dist/routes/workflow.routes.js.map +1 -0
- package/dist/server.d.ts +22 -0
- package/dist/server.d.ts.map +1 -0
- package/dist/server.js +76 -0
- package/dist/server.js.map +1 -0
- package/dist/service.d.ts +159 -0
- package/dist/service.d.ts.map +1 -0
- package/dist/service.js +156 -0
- package/dist/service.js.map +1 -0
- package/dist/services/alert.service.d.ts +76 -0
- package/dist/services/alert.service.d.ts.map +1 -0
- package/dist/services/alert.service.js +688 -0
- package/dist/services/alert.service.js.map +1 -0
- package/dist/services/connector.service.d.ts +65 -0
- package/dist/services/connector.service.d.ts.map +1 -0
- package/dist/services/connector.service.js +28 -0
- package/dist/services/connector.service.js.map +1 -0
- package/dist/services/incident.service.d.ts +108 -0
- package/dist/services/incident.service.d.ts.map +1 -0
- package/dist/services/incident.service.js +325 -0
- package/dist/services/incident.service.js.map +1 -0
- package/dist/services/notification-provider.service.d.ts +12 -0
- package/dist/services/notification-provider.service.d.ts.map +1 -0
- package/dist/services/notification-provider.service.js +25 -0
- package/dist/services/notification-provider.service.js.map +1 -0
- package/dist/services/settings.service.d.ts +8 -0
- package/dist/services/settings.service.d.ts.map +1 -0
- package/dist/services/settings.service.js +14 -0
- package/dist/services/settings.service.js.map +1 -0
- package/dist/services/sop.service.d.ts +60 -0
- package/dist/services/sop.service.d.ts.map +1 -0
- package/dist/services/sop.service.js +66 -0
- package/dist/services/sop.service.js.map +1 -0
- package/dist/services/source.service.d.ts +162 -0
- package/dist/services/source.service.d.ts.map +1 -0
- package/dist/services/source.service.js +124 -0
- package/dist/services/source.service.js.map +1 -0
- package/dist/services/tenant.service.d.ts +11 -0
- package/dist/services/tenant.service.d.ts.map +1 -0
- package/dist/services/tenant.service.js +22 -0
- package/dist/services/tenant.service.js.map +1 -0
- package/dist/services/workflow.service.d.ts +32 -0
- package/dist/services/workflow.service.d.ts.map +1 -0
- package/dist/services/workflow.service.js +291 -0
- package/dist/services/workflow.service.js.map +1 -0
- package/dist/standalone.d.ts +2 -0
- package/dist/standalone.d.ts.map +1 -0
- package/dist/standalone.js +55 -0
- package/dist/standalone.js.map +1 -0
- package/dist/tenancy.d.ts +5 -0
- package/dist/tenancy.d.ts.map +1 -0
- package/dist/tenancy.js +35 -0
- package/dist/tenancy.js.map +1 -0
- package/dist/utils/notificationTemplates.d.ts +98 -0
- package/dist/utils/notificationTemplates.d.ts.map +1 -0
- package/dist/utils/notificationTemplates.js +227 -0
- package/dist/utils/notificationTemplates.js.map +1 -0
- package/dist/utils/secretCrypto.d.ts +3 -0
- package/dist/utils/secretCrypto.d.ts.map +1 -0
- package/dist/utils/secretCrypto.js +40 -0
- package/dist/utils/secretCrypto.js.map +1 -0
- package/dist/utils/workflowYaml.d.ts +53 -0
- package/dist/utils/workflowYaml.d.ts.map +1 -0
- package/dist/utils/workflowYaml.js +269 -0
- package/dist/utils/workflowYaml.js.map +1 -0
- package/package.json +73 -0
|
@@ -0,0 +1,548 @@
|
|
|
1
|
+
export const STACK_YAML = `AWSTemplateFormatVersion: '2010-09-09'
|
|
2
|
+
Description: |
|
|
3
|
+
Meyi Connect Security Monitoring - Regional Events Stack.
|
|
4
|
+
Deploys regional security alerting rules and SNS webhook delivery.
|
|
5
|
+
|
|
6
|
+
Parameters:
|
|
7
|
+
Environment:
|
|
8
|
+
Type: String
|
|
9
|
+
Default: "MeyiConnect"
|
|
10
|
+
Description: Environment name (used as a prefix for resource names)
|
|
11
|
+
|
|
12
|
+
WebhookUrl:
|
|
13
|
+
Type: String
|
|
14
|
+
Description: MeyiConnect webhook URL for security alerts.
|
|
15
|
+
|
|
16
|
+
CreateCloudTrail:
|
|
17
|
+
Type: String
|
|
18
|
+
Default: 'false'
|
|
19
|
+
Description: Kept for backwards compatibility.
|
|
20
|
+
|
|
21
|
+
PrimaryRegion:
|
|
22
|
+
Type: String
|
|
23
|
+
Default: 'us-east-1'
|
|
24
|
+
Description: Kept for backwards compatibility.
|
|
25
|
+
|
|
26
|
+
DeploymentMode:
|
|
27
|
+
Type: String
|
|
28
|
+
Default: 'Organizations'
|
|
29
|
+
Description: Kept for backwards compatibility.
|
|
30
|
+
|
|
31
|
+
Resources:
|
|
32
|
+
|
|
33
|
+
# ============================================================
|
|
34
|
+
# SNS TOPIC & SUBSCRIPTION FOR ALERTS
|
|
35
|
+
# ============================================================
|
|
36
|
+
|
|
37
|
+
SecurityAlertsTopic:
|
|
38
|
+
Type: AWS::SNS::Topic
|
|
39
|
+
Properties:
|
|
40
|
+
Tags:
|
|
41
|
+
- Key: Project
|
|
42
|
+
Value: MeyiConnect
|
|
43
|
+
- Key: Created_for
|
|
44
|
+
Value: L1 Security
|
|
45
|
+
- Key: aws-apn-id
|
|
46
|
+
Value: pc:eyl8vo7kcwv8k9qctzbathhiq
|
|
47
|
+
|
|
48
|
+
SecurityAlertsTopicPolicy:
|
|
49
|
+
Type: AWS::SNS::TopicPolicy
|
|
50
|
+
Properties:
|
|
51
|
+
Topics:
|
|
52
|
+
- !Ref SecurityAlertsTopic
|
|
53
|
+
PolicyDocument:
|
|
54
|
+
Version: '2012-10-17'
|
|
55
|
+
Statement:
|
|
56
|
+
- Effect: Allow
|
|
57
|
+
Principal:
|
|
58
|
+
Service: events.amazonaws.com
|
|
59
|
+
Action: sns:Publish
|
|
60
|
+
Resource: !Ref SecurityAlertsTopic
|
|
61
|
+
|
|
62
|
+
WebhookSubscription:
|
|
63
|
+
Type: AWS::SNS::Subscription
|
|
64
|
+
Properties:
|
|
65
|
+
TopicArn: !Ref SecurityAlertsTopic
|
|
66
|
+
Endpoint: !Ref WebhookUrl
|
|
67
|
+
Protocol: https
|
|
68
|
+
|
|
69
|
+
# ============================================================
|
|
70
|
+
# EVENTBRIDGE RULES ON DEFAULT BUS
|
|
71
|
+
# Regional events fire directly in this region - no forwarding needed
|
|
72
|
+
# ============================================================
|
|
73
|
+
|
|
74
|
+
DataAndInfrastructureSecurityRule:
|
|
75
|
+
Type: AWS::Events::Rule
|
|
76
|
+
DependsOn: SecurityAlertsTopicPolicy
|
|
77
|
+
Properties:
|
|
78
|
+
Tags:
|
|
79
|
+
- Key: Project
|
|
80
|
+
Value: MeyiConnect
|
|
81
|
+
- Key: Created_for
|
|
82
|
+
Value: L1 Security
|
|
83
|
+
- Key: aws-apn-id
|
|
84
|
+
Value: pc:eyl8vo7kcwv8k9qctzbathhiq
|
|
85
|
+
Description: EC2, VPC, network, S3, and RDS configuration changes in the deployment region
|
|
86
|
+
EventPattern:
|
|
87
|
+
source:
|
|
88
|
+
- aws.ec2
|
|
89
|
+
- aws.s3
|
|
90
|
+
- aws.rds
|
|
91
|
+
detail-type:
|
|
92
|
+
- AWS API Call via CloudTrail
|
|
93
|
+
detail:
|
|
94
|
+
eventSource:
|
|
95
|
+
- ec2.amazonaws.com
|
|
96
|
+
- s3.amazonaws.com
|
|
97
|
+
- rds.amazonaws.com
|
|
98
|
+
eventName:
|
|
99
|
+
# EC2 & Network Events
|
|
100
|
+
- StopInstances
|
|
101
|
+
- RunInstances
|
|
102
|
+
- RebootInstances
|
|
103
|
+
- StartInstances
|
|
104
|
+
- TerminateInstances
|
|
105
|
+
- CreateCustomerGateway
|
|
106
|
+
- DeleteCustomerGateway
|
|
107
|
+
- AttachInternetGateway
|
|
108
|
+
- CreateInternetGateway
|
|
109
|
+
- DeleteInternetGateway
|
|
110
|
+
- DetachInternetGateway
|
|
111
|
+
- CreateNetworkAcl
|
|
112
|
+
- DeleteNetworkAcl
|
|
113
|
+
- CreateNetworkAclEntry
|
|
114
|
+
- DeleteNetworkAclEntry
|
|
115
|
+
- ReplaceNetworkAclEntry
|
|
116
|
+
- ReplaceNetworkAclAssociation
|
|
117
|
+
- AuthorizeSecurityGroupIngress
|
|
118
|
+
- AuthorizeSecurityGroupEgress
|
|
119
|
+
- RevokeSecurityGroupIngress
|
|
120
|
+
- RevokeSecurityGroupEgress
|
|
121
|
+
- ModifySecurityGroupRules
|
|
122
|
+
- UpdateSecurityGroupRuleDescriptionsIngress
|
|
123
|
+
- UpdateSecurityGroupRuleDescriptionsEgress
|
|
124
|
+
- CreateSecurityGroup
|
|
125
|
+
- DeleteSecurityGroup
|
|
126
|
+
- CreateVpc
|
|
127
|
+
- DeleteVpc
|
|
128
|
+
- ModifyVpcAttribute
|
|
129
|
+
- AcceptVpcPeeringConnection
|
|
130
|
+
- CreateVpcPeeringConnection
|
|
131
|
+
- DeleteVpcPeeringConnection
|
|
132
|
+
- RejectVpcPeeringConnection
|
|
133
|
+
- AttachClassicLinkVpc
|
|
134
|
+
- DetachClassicLinkVpc
|
|
135
|
+
- DisableVpcClassicLink
|
|
136
|
+
- EnableVpcClassicLink
|
|
137
|
+
- ModifyImageAttribute
|
|
138
|
+
- ModifySnapshotAttribute
|
|
139
|
+
- ModifyInstanceAttribute
|
|
140
|
+
- ImportKeyPair
|
|
141
|
+
- CreateKeyPair
|
|
142
|
+
- DisableEbsEncryptionByDefault
|
|
143
|
+
- DeleteFlowLogs
|
|
144
|
+
# S3 Events
|
|
145
|
+
- PutBucketPublicAccessBlock
|
|
146
|
+
- DeletePublicAccessBlock
|
|
147
|
+
- PutBucketPolicy
|
|
148
|
+
- DeleteBucketPolicy
|
|
149
|
+
- PutBucketAcl
|
|
150
|
+
- PutBucketEncryption
|
|
151
|
+
- DeleteBucketEncryption
|
|
152
|
+
- DeleteBucket
|
|
153
|
+
# RDS Events
|
|
154
|
+
- ModifyDBInstance
|
|
155
|
+
- ModifyDBSnapshotAttribute
|
|
156
|
+
- DeleteDBInstance
|
|
157
|
+
- DeleteDBClusterSnapshot
|
|
158
|
+
- RestoreDBInstanceFromDBSnapshot
|
|
159
|
+
State: ENABLED
|
|
160
|
+
Targets:
|
|
161
|
+
- Arn: !Ref SecurityAlertsTopic
|
|
162
|
+
Id: SNSTarget
|
|
163
|
+
|
|
164
|
+
OperationsAndSecretsSecurityRule:
|
|
165
|
+
Type: AWS::Events::Rule
|
|
166
|
+
DependsOn: SecurityAlertsTopicPolicy
|
|
167
|
+
Properties:
|
|
168
|
+
Tags:
|
|
169
|
+
- Key: Project
|
|
170
|
+
Value: MeyiConnect
|
|
171
|
+
- Key: Created_for
|
|
172
|
+
Value: L1 Security
|
|
173
|
+
- Key: aws-apn-id
|
|
174
|
+
Value: pc:eyl8vo7kcwv8k9qctzbathhiq
|
|
175
|
+
Description: Lambda, SSM, Secrets Manager, and KMS configuration/management events
|
|
176
|
+
EventPattern:
|
|
177
|
+
source:
|
|
178
|
+
- aws.lambda
|
|
179
|
+
- aws.ssm
|
|
180
|
+
- aws.secretsmanager
|
|
181
|
+
- aws.kms
|
|
182
|
+
detail-type:
|
|
183
|
+
- AWS API Call via CloudTrail
|
|
184
|
+
detail:
|
|
185
|
+
eventSource:
|
|
186
|
+
- lambda.amazonaws.com
|
|
187
|
+
- ssm.amazonaws.com
|
|
188
|
+
- secretsmanager.amazonaws.com
|
|
189
|
+
- kms.amazonaws.com
|
|
190
|
+
eventName:
|
|
191
|
+
# Lambda, SSM, Secrets Manager
|
|
192
|
+
- AddPermission
|
|
193
|
+
- CreateFunction
|
|
194
|
+
- UpdateFunctionCode
|
|
195
|
+
- CreateEventSourceMapping
|
|
196
|
+
- SendCommand
|
|
197
|
+
- StartSession
|
|
198
|
+
- PutParameter
|
|
199
|
+
- DeleteParameter
|
|
200
|
+
- DeleteSecret
|
|
201
|
+
- PutResourcePolicy
|
|
202
|
+
# KMS
|
|
203
|
+
- ScheduleKeyDeletion
|
|
204
|
+
- DisableKey
|
|
205
|
+
- DisableKeyRotation
|
|
206
|
+
- PutKeyPolicy
|
|
207
|
+
- DeleteAlias
|
|
208
|
+
- CancelKeyDeletion
|
|
209
|
+
State: ENABLED
|
|
210
|
+
Targets:
|
|
211
|
+
- Arn: !Ref SecurityAlertsTopic
|
|
212
|
+
Id: SNSTarget
|
|
213
|
+
|
|
214
|
+
AuditAndTamperingSecurityRule:
|
|
215
|
+
Type: AWS::Events::Rule
|
|
216
|
+
DependsOn: SecurityAlertsTopicPolicy
|
|
217
|
+
Properties:
|
|
218
|
+
Tags:
|
|
219
|
+
- Key: Project
|
|
220
|
+
Value: MeyiConnect
|
|
221
|
+
- Key: Created_for
|
|
222
|
+
Value: L1 Security
|
|
223
|
+
- Key: aws-apn-id
|
|
224
|
+
Value: pc:eyl8vo7kcwv8k9qctzbathhiq
|
|
225
|
+
Description: CloudTrail, GuardDuty, Security Hub, and Config auditing or tampering events
|
|
226
|
+
EventPattern:
|
|
227
|
+
source:
|
|
228
|
+
- aws.cloudtrail
|
|
229
|
+
- aws.securityhub
|
|
230
|
+
- aws.guardduty
|
|
231
|
+
- aws.config
|
|
232
|
+
detail-type:
|
|
233
|
+
- AWS API Call via CloudTrail
|
|
234
|
+
detail:
|
|
235
|
+
eventSource:
|
|
236
|
+
- cloudtrail.amazonaws.com
|
|
237
|
+
- securityhub.amazonaws.com
|
|
238
|
+
- guardduty.amazonaws.com
|
|
239
|
+
- config.amazonaws.com
|
|
240
|
+
eventName:
|
|
241
|
+
# CloudTrail
|
|
242
|
+
- CreateTrail
|
|
243
|
+
- UpdateTrail
|
|
244
|
+
- DeleteTrail
|
|
245
|
+
- StartLogging
|
|
246
|
+
- StopLogging
|
|
247
|
+
- PutEventSelectors
|
|
248
|
+
- DeleteEventDataStore
|
|
249
|
+
# Security Services Tampering
|
|
250
|
+
- BatchDisableStandards
|
|
251
|
+
- DeleteMembers
|
|
252
|
+
- DisassociateMembers
|
|
253
|
+
- DeleteDetector
|
|
254
|
+
- UpdateDetector
|
|
255
|
+
- CreateFilter
|
|
256
|
+
- StopMonitoringMembers
|
|
257
|
+
- DisableSecurityHub
|
|
258
|
+
- StopConfigurationRecorder
|
|
259
|
+
- DeleteConfigurationRecorder
|
|
260
|
+
- DeleteDeliveryChannel
|
|
261
|
+
State: ENABLED
|
|
262
|
+
Targets:
|
|
263
|
+
- Arn: !Ref SecurityAlertsTopic
|
|
264
|
+
Id: SNSTarget
|
|
265
|
+
|
|
266
|
+
ControlTowerManagedRule:
|
|
267
|
+
Type: AWS::Events::Rule
|
|
268
|
+
DependsOn: SecurityAlertsTopicPolicy
|
|
269
|
+
Properties:
|
|
270
|
+
Tags:
|
|
271
|
+
- Key: Project
|
|
272
|
+
Value: MeyiConnect
|
|
273
|
+
- Key: Created_for
|
|
274
|
+
Value: L1 Security
|
|
275
|
+
- Key: aws-apn-id
|
|
276
|
+
Value: pc:eyl8vo7kcwv8k9qctzbathhiq
|
|
277
|
+
Description: Security Hub findings imported by AWS Control Tower
|
|
278
|
+
EventPattern:
|
|
279
|
+
source:
|
|
280
|
+
- aws.securityhub
|
|
281
|
+
detail-type:
|
|
282
|
+
- Security Hub Findings - Imported
|
|
283
|
+
detail:
|
|
284
|
+
findings:
|
|
285
|
+
Compliance:
|
|
286
|
+
AssociatedStandards:
|
|
287
|
+
StandardsId:
|
|
288
|
+
- prefix: standards/service-managed-aws-control-tower
|
|
289
|
+
State: ENABLED
|
|
290
|
+
Targets:
|
|
291
|
+
- Arn: !Ref SecurityAlertsTopic
|
|
292
|
+
Id: SNSTarget
|
|
293
|
+
|
|
294
|
+
# ============================================================
|
|
295
|
+
# OUTPUTS
|
|
296
|
+
# ============================================================
|
|
297
|
+
|
|
298
|
+
Outputs:
|
|
299
|
+
SecurityAlertsTopicArn:
|
|
300
|
+
Description: ARN of the regional security alerts SNS topic
|
|
301
|
+
Value: !Ref SecurityAlertsTopic`;
|
|
302
|
+
export const GLOBAL_STACK_YAML = `AWSTemplateFormatVersion: '2010-09-09'
|
|
303
|
+
Description: |
|
|
304
|
+
Meyi Connect Security Monitoring - Global Events Stack (us-east-1). Fully independent of
|
|
305
|
+
the regional Central Stack. Captures IAM, Root Login, Console Login Failure, and AWS Health
|
|
306
|
+
events (all global services that only fire in us-east-1) and delivers them directly to the
|
|
307
|
+
Meyi Connect webhook via Amazon SNS. No cross-region forwarding,
|
|
308
|
+
no shared resources with any other stack.
|
|
309
|
+
|
|
310
|
+
Parameters:
|
|
311
|
+
Environment:
|
|
312
|
+
Type: String
|
|
313
|
+
Default: "MeyiConnect"
|
|
314
|
+
Description: Environment name (used as a prefix for resource names)
|
|
315
|
+
|
|
316
|
+
WebhookUrl:
|
|
317
|
+
Type: String
|
|
318
|
+
Description: MeyiConnect webhook URL for global security alerts.
|
|
319
|
+
|
|
320
|
+
CreateCloudTrail:
|
|
321
|
+
Type: String
|
|
322
|
+
Default: 'false'
|
|
323
|
+
Description: Dummy parameter for compatibility with meyi-security-monitoring.yaml.
|
|
324
|
+
|
|
325
|
+
PrimaryRegion:
|
|
326
|
+
Type: String
|
|
327
|
+
Default: 'us-east-1'
|
|
328
|
+
Description: Dummy parameter for compatibility with meyi-security-monitoring.yaml.
|
|
329
|
+
|
|
330
|
+
DeploymentMode:
|
|
331
|
+
Type: String
|
|
332
|
+
Default: 'Organizations'
|
|
333
|
+
AllowedValues:
|
|
334
|
+
- 'Organizations'
|
|
335
|
+
- 'Standalone'
|
|
336
|
+
Description: Whether this is deployed via AWS Organizations or as a standalone account.
|
|
337
|
+
|
|
338
|
+
Resources:
|
|
339
|
+
|
|
340
|
+
# ============================================================
|
|
341
|
+
# SNS TOPIC & SUBSCRIPTION FOR GLOBAL ALERTS
|
|
342
|
+
# ============================================================
|
|
343
|
+
|
|
344
|
+
GlobalSecurityAlertsTopic:
|
|
345
|
+
Type: AWS::SNS::Topic
|
|
346
|
+
Properties:
|
|
347
|
+
Tags:
|
|
348
|
+
- Key: Project
|
|
349
|
+
Value: MeyiConnect
|
|
350
|
+
- Key: Created_for
|
|
351
|
+
Value: L1 Security
|
|
352
|
+
- Key: aws-apn-id
|
|
353
|
+
Value: pc:eyl8vo7kcwv8k9qctzbathhiq
|
|
354
|
+
|
|
355
|
+
GlobalSecurityAlertsTopicPolicy:
|
|
356
|
+
Type: AWS::SNS::TopicPolicy
|
|
357
|
+
Properties:
|
|
358
|
+
Topics:
|
|
359
|
+
- !Ref GlobalSecurityAlertsTopic
|
|
360
|
+
PolicyDocument:
|
|
361
|
+
Version: '2012-10-17'
|
|
362
|
+
Statement:
|
|
363
|
+
- Effect: Allow
|
|
364
|
+
Principal:
|
|
365
|
+
Service: events.amazonaws.com
|
|
366
|
+
Action: sns:Publish
|
|
367
|
+
Resource: !Ref GlobalSecurityAlertsTopic
|
|
368
|
+
|
|
369
|
+
WebhookSubscription:
|
|
370
|
+
Type: AWS::SNS::Subscription
|
|
371
|
+
Properties:
|
|
372
|
+
TopicArn: !Ref GlobalSecurityAlertsTopic
|
|
373
|
+
Endpoint: !Ref WebhookUrl
|
|
374
|
+
Protocol: https
|
|
375
|
+
|
|
376
|
+
# ============================================================
|
|
377
|
+
# EVENTBRIDGE RULES - GLOBAL EVENTS
|
|
378
|
+
# IAM, Root Login, Console Login, Health, and Organizations all fire only in us-east-1
|
|
379
|
+
# ============================================================
|
|
380
|
+
|
|
381
|
+
IAMAndOrganizationsSecurityEventsRule:
|
|
382
|
+
Type: AWS::Events::Rule
|
|
383
|
+
DependsOn: GlobalSecurityAlertsTopicPolicy
|
|
384
|
+
Properties:
|
|
385
|
+
Tags:
|
|
386
|
+
- Key: Project
|
|
387
|
+
Value: MeyiConnect
|
|
388
|
+
- Key: Created_for
|
|
389
|
+
Value: L1 Security
|
|
390
|
+
- Key: aws-apn-id
|
|
391
|
+
Value: pc:eyl8vo7kcwv8k9qctzbathhiq
|
|
392
|
+
Description: IAM and Organizations security configuration changes
|
|
393
|
+
EventPattern:
|
|
394
|
+
source:
|
|
395
|
+
- aws.iam
|
|
396
|
+
- aws.organizations
|
|
397
|
+
detail-type:
|
|
398
|
+
- AWS API Call via CloudTrail
|
|
399
|
+
detail:
|
|
400
|
+
eventName:
|
|
401
|
+
# IAM events
|
|
402
|
+
- CreateUser
|
|
403
|
+
- DeleteUser
|
|
404
|
+
- CreateAccessKey
|
|
405
|
+
- UpdateAccessKey
|
|
406
|
+
- DeleteAccessKey
|
|
407
|
+
- AttachRolePolicy
|
|
408
|
+
- DetachRolePolicy
|
|
409
|
+
- PutUserPolicy
|
|
410
|
+
- PutRolePolicy
|
|
411
|
+
- UpdateAssumeRolePolicy
|
|
412
|
+
- DeactivateMFADevice
|
|
413
|
+
- CreateLoginProfile
|
|
414
|
+
- UpdateLoginProfile
|
|
415
|
+
- DeleteLoginProfile
|
|
416
|
+
- CreateAccountAlias
|
|
417
|
+
- DeleteAccountAlias
|
|
418
|
+
- UpdateAccountPasswordPolicy
|
|
419
|
+
- DeleteAccountPasswordPolicy
|
|
420
|
+
- DeleteGroupPolicy
|
|
421
|
+
- PutGroupPolicy
|
|
422
|
+
- CreatePolicy
|
|
423
|
+
- DeletePolicy
|
|
424
|
+
- CreatePolicyVersion
|
|
425
|
+
- DeletePolicyVersion
|
|
426
|
+
- AttachUserPolicy
|
|
427
|
+
- DetachUserPolicy
|
|
428
|
+
- AttachGroupPolicy
|
|
429
|
+
- DetachGroupPolicy
|
|
430
|
+
- CreateRole
|
|
431
|
+
- DeleteRole
|
|
432
|
+
- CreateSAMLProvider
|
|
433
|
+
- UpdateSAMLProvider
|
|
434
|
+
- CreateOpenIDConnectProvider
|
|
435
|
+
- UpdateOpenIDConnectProvider
|
|
436
|
+
- CreateServiceSpecificCredential
|
|
437
|
+
# Organizations events
|
|
438
|
+
- LeaveOrganization
|
|
439
|
+
- RemoveAccountFromOrganization
|
|
440
|
+
- DeletePolicy
|
|
441
|
+
- DetachPolicy
|
|
442
|
+
- DisablePolicyType
|
|
443
|
+
- UpdatePolicy
|
|
444
|
+
- CreateAccount
|
|
445
|
+
- InviteAccountToOrganization
|
|
446
|
+
State: ENABLED
|
|
447
|
+
Targets:
|
|
448
|
+
- Arn: !Ref GlobalSecurityAlertsTopic
|
|
449
|
+
Id: SNSTarget
|
|
450
|
+
|
|
451
|
+
ConsoleLoginRule:
|
|
452
|
+
Type: AWS::Events::Rule
|
|
453
|
+
DependsOn: GlobalSecurityAlertsTopicPolicy
|
|
454
|
+
Properties:
|
|
455
|
+
Tags:
|
|
456
|
+
- Key: Project
|
|
457
|
+
Value: MeyiConnect
|
|
458
|
+
- Key: Created_for
|
|
459
|
+
Value: L1 Security
|
|
460
|
+
- Key: aws-apn-id
|
|
461
|
+
Value: pc:eyl8vo7kcwv8k9qctzbathhiq
|
|
462
|
+
Description: Root login, failed console logins, and MFA-not-used console login attempts
|
|
463
|
+
EventPattern:
|
|
464
|
+
detail-type:
|
|
465
|
+
- AWS Console Sign In via CloudTrail
|
|
466
|
+
detail:
|
|
467
|
+
eventName:
|
|
468
|
+
- ConsoleLogin
|
|
469
|
+
\$or:
|
|
470
|
+
- userIdentity:
|
|
471
|
+
type:
|
|
472
|
+
- Root
|
|
473
|
+
responseElements:
|
|
474
|
+
ConsoleLogin:
|
|
475
|
+
- Success
|
|
476
|
+
- responseElements:
|
|
477
|
+
ConsoleLogin:
|
|
478
|
+
- Failure
|
|
479
|
+
- responseElements:
|
|
480
|
+
ConsoleLogin:
|
|
481
|
+
- Success
|
|
482
|
+
additionalEventData:
|
|
483
|
+
MFAUsed:
|
|
484
|
+
- "No"
|
|
485
|
+
State: ENABLED
|
|
486
|
+
Targets:
|
|
487
|
+
- Arn: !Ref GlobalSecurityAlertsTopic
|
|
488
|
+
Id: SNSTarget
|
|
489
|
+
|
|
490
|
+
HealthEventsRule:
|
|
491
|
+
Type: AWS::Events::Rule
|
|
492
|
+
DependsOn: GlobalSecurityAlertsTopicPolicy
|
|
493
|
+
Properties:
|
|
494
|
+
Tags:
|
|
495
|
+
- Key: Project
|
|
496
|
+
Value: MeyiConnect
|
|
497
|
+
- Key: Created_for
|
|
498
|
+
Value: L1 Security
|
|
499
|
+
- Key: aws-apn-id
|
|
500
|
+
Value: pc:eyl8vo7kcwv8k9qctzbathhiq
|
|
501
|
+
Description: AWS Health notifications
|
|
502
|
+
EventPattern:
|
|
503
|
+
source:
|
|
504
|
+
- aws.health
|
|
505
|
+
detail-type:
|
|
506
|
+
- AWS Health Event
|
|
507
|
+
State: ENABLED
|
|
508
|
+
Targets:
|
|
509
|
+
- Arn: !Ref GlobalSecurityAlertsTopic
|
|
510
|
+
Id: SNSTarget
|
|
511
|
+
|
|
512
|
+
RootAPICallsRule:
|
|
513
|
+
Type: AWS::Events::Rule
|
|
514
|
+
DependsOn: GlobalSecurityAlertsTopicPolicy
|
|
515
|
+
Properties:
|
|
516
|
+
Tags:
|
|
517
|
+
- Key: Project
|
|
518
|
+
Value: MeyiConnect
|
|
519
|
+
- Key: Created_for
|
|
520
|
+
Value: L1 Security
|
|
521
|
+
- Key: aws-apn-id
|
|
522
|
+
Value: pc:eyl8vo7kcwv8k9qctzbathhiq
|
|
523
|
+
Description: Capture any API call made by the Root user account in us-east-1
|
|
524
|
+
EventPattern:
|
|
525
|
+
detail-type:
|
|
526
|
+
- AWS API Call via CloudTrail
|
|
527
|
+
detail:
|
|
528
|
+
userIdentity:
|
|
529
|
+
type:
|
|
530
|
+
- Root
|
|
531
|
+
State: ENABLED
|
|
532
|
+
Targets:
|
|
533
|
+
- Arn: !Ref GlobalSecurityAlertsTopic
|
|
534
|
+
Id: SNSTarget
|
|
535
|
+
|
|
536
|
+
# ============================================================
|
|
537
|
+
# OUTPUTS
|
|
538
|
+
# ============================================================
|
|
539
|
+
|
|
540
|
+
Outputs:
|
|
541
|
+
TopicArn:
|
|
542
|
+
Description: Global security alerts SNS Topic ARN
|
|
543
|
+
Value: !Ref GlobalSecurityAlertsTopic
|
|
544
|
+
|
|
545
|
+
RulesDeployed:
|
|
546
|
+
Description: Rules deployed in this stack
|
|
547
|
+
Value: IAMAndOrganizationsSecurityEvents, ConsoleLogin, HealthEvents, RootAPICalls`;
|
|
548
|
+
//# sourceMappingURL=stackTemplates.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stackTemplates.js","sourceRoot":"","sources":["../../../../src/features/sources/cloudtrail/stackTemplates.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,UAAU,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oCA4SU,CAAC;AAErC,MAAM,CAAC,MAAM,iBAAiB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;uFAqPsD,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unified Stack CloudFormation template for CloudTrail security monitoring.
|
|
3
|
+
*
|
|
4
|
+
* The raw YAML is embedded here verbatim from meyi-security-monitoring.yaml.
|
|
5
|
+
* Two server-side substitutions are applied at serve time:
|
|
6
|
+
* __MEYI_WEBHOOK_URL__ → the source's authenticated webhook URL
|
|
7
|
+
* __MEYI_DEPLOYMENT_STATUS_URL__ → the deployment-status callback URL (token-gated)
|
|
8
|
+
* __MEYI_WEBHOOK_AUTH_TOKEN__ → webhook auth token
|
|
9
|
+
*/
|
|
10
|
+
export declare const ALL_AWS_ACTIVE_REGIONS: string;
|
|
11
|
+
export declare function buildCloudTrailCentralStackTemplate(input: {
|
|
12
|
+
webhookUrl: string;
|
|
13
|
+
webhookAuthToken?: string | null;
|
|
14
|
+
deploymentStatusUrl: string;
|
|
15
|
+
createCloudTrail: boolean;
|
|
16
|
+
deploymentMode?: 'Organizations' | 'Standalone';
|
|
17
|
+
targetAccounts?: string;
|
|
18
|
+
targetRegions?: string;
|
|
19
|
+
targetOUs?: string;
|
|
20
|
+
}): string;
|
|
21
|
+
//# sourceMappingURL=template.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../../../src/features/sources/cloudtrail/template.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,eAAO,MAAM,sBAAsB,QAUxB,CAAC;AAwqCZ,wBAAgB,mCAAmC,CAAC,KAAK,EAAE;IACzD,UAAU,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,mBAAmB,EAAE,MAAM,CAAC;IAC5B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,eAAe,GAAG,YAAY,CAAC;IAChD,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,MAAM,CAoBT"}
|