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

[datadog_service_definitions] Adds basic data for service definitions #2277

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

Conversation

KieranJamess
Copy link

@KieranJamess KieranJamess commented Feb 9, 2024

Adds data block for service definitions with basic outputs to state file until further improvements are made on the datadog api client. Output

"mode": "data",
      "type": "datadog_service_definitions",
      "name": "all",
      "provider": "provider[\"registry.terraform.io/datadog/datadog\"]",
      "instances": [
        {
          "schema_version": 0,
          "attributes": {
            "id": "3a79d017f331d88bbe77747f68665e2493404528968d9739403f88f7b561fd2c",
            "retrieve_all": true,
            "service_definitions": [
              {
                "application": "x",
                "description": "service1 description",
                "id": "3c6f4add-0b59-4ddd-8a2a-1dad78ea7ff5",
                "service": "service1",
                "team": "sre"
              },
              {
                "application": "x",
                "description": "service2 description",
                "id": "bb17f2b7-6bf2-46ab-b86b-18dd0ffbe11b",
                "service": "service2",
                "team": "sre"
              },
              {
                "application": "x",
                "description": "service3 description",
                "id": "d72532b7-eb99-4dbb-bba6-7b1e34ca1d37",
                "service": "service3",
                "team": "dev"
              }
            ]
          },
          "sensitive_attributes": []
        }
      ]
    },

I did try testing it but It kept getting skipped. Not sure what I've done wrong here. Feedback appreciated
image

@KieranJamess KieranJamess requested review from a team as code owners February 9, 2024 23:50
@KieranJamess KieranJamess changed the title Kieranjamess/service definitions data [datadog_service_definitions] Adds basic data for service definitions Feb 9, 2024
@KieranJamess KieranJamess marked this pull request as draft February 10, 2024 00:03
@KieranJamess KieranJamess marked this pull request as ready for review February 10, 2024 00:39
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