이 페이지는 아직 한국어로 제공되지 않습니다. 번역 작업 중입니다. 현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우 언제든지 연락주시기 바랍니다.
Setup
The fastest way to configure Storage Management is through the Enable Buckets page, where you can enable S3 inventory and configure monitoring for multiple buckets at once.
As an alternative, you can set up S3 inventory manually or with Terraform and enable Storage Management using your existing setup. For details, see Existing S3 Inventory.
1. Enable Amazon S3 Integration and Resource collection for all the AWS accounts you want to monitor
2. Enable S3 Inventory to get prefix-level monitoring
- Source bucket: The S3 bucket you want to monitor with Storage Management - Destination bucket: Used to store inventory reports (one per AWS region, can be reused cross-account)
Add all S3 permissions required for Storage Management to your Datadog IAM policy. Storage Management relies on permissions in AWS Integration IAM policy and Resource Collection IAM policy to bring together bucket details. In addition, the following 3 permissions allows Datadog to enable S3 inventory on your source buckets and read the generated reports from the destination buckets.
s3:PutInventoryConfiguration
s3:GetObject (scoped to the destination bucket(s))
s3:ListBucket (scoped to the destination bucket(s))
Example IAM policy with all required permissions for Storage Management:
On the Enable it for me tab, select the regions or accounts you want to enable and assign a destination bucket per region or per account to store S3 Inventory reports. You can either use an existing bucket or create one in AWS.
If you select a destination bucket containing inventories from multiple source buckets, all of those source buckets become enabled for monitoring.
The destination buckets must allow the source buckets to write inventory data. See Creating a destination bucket policy in the AWS documentation for details.
Complete the inventory configuration. The first inventory report may take up to 24 hours to generate.
3. Enable S3 Access Logs for prefix-level request and latency metrics
To get prefix-level access metrics including request counts, server-side latency, and cold data identification for cost optimization, follow these additional steps:
Set up the Datadog Lambda Forwarder (if not already configured):
4. Return to the Storage Management page to see any new buckets
The inventory generation process starts in AWS within 24 hours of the first report. Data from your buckets is visible after this period.
You can also set up Storage Management using the provided CloudFormation templates. This process involves two steps:
1. Configure inventory generation
This template configures your existing S3 bucket to generate inventory reports, which Datadog uses to generate detailed metrics about your bucket prefixes.
In AWS CloudFormation, click Create stack in the top right corner and select With existing resources (import resources).
In the Specify template step, select Upload a template file.
Click Choose file and select the source-bucket-inventory-cfn.yaml file, then click Next.
Enter the bucket name you want AWS to start generating inventories for, and click Next.
Fill in the required parameters:
DestinationBucketName: The bucket for storing inventory files. Note: You must only use one destination bucket for all inventory files generated in an AWS account.
SourceBucketName: The bucket you want to monitor and start generating inventory files for
Optional parameters:
SourceBucketPrefix: (Optional) Limit monitoring to a specific path in the source bucket
DestinationBucketPrefix: Specific path within the destination bucket. Ensure this path doesn’t include trailing slashes (/)
Click Next.
Wait for AWS to locate your source bucket, and click Import resources in the bottom right corner.
Notes:
This CloudFormation template can be rolled back, but rolling back doesn’t delete the created resources. This is to ensure the existing bucket doesn’t get deleted. You can manually delete the inventory configurations by going on the Management tab in the bucket view.
In AWS CloudFormation, click Create stack in the top right corner and select With new resources (standard).
In the Specify template step, select Upload a template file.
Click Choose file and select the cloud-inventory-policies-cfn.yaml file, then click Next.
Fill in the required parameters:
DatadogIntegrationRole: Your Datadog AWS integration role name
DestinationBucketName: The name of the bucket that receives your inventory files. Note: You must only use one destination bucket for all inventory files generated in an AWS account.
SourceBucketName: The name of the bucket you want to start generating inventory files for
Optional parameters:
SourceBucketPrefix: This parameter limits the inventory generation to a specific prefix in the source bucket
DestinationBucketPrefix: If you want to reuse an existing bucket as the destination, this parameter allows the inventory files to be shipped to a specific prefix in that bucket. Ensure that any prefixes do not include trailing slashes (/)
On the Review and create step, verify the parameters have been entered correctly, and click Submit.
Finish setting up S3 buckets for Storage Management
After completing the CloudFormation setup, enable buckets for Storage Management from the Datadog UI:
The destination bucket can be your source bucket, but for security and logical separation, many organizations use a separate bucket.
The optional_fields section is required for Datadog prefix metrics and cost optimization insights like duplicate objects.
2. Finish setting up S3 buckets for Storage Management in Datadog
After the inventory configuration is set up and your inventory files begin appearing in the destination bucket, enable buckets for Storage Management from the Datadog UI:
In Step 2, under Enable S3 Inventory to get prefix level monitoring, select I enabled it myself.
Choose the destination buckets that contain the inventory files for the source buckets you want to monitor and click Confirm.
Note: If you don’t see a list of your existing destination buckets under I enabled it myself, you need to provide required S3 permissions as part of AWS Resource Collection.
Use modules for complex setups
If you need to manage multiple buckets, complex inventory policies, encryption, or cross-account setups, you can use the terraform-aws-s3-bucket module.
Troubleshooting
S3 Inventory files are delivered daily, and may take up to 24 hours to appear after setup.
Ensure IAM permissions allow S3 to write inventory files to your destination bucket.
If cross-account access is needed, confirm that the inventory destination prefix (datadog-inventory/ in the example) is correct and accessible to Datadog.
To manually set up the required Amazon S3 Inventory and related configuration, follow these steps:
1. Create a destination bucket
Create an S3 bucket to store your inventory files. This bucket acts as the central location for inventory reports.
Note: You must only use one destination bucket for all inventory files generated in an AWS account.
Create a prefix within the destination bucket (optional).
2. Configure the bucket and integration role policies
Ensure the Datadog AWS integration role has s3:GetObject and s3:ListBucket permissions on the destination bucket. These permissions allow Datadog to read the generated inventory files.
Follow the steps in the Amazon S3 user guide to add a bucket policy to your destination bucket allowing write access (s3:PutObject) from your source buckets.
Object versions: Datadog recommends selecting Include all versions (required to see non-current version metrics)
Destination: Select the common destination bucket for inventory files in your AWS account. For example, if the bucket is named destination-bucket, enter s3://your-destination-bucket
Note: If you want to use a prefix on the destination bucket, add this as well
Frequency: Datadog recommends choosing Daily. This setting determines how often your prefix-level metrics are updated in Datadog
Output format: CSV
Status: Enabled
Server-side encryption: Don’t specify an encryption key
Select all the available Additional metadata fields. Minimally, the following fields are required:
Note: Review Amazon S3 pricing for costs related to inventory generation.
Post-setup steps
After the inventory configuration is set up and your inventory files begin appearing in the destination bucket, enable buckets for Storage Management from the Datadog UI:
In Step 2, under Enable S3 Inventory to get prefix level monitoring, select I enabled it myself.
Choose the destination buckets that contain the inventory files for the source buckets you want to monitor and click Confirm.
Note: If you don’t see a list of your existing destination buckets under I enabled it myself, you need to provide required S3 permissions as part of AWS Resource Collection.
If you have already configured S3 Inventory for the buckets you want to monitor, enable buckets for Storage Monitoring from the Datadog UI.
Note: Storage Management only supports CSV format for inventories.
In Step 2, under Enable S3 Inventory to get prefix level monitoring, select I enabled it myself.
Choose the destination buckets that contain the inventory files for the source buckets you want to monitor and click Confirm.
Note: If you don’t see a list of your existing destination buckets under I enabled it myself, you need to provide required S3 permissions as part of AWS Resource Collection.
Validation
To verify your setup:
Wait for the first inventory report to generate (up to 24 hours for daily inventories).
Navigate to Infrastructure > Storage Management to see if the bucket(s) you configured are showing in the explorer list when “Monitored buckets” is selected.
Troubleshooting
If you don’t see data for buckets you set up for Storage Management:
Check the destination bucket for inventory files. If there are no inventories, ensure the source buckets have permission to write to the destination bucket.
Check the AWS integration page to confirm you’re not missing any S3-related permissions as part of Resource Collection. Ensure all S3-related permission are granted.
Confirm the Datadog integration can access the inventory files: ensure s3:GetObject and s3:ListBucket permissions for the destination buckets are set on the Datadog AWS Integration Role.
If you’re still encountering issues, contact Datadog with your bucket details, AWS account ID, and Datadog org name.