You can use AWS CloudFormation to automate the process of building infrastructure and manage all resources for your stacks, such as EC2 instances, load balancers, and security groups. This ensures that configurations do not drift with each new environment you spin up. Datadog has collaborated with AWS to create resources available on the CloudFormation registry, enabling users to reference the entire schema of a Datadog resource and automatically update it as new versions become available. You can use these resources to automate tasks such as enabling Datadog's AWS integration, creating monitors for your services, scheduling downtime for monitors, managing users, creating dashboards, and more. With these tools, you can create repeatable steps for provisioning and setting up monitoring for all of your resources, automating the setup process, including installing the Datadog Agent to collect metrics and logs from your instances.