Skip to content

AWS account integration lacking Cloud Cost Management configuration option? #2807

@m-franke-tqgg

Description

@m-franke-tqgg

Is your feature request related to a problem? Please describe.
I had a look into generating the AWS Account Integration feature in the V1 client and learned about the ExtendedResourceCollection, which, when activated, will populate the service catalog and I know how to activate the CSPM feature.

But the third option in the resource collection tab is "Cloud Cost Management", which we currently consider as an option. The problem is I did not see an option in the datadogV1.AWSAccount{} nor in its datadogV2.AWSAccountCreateRequest{} an option for activating this flag.

I found the CloudCostManagement API in the datadogV2 package, but it's still unclear to me how to activate the general feature. Are the two versions of AWS Account API lacking this feature? In this I am unsure if this should be a feature request or a bug report or a support case?

Describe the solution you'd like
A consistent API for creating and managing an AWS account integration, which works like the CSPM as it is grouped in the same configuration object in the web console.

With an option like CloudCostManagementEnabled similar to the CspmResourceCollectionEnabled:

	body := datadogV1.AWSAccount{
		AccountId: datadog.PtrString(accountData.AccountId),
		AccountSpecificNamespaceRules: map[string]bool{
			"auto_scaling": true,
			"sqs":          true,
		},
                CloudCostManagementEnabled: datadog.PtrBool(true),
		CspmResourceCollectionEnabled: datadog.PtrBool(true),
		ExcludedRegions: []string{
			"us-east-1",
		},
		ExtendedResourceCollectionEnabled: datadog.PtrBool(true),
		HostTags: []string{
			awsAccount,
			awsAccountName,
			awsAccountEnv,
		},
		MetricsCollectionEnabled: datadog.PtrBool(true),
		RoleName:                 datadog.PtrString("DatadogIntegrationRole"),
	}

This would create the option to control the feature at the same config level, as I can control all settings for the account integration.

Describe alternatives you've considered
As I haven't found any other option yet to activate the cloud cost management feature, I haven't considered other options.

Additional context
I would like to be able to control the account integrations in a concise and central way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions