lendi-au / terraform-provider-snyk

Terraform Provider for configuring Snyk Organizations and projects.
https://registry.terraform.io/providers/lendi-au/snyk
Mozilla Public License 2.0
6 stars 5 forks source link

Update organization resource schema #66

Closed johnjelinek closed 1 year ago

johnjelinek commented 1 year ago

Include additional fields from the API: created, slug, url. Fixes #65.

paxmarc commented 1 year ago

Thanks @johnjelinek - will push out a release 👍

johnjelinek commented 1 year ago

@paxmarc: I get this from the API:

{
  "id": "d...a",
  "name": "S...g",
  "slug": "s...8",
  "url": "h...8",
  "created": "2021-08-16T21:32:21.692Z"
}
      ~ key     = {
          + created      = null
            id           = "d...a"
            name         = "S...g"
          + slug         = "s...8"
          + url          = "https://app.snyk.io/org/s...8"
        }

It looks like everything is working, except for created. I'm not sure why.

johnjelinek commented 1 year ago

oic

paxmarc commented 1 year ago

Yeah 😅 could just be a typing issue? I'll have a look. Also haven't updated the repo in a while, so needs some housekeeping on the automation side.

johnjelinek commented 1 year ago

@paxmarc: I have fixed this in #67.