diff --git a/cfn-parameters.json b/cfn-parameters.json index 9590275..5695d78 100644 --- a/cfn-parameters.json +++ b/cfn-parameters.json @@ -1,6 +1,6 @@ { + "ObservabilityOu": "ou-c834-7gp1wa8v", "TargetRegions": "us-east-1", - "DatadogShipperAwsAccountdId": "481665128499", "DatadogHttpEndpointUrl": "https://aws-kinesis-http-intake.logs.datadoghq.com/v1/input", "DatadogApiKey": $secrets.DATADOG_API_KEY } \ No newline at end of file diff --git a/stacksets/datadog-shipping/stackset.yaml b/stacksets/datadog-shipping/stackset.yaml index 039aac1..6ea2ea4 100644 --- a/stacksets/datadog-shipping/stackset.yaml +++ b/stacksets/datadog-shipping/stackset.yaml @@ -6,7 +6,7 @@ Transform: AWS::Serverless-2016-10-31 Description: AWS account infrastructure stackset (datadog) Parameters: - TargetAccounts: + ObservabilityOu: Type: CommaDelimitedList Description: List of OUs TargetRegions: @@ -34,7 +34,7 @@ Resources: ParameterValue: !Ref DatadogApiKey StackInstancesGroup: - DeploymentTargets: - Accounts: !Ref TargetAccounts + OrganizationalUnitIds: !Ref ObservabilityOu Regions: !Ref TargetRegions AutoDeployment: Enabled: true diff --git a/template.yaml b/template.yaml index ac112b5..9c0ec71 100644 --- a/template.yaml +++ b/template.yaml @@ -6,9 +6,9 @@ Parameters: TargetRegions: Type: String Description: List of OUs - DatadogShipperAwsAccountdId: + ObservabilityOu: Type: String - Description: Datadog Account ID + Description: OU of observability accounts DatadogHttpEndpointUrl: Type: String AllowedValues: @@ -25,7 +25,7 @@ Resources: Properties: Location: "./stacksets/datadog-shipping/stackset.yaml" Parameters: - TargetAccounts: !Ref DatadogShipperAwsAccountdId + ObservabilityOu: !Ref ObservabilityOu TargetRegions: !Ref TargetRegions DatadogHttpEndpointUrl: !Ref DatadogHttpEndpointUrl DatadogApiKey: !Ref DatadogApiKey