Skip to content

Commit

Permalink
Split OAM sink from datadog
Browse files Browse the repository at this point in the history
  • Loading branch information
tmclaugh committed Aug 17, 2024
1 parent f3c0042 commit 7eb75ee
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 28 deletions.
42 changes: 42 additions & 0 deletions stacksets/cloudwtach-oam-sink/stackset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
Metadata:
OamSink:
localTemplateFile: &oam_sink_template_body ./template.yaml

AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Description: AWS account infrastructure stackset (CW oam sink)

Parameters:
ObservabilityOu:
Type: CommaDelimitedList
Description: List of OUs
TargetRegions:
Type: CommaDelimitedList
Description: Regions to deploy to
AwsOrgId:
Type: String

Resources:
CloudWatchOamSinkStacxkSet:
Type: AWS::CloudFormation::StackSet
Properties:
StackSetName: CloudWatchOamSink
Description: CloudWatch OAM Sink
Parameters:
- ParameterKey: AwsOrgId
ParameterValue: !Ref AwsOrgId
StackInstancesGroup:
- DeploymentTargets:
OrganizationalUnitIds: !Ref ObservabilityOu
Regions: !Ref TargetRegions
AutoDeployment:
Enabled: true
RetainStacksOnAccountRemoval: false
ManagedExecution:
Active: true
OperationPreferences:
RegionConcurrencyType: PARALLEL
FailureToleranceCount: 1
MaxConcurrentCount: 5
PermissionModel: SERVICE_MANAGED
TemplateBody: *oam_sink_template_body
File renamed without changes.
28 changes: 0 additions & 28 deletions stacksets/datadog-shipping/stackset.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
Metadata:
DatadogLogShipping:
localTemplateFile: &dd_logs_template_body ./logs-template.yaml
OamSink:
localTemplateFile: &oam_sink_template_body ./oam-sink-template.yaml

AWSTemplateFormatVersion: '2010-09-09'
Transform: AWS::Serverless-2016-10-31
Expand All @@ -15,8 +13,6 @@ Parameters:
TargetRegions:
Type: CommaDelimitedList
Description: Regions to deploy to
AwsOrgId:
Type: String
DatadogHttpEndpointUrl:
Type: String
DatadogApiKey:
Expand Down Expand Up @@ -51,27 +47,3 @@ Resources:
MaxConcurrentCount: 5
PermissionModel: SERVICE_MANAGED
TemplateBody: *dd_logs_template_body

CloudWatchOamSinkStacxkSet:
Type: AWS::CloudFormation::StackSet
Properties:
StackSetName: CloudWatchOamSink
Description: CloudWatch OAM Sink
Parameters:
- ParameterKey: AwsOrgId
ParameterValue: !Ref AwsOrgId
StackInstancesGroup:
- DeploymentTargets:
OrganizationalUnitIds: !Ref ObservabilityOu
Regions: !Ref TargetRegions
AutoDeployment:
Enabled: true
RetainStacksOnAccountRemoval: false
ManagedExecution:
Active: true
OperationPreferences:
RegionConcurrencyType: PARALLEL
FailureToleranceCount: 1
MaxConcurrentCount: 5
PermissionModel: SERVICE_MANAGED
TemplateBody: *oam_sink_template_body
8 changes: 8 additions & 0 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,12 @@ Resources:
TargetRegions: !Ref TargetRegions
DatadogHttpEndpointUrl: !Ref DatadogHttpEndpointUrl
DatadogApiKey: !Ref DatadogApiKey

OamSinkStackSet:
Type: AWS::Serverless::Application
Properties:
Location: "./stacksets/cloudwatch-oam-sink/stackset.yaml"
Parameters:
ObservabilityOu: !Ref ObservabilityOu
TargetRegions: !Ref TargetRegions
AwsOrgId: !Ref AwsOrgId

0 comments on commit 7eb75ee

Please sign in to comment.