Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Support for Datadog Powerpacks #1875

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

cameres
Copy link

@cameres cameres commented May 8, 2024

Adds support for generating datadog_powerpack resources via. powerpack. datadog_powerpack is documented here.

I've had the best luck either filtering for a specific set of powerpack ids (visible in dashboard json) like the following...

terraformer import datadog \
  --resources=powerpack \
  --filter powerpack="<id1>:...:<idN>"

... or by filtering down using the "Search Categories". Example, if I configure search category "process", I can filter down to powerpacks with that search category with this filter...

terraformer import datadog --resources=powerpack --filter="Name=tags;Value='tag:<search category>'"

I chose to use ListPowerpacksWithPagination, as I noticed that ListPowerpacks appears to set a default to 25 records. I don't see where this is configured. ListPowerpacksWithPagination seemed cleaner to use to me, as it manages page offsets.

This feature was requested in #1841.

@cameres cameres marked this pull request as ready for review May 8, 2024 20:13
@cameres
Copy link
Author

cameres commented May 8, 2024

👋 @sergeylanzman mind taking a look at this PR or redirect me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants