Skip to content

Conversation

@heyronhay
Copy link
Collaborator

Summary

This PR implements AWS Integration configuration import functionality for datadog-sync-cli, allowing users to import AWS Integration configurations from source Datadog organizations.

What's Changed

New Features

  • New integrations resource type with AWS subtype support (name=aws)
  • AWS Integration import command - retrieve configurations by AWS account ID
  • Comprehensive filtering support - filter by integration type, account ID, or other attributes

Implementation Details

  • Extends BaseResource following existing codebase patterns
  • Uses AWS Integration API endpoints (/api/v1/integration/aws)
  • Handles multiple API response formats (accounts array, list, single object)
  • Implements proper error handling (404, 403, 500 status codes)
  • Excludes sensitive fields (secret_access_key) from state files for security
  • Supports concurrent processing for performance

Usage Examples

# Import all AWS integrations
datadog-sync import --resources="integrations" \
    --source-api-key="..." --source-app-key="..."

# Import only AWS integrations (with filtering)
datadog-sync import --resources="integrations" \
    --filter='Type=integrations;Name=name;Value=aws' \
    --source-api-key="..." --source-app-key="..."

# Import specific AWS integration by account ID
datadog-sync import --resources="integrations" \
    --filter='Type=integrations;Name=account_id;Value=123456789012' \
    --source-api-key="..." --source-app-key="..."

heyronhay and others added 3 commits November 4, 2025 09:17
🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
- Add Integrations resource class with full CRUD operations
- Implement import_resource method for AWS integration by account ID
- Add comprehensive unit tests with mocking
- Add integration test following existing patterns
- Support filtering by AWS subtype (name=aws)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@heyronhay heyronhay requested a review from a team as a code owner November 4, 2025 20:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants