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

[Feature Request] External log archive resource #466

Closed
opalmer opened this issue Apr 4, 2020 · 4 comments
Closed

[Feature Request] External log archive resource #466

opalmer opened this issue Apr 4, 2020 · 4 comments

Comments

@opalmer
Copy link

opalmer commented Apr 4, 2020

Hi,

It appears that external log archives aren't currently supported by the Terraform provider. It also looks like there's no API documentation for archives right now but DataDog's portal uses an API under the hood (example below) so I'm assuming it could be turned into a Terraform resource potentially.

Couple of questions here:

  • Are there any plans to support creating external log archives with Terraform?
  • If someone were to contribute to this effort, is there documentation for the API DataDog is using to manage external log archives?

Create archive

Request

POST https://app.datadoghq.com/api/v1/logs/external_archives
{
  "name": "test-archive",
  "query": "<REDACTED>",
  "destination": {
    "type": "s3",
    "bucket": "<REDACTED>,
    "path": "",
    "integration": {
      "accountId": "<REDACTED>",
      "roleName": "<REDACTED>"
    }
  },
  "_authentication_token": "<REDACTED>"
}

Response

{
  "id": "<REDACTED>",
  "name": "test-archive",
  "state": "UNKNOWN",
  "query": "<REDACTED>",
  "enabled": true,
  "destination": {
    "bucket": "<REDACTED>",
    "path": "",
    "integration": {
      "accountId": "<REDACTED>",
      "roleName": "<REDACTED>"
    },
    "type": "s3"
  }
}
@PierreVanRoy
Copy link

Hello,

Thanks for reaching us.

Are there any plans to support creating external log archives with Terraform?

We are currently working on the Archive APIs (including Terraform support).
We are waiting to have everything properly tested to update our documentation.
I have no precise ETA for this but it will be available by the end of the quarter.

If someone were to contribute to this effort, is there documentation for the API DataDog is using to manage external log archives?

As said above, the documentation will come with the official support of API related external Archive.

Pierre

@jaredready
Copy link

Another interested party here. We're just a few days out from the end of the quarter. Is this still on track to be released soon? Can the community offer any help?

Thanks!

@jirikuncar
Copy link
Contributor

@jaredready there is already a WIP PR #544.

@gzussa
Copy link
Contributor

gzussa commented Jun 26, 2020

This feature will be part of v2.11.0 we will release next week.

@gzussa gzussa closed this as completed Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants