![]() |
VOOZH | about |
Cost Optimization Automation lets you continuously act on Cloud Cost Recommendations without manual cleanup. You define an automation, scope it to the accounts, regions, and resources you want, and Datadog executes the recommended action on a recurring schedule. Each run can require human approval in Slack or Microsoft Teams before Datadog makes any changes, so your team stays in control of every change.
Each automation targets a single recommendation type and includes the following:
Recommendations acted on by an automation move to Completed automatically and contribute to realized savings on the Cloud Cost Recommendations page.
Cost Optimization Automation is different from the 1-click Workflow Automation actions described in Recommendation action-taking. 1-click actions execute a single change on demand from the recommendation side panel. Automations execute on a recurring schedule and act on every matching resource in scope.
Note: Cost Optimization Automation uses Datadog Workflows and incurs additional costs. For detailed pricing information, see the Workflow Automation pricing page.
Cost Optimization Automation supports the following AWS recommendation types:
| Recommendation type | Built-in safeguards |
|---|---|
| Terminate unattached EBS volume | An EBS snapshot is taken before each volume is deleted. |
| Transition S3 Standard objects to Amazon S3 Intelligent-Tiering | Reversible. The lifecycle configuration can be removed at any time. |
| Terminate unused RDS instance | A final RDS snapshot is taken before each instance is terminated. |
| Delete extra on-demand backups (DynamoDB) | The two most recent backups are preserved on every run. |
| Set CloudWatch logs retention policy | Reversible. The retention period can be adjusted or removed at any time. |
| Delete old EBS snapshots | Snapshots referenced by an AMI are skipped. |
To set up an automation on a recurring schedule for a recommendation type:
env, service, and team.Each recommendation type has built-in safeguards. For example, the Terminate Unattached EBS Volume automation takes an EBS snapshot before deleting each volume. Review the safeguards listed in the automation form and toggle the ones that are optional for your environment.
If Require approval before execution is enabled in the automation setup, Datadog posts in the designated channel a summary of the resources targeted on each run. The automation only runs after a user approves the request in the channel.
The Automations page lists every automation in your organization, grouped by recommendation type. From this page you can:
Open an automation and select the Activity tab to see past and upcoming executions. Each execution record includes:
Use the filters at the top of the Activity view to find executions by status, recommendation type, or date range.
Datadog records a new version of an automation each time it’s created, edited, enabled, disabled, or deleted. Open an automation and select the History tab to see who made each change and what changed. Use this view to audit changes or roll back to a previous version.
When an automation successfully acts on a resource, the corresponding recommendation moves to Completed and is labeled as completed by automation. Its savings count toward the realized savings totals on the Cloud Cost Recommendations page.
If you set a recommendation to Dismissed, automations skip it on future runs until the dismissal expires.
Additional helpful documentation, links, and articles:
| |