terraform-provider-github icon indicating copy to clipboard operation
terraform-provider-github copied to clipboard

github_emu_group_mapping - failed with time parsing

Open shibachu opened this issue 2 years ago • 9 comments

Terraform Version

v1.2.1

Affected Resource(s)

Please list the resources as a list:

  • github_emu_group_mapping

Expected Behavior

Success

Actual Behavior

github_emu_group_mapping.example_emu_group_mapping: Creating... Error: parsing time ""2022-07-13 15:06:32 -0400"" as ""2006-01-02T15:04:05Z07:00"": cannot parse " 15:06:32 -0400"" as "T"

Note: Team is linked to the emu group but failing with above error

Steps to Reproduce

resource "github_team" "some_team" { name = "some-team" description = "Some cool team" privacy = "closed" } resource "github_emu_group_mapping" "example_emu_group_mapping" { team_slug = "some-team" group_id = 5 depends_on = [github_team.some_team] } Please list the steps required to reproduce the issue, for example:

  1. terraform apply

shibachu avatar Aug 09 '22 17:08 shibachu

Would you mind sharing a little more details on how this occurred? Did it just start happening, or has this happened to you all along? Were you able to create the group mapping originally using Terraform? Can you share a log snippet if you set TF_LOG=DEBUG and then attempt to create the mapping?

kfcampbell avatar Aug 10 '22 00:08 kfcampbell

We just started consuming it - this is our first execution. FYI - the mapping was configured, the error is parsing the result. Detail log of terraform apply:

2022-08-10T13:51:25.660Z [INFO] Terraform version: 1.2.1 2022-08-10T13:51:25.660Z [DEBUG] using github.com/hashicorp/go-tfe v1.0.0 2022-08-10T13:51:25.660Z [DEBUG] using github.com/hashicorp/hcl/v2 v2.12.0 2022-08-10T13:51:25.660Z [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2 2022-08-10T13:51:25.660Z [DEBUG] using github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734
2022-08-10T13:51:25.660Z [DEBUG] using github.com/zclconf/go-cty v1.10.0 2022-08-10T13:51:25.660Z [INFO] Go runtime version: go1.18.1 2022-08-10T13:51:25.660Z [INFO] CLI args: []string{"/usr/bin/terraform", "apply"} 2022-08-10T13:51:25.660Z [DEBUG] Attempting to open CLI config file: /home/clouduser/.terraformrc 2022-08-10T13:51:25.660Z [DEBUG] File doesn't exist, but doesn't need to. Ignoring. 2022-08-10T13:51:25.661Z [DEBUG] ignoring non-existing provider search directory terraform.d/plugins 2022-08-10T13:51:25.661Z [DEBUG] ignoring non-existing provider search directory /home/clouduser/.terraform.d/plugins 2022-08-10T13:51:25.661Z [DEBUG] ignoring non-existing provider search directory /home/clouduser/.local/share/terraform/plugins 2022-08-10T13:51:25.662Z [DEBUG] ignoring non-existing provider search directory /usr/local/share/terraform/plugins 2022-08-10T13:51:25.662Z [DEBUG] ignoring non-existing provider search directory /usr/share/terraform/plugins 2022-08-10T13:51:25.663Z [INFO] CLI command args: []string{"apply"} 2022-08-10T13:51:25.748Z [DEBUG] New state was assigned lineage "ffeea128-8250-7cbd-c398-28a91fa52071" 2022-08-10T13:51:27.660Z [DEBUG] checking for provisioner in "." 2022-08-10T13:51:27.662Z [DEBUG] checking for provisioner in "/usr/bin" 2022-08-10T13:51:27.703Z [INFO] backend/local: starting Apply operation 2022-08-10T13:51:27.803Z [DEBUG] backend/local: will prompt for input of unset required variables [githubae_org] 2022-08-10T13:51:27.803Z [DEBUG] command: asking for input: "var.githubae_org" var.githubae_org Enter a value: dev

2022-08-10T13:51:29.873Z [DEBUG] created provider logger: level=debug
2022-08-10T13:51:29.873Z [INFO] provider: configuring client automatic mTLS 2022-08-10T13:51:29.897Z [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/github/4.28.0/linux_amd64/terraform-provider-github_v4.28.0 args=[.terraform/providers/registry.terraform.io/hashicorp/github/4.28.0/linux_amd64/terraform-provider-github_v4.28.0] 2022-08-10T13:51:29.916Z [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/github/4.28.0/linux_amd64/terraform-provider-github_v4.28.0 pid=4202 2022-08-10T13:51:29.917Z [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/github/4.28.0/linux_amd64/terraform-provider-github_v4.28.0 2022-08-10T13:51:31.405Z [INFO] provider.terraform-provider-github_v4.28.0: configuring server automatic mTLS: timestamp=2022-08-10T13:51:31.405Z 2022-08-10T13:51:31.437Z [DEBUG] provider: using plugin: version=5 2022-08-10T13:51:31.437Z [DEBUG] provider.terraform-provider-github_v4.28.0: plugin address: address=/tmp/plugin2993094472 network=unix timestamp=2022-08-10T13:51:31.432Z 2022-08-10T13:51:31.508Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio" 2022-08-10T13:51:31.522Z [DEBUG] No provider meta schema returned 2022-08-10T13:51:31.539Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/github/4.28.0/linux_amd64/terraform-provider-github_v4.28.0 pid=4202 2022-08-10T13:51:31.539Z [DEBUG] provider: plugin exited 2022-08-10T13:51:31.560Z [DEBUG] created provider logger: level=debug 2022-08-10T13:51:31.560Z [INFO] provider: configuring client automatic mTLS 2022-08-10T13:51:31.589Z [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/integrations/github/4.28.0/linux_amd64/terraform-provider-github_v4.28.0 args=[.terraform/providers/registry.terraform.io/integrations/github/4.28.0/linux_amd64/terraform-provider-github_v4.28.0] 2022-08-10T13:51:31.612Z [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/integrations/github/4.28.0/linux_amd64/terraform-provider-github_v4.28.0 pid=4211 2022-08-10T13:51:31.612Z [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/integrations/github/4.28.0/linux_amd64/terraform-provider-github_v4.28.0 2022-08-10T13:51:33.039Z [INFO] provider.terraform-provider-github_v4.28.0: configuring server automatic mTLS: timestamp=2022-08-10T13:51:33.036Z 2022-08-10T13:51:33.061Z [DEBUG] provider: using plugin: version=5 2022-08-10T13:51:33.061Z [DEBUG] provider.terraform-provider-github_v4.28.0: plugin address: address=/tmp/plugin1330167301 network=unix timestamp=2022-08-10T13:51:33.061Z 2022-08-10T13:51:33.133Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio" 2022-08-10T13:51:33.155Z [DEBUG] No provider meta schema returned 2022-08-10T13:51:33.169Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/integrations/github/4.28.0/linux_amd64/terraform-provider-github_v4.28.0 pid=4211 2022-08-10T13:51:33.169Z [DEBUG] provider: plugin exited 2022-08-10T13:51:33.169Z [DEBUG] Building and walking validate graph 2022-08-10T13:51:33.170Z [DEBUG] ProviderTransformer: "github_emu_group_mapping.example_emu_group_mapping" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/github"]
2022-08-10T13:51:33.170Z [DEBUG] ProviderTransformer: "github_team.some_team" (*terraform.NodeValidatableResource) needs provider["registry.terraform.io/hashicorp/github"] 2022-08-10T13:51:33.170Z [DEBUG] pruning unused provider["registry.terraform.io/integrations/github"] 2022-08-10T13:51:33.170Z [DEBUG] ReferenceTransformer: "var.githubae_org" references: [] 2022-08-10T13:51:33.170Z [DEBUG] ReferenceTransformer: "provider["registry.terraform.io/hashicorp/github"]" references: [] 2022-08-10T13:51:33.170Z [DEBUG] ReferenceTransformer: "github_team.some_team" references: [] 2022-08-10T13:51:33.170Z [DEBUG] ReferenceTransformer: "github_emu_group_mapping.example_emu_group_mapping" references: [github_team.some_team] 2022-08-10T13:51:33.170Z [DEBUG] Starting graph walk: walkValidate 2022-08-10T13:51:33.196Z [DEBUG] created provider logger: level=debug 2022-08-10T13:51:33.196Z [INFO] provider: configuring client automatic mTLS 2022-08-10T13:51:33.220Z [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/github/4.28.0/linux_amd64/terraform-provider-github_v4.28.0 args=[.terraform/providers/registry.terraform.io/hashicorp/github/4.28.0/linux_amd64/terraform-provider-github_v4.28.0] 2022-08-10T13:51:33.246Z [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/github/4.28.0/linux_amd64/terraform-provider-github_v4.28.0 pid=4219 2022-08-10T13:51:33.246Z [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/github/4.28.0/linux_amd64/terraform-provider-github_v4.28.0 2022-08-10T13:51:34.372Z [INFO] provider.terraform-provider-github_v4.28.0: configuring server automatic mTLS: timestamp=2022-08-10T13:51:34.372Z 2022-08-10T13:51:34.397Z [DEBUG] provider: using plugin: version=5 2022-08-10T13:51:34.397Z [DEBUG] provider.terraform-provider-github_v4.28.0: plugin address: address=/tmp/plugin1797190504 network=unix timestamp=2022-08-10T13:51:34.397Z 2022-08-10T13:51:34.462Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio" 2022-08-10T13:51:34.479Z [DEBUG] No provider meta schema returned 2022-08-10T13:51:34.508Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/github/4.28.0/linux_amd64/terraform-provider-github_v4.28.0 pid=4219 2022-08-10T13:51:34.508Z [DEBUG] provider: plugin exited 2022-08-10T13:51:34.508Z [INFO] backend/local: apply calling Plan 2022-08-10T13:51:34.508Z [DEBUG] Building and walking plan graph for NormalMode 2022-08-10T13:51:34.509Z [DEBUG] ProviderTransformer: "github_team.some_team (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/hashicorp/github"] 2022-08-10T13:51:34.509Z [DEBUG] ProviderTransformer: "github_emu_group_mapping.example_emu_group_mapping (expand)" (*terraform.nodeExpandPlannableResource) needs provider["registry.terraform.io/hashicorp/github"] 2022-08-10T13:51:34.509Z [DEBUG] pruning unused provider["registry.terraform.io/integrations/github"] 2022-08-10T13:51:34.509Z [DEBUG] ReferenceTransformer: "provider["registry.terraform.io/hashicorp/github"]" references: [] 2022-08-10T13:51:34.509Z [DEBUG] ReferenceTransformer: "github_team.some_team (expand)" references: [] 2022-08-10T13:51:34.510Z [DEBUG] ReferenceTransformer: "github_emu_group_mapping.example_emu_group_mapping (expand)" references: [github_team.some_team (expand)] 2022-08-10T13:51:34.510Z [DEBUG] ReferenceTransformer: "var.githubae_org" references: [] 2022-08-10T13:51:34.510Z [DEBUG] Starting graph walk: walkPlan 2022-08-10T13:51:34.538Z [DEBUG] created provider logger: level=debug 2022-08-10T13:51:34.538Z [INFO] provider: configuring client automatic mTLS 2022-08-10T13:51:34.570Z [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/github/4.28.0/linux_amd64/terraform-provider-github_v4.28.0 args=[.terraform/providers/registry.terraform.io/hashicorp/github/4.28.0/linux_amd64/terraform-provider-github_v4.28.0] 2022-08-10T13:51:34.596Z [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/github/4.28.0/linux_amd64/terraform-provider-github_v4.28.0 pid=4228 2022-08-10T13:51:34.597Z [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/github/4.28.0/linux_amd64/terraform-provider-github_v4.28.0 2022-08-10T13:51:36.069Z [INFO] provider.terraform-provider-github_v4.28.0: configuring server automatic mTLS: timestamp=2022-08-10T13:51:36.069Z 2022-08-10T13:51:36.099Z [DEBUG] provider.terraform-provider-github_v4.28.0: plugin address: address=/tmp/plugin3778369970 network=unix timestamp=2022-08-10T13:51:36.098Z 2022-08-10T13:51:36.102Z [DEBUG] provider: using plugin: version=5 2022-08-10T13:51:36.174Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio" 2022-08-10T13:51:36.189Z [DEBUG] No provider meta schema returned 2022-08-10T13:51:36.209Z [WARN] ValidateProviderConfig from "provider["registry.terraform.io/hashicorp/github"]" changed the config value, but that value is unused 2022-08-10T13:51:36.211Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022/08/10 13:51:36 [INFO] Selecting owner from GITHUB_OWNER environment variable 2022-08-10T13:51:36.211Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022/08/10 13:51:36 [INFO] Setting write_delay_ms to 1000 2022-08-10T13:51:36.211Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022/08/10 13:51:36 [DEBUG] Setting read_delay_ms to 0 2022-08-10T13:51:36.245Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022/08/10 13:51:36 [DEBUG] Github API Request Details: 2022-08-10T13:51:36.245Z [DEBUG] provider.terraform-provider-github_v4.28.0: ---[ REQUEST ]--------------------------------------- 2022-08-10T13:51:36.245Z [DEBUG] provider.terraform-provider-github_v4.28.0: GET /api/v3/orgs/dev HTTP/1.1 2022-08-10T13:51:36.245Z [DEBUG] provider.terraform-provider-github_v4.28.0: Host: xxx.ghe.com 2022-08-10T13:51:36.245Z [DEBUG] provider.terraform-provider-github_v4.28.0: User-Agent: go-github 2022-08-10T13:51:36.245Z [DEBUG] provider.terraform-provider-github_v4.28.0: Accept: application/vnd.github.surtur-preview+json 2022-08-10T13:51:36.245Z [DEBUG] provider.terraform-provider-github_v4.28.0: Accept-Encoding: gzip 2022-08-10T13:51:36.245Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022-08-10T13:51:36.245Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022-08-10T13:51:36.245Z [DEBUG] provider.terraform-provider-github_v4.28.0: ----------------------------------------------------- 2022-08-10T13:51:36.545Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022/08/10 13:51:36 [DEBUG] Github API Response Details: 2022-08-10T13:51:36.545Z [DEBUG] provider.terraform-provider-github_v4.28.0: ---[ RESPONSE ]-------------------------------------- 2022-08-10T13:51:36.545Z [DEBUG] provider.terraform-provider-github_v4.28.0: HTTP/2.0 200 OK 2022-08-10T13:51:36.545Z [DEBUG] provider.terraform-provider-github_v4.28.0: Access-Control-Allow-Origin: * 2022-08-10T13:51:36.545Z [DEBUG] provider.terraform-provider-github_v4.28.0: Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset 2022-08-10T13:51:36.545Z [DEBUG] provider.terraform-provider-github_v4.28.0: Cache-Control: private, max-age=60, s-maxage=60 2022-08-10T13:51:36.545Z [DEBUG] provider.terraform-provider-github_v4.28.0: Content-Security-Policy: default-src 'none' 2022-08-10T13:51:36.545Z [DEBUG] provider.terraform-provider-github_v4.28.0: Content-Type: application/json; charset=utf-8 2022-08-10T13:51:36.545Z [DEBUG] provider.terraform-provider-github_v4.28.0: Date: Wed, 10 Aug 2022 13:51:38 GMT 2022-08-10T13:51:36.545Z [DEBUG] provider.terraform-provider-github_v4.28.0: Etag: W/"8e6b4d9e9bb1faf3c05f8d16f29c3f811e23597bb3c6bb8e037e4b7b15b0d976" 2022-08-10T13:51:36.545Z [DEBUG] provider.terraform-provider-github_v4.28.0: Github-Authentication-Token-Expiration: 2022-09-08 01:46:54 UTC 2022-08-10T13:51:36.545Z [DEBUG] provider.terraform-provider-github_v4.28.0: Last-Modified: Fri, 06 May 2022 12:06:23 GMT 2022-08-10T13:51:36.545Z [DEBUG] provider.terraform-provider-github_v4.28.0: Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin 2022-08-10T13:51:36.545Z [DEBUG] provider.terraform-provider-github_v4.28.0: Server: GitHub.com 2022-08-10T13:51:36.545Z [DEBUG] provider.terraform-provider-github_v4.28.0: Strict-Transport-Security: max-age=31536000; includeSubdomains 2022-08-10T13:51:36.545Z [DEBUG] provider.terraform-provider-github_v4.28.0: Vary: Accept, Authorization, Cookie, X-GitHub-OTP 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Accepted-Oauth-Scopes: admin:org, read:org, repo, user, write:org 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Content-Type-Options: nosniff 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Frame-Options: deny 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Github-Enterprise-Version: GitHub AE 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Github-Media-Type: github.v3; param=surtur-preview; format=json 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Github-Request-Id: D749:0022:B7B8:87710:62F3B7EA 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Oauth-Scopes: admin:enterprise, admin:org 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Ratelimit-Limit: 15000 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Ratelimit-Remaining: 14989 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Ratelimit-Reset: 1660142000 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Ratelimit-Resource: core 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Ratelimit-Used: 11 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Runtime-Rack: 0.200307 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Xss-Protection: 0 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: { 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "login": "dev", 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "id": 11, 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "node_id": "MDEyOk9yZ2FuaXphdGlvbjEx", 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "url": "https://xxx.ghe.com/api/v3/orgs/dev", 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "repos_url": "https://xxx.ghe.com/api/v3/orgs/dev/repos", 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "events_url": "https://xxx.ghe.com/api/v3/orgs/dev/events", 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "hooks_url": "https://xxx.ghe.com/api/v3/orgs/dev/hooks", 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "issues_url": "https://xxx.ghe.com/api/v3/orgs/dev/issues", 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "members_url": "https://xxx.ghe.com/api/v3/orgs/dev/members{/member}", 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "public_members_url": "https://xxx.ghe.com/api/v3/orgs/dev/public_members{/member}", 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "avatar_url": "https://avatars.xxx.ghe.com/u/11?", 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "description": null, 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "is_verified": false, 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "has_organization_projects": false, 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "has_repository_projects": false, 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "public_repos": 0, 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "public_gists": 0, 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "followers": 0, 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "following": 0, 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "html_url": "https://xxx.ghe.com/dev", 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "created_at": "2022-05-06T12:06:23Z", 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "updated_at": "2022-05-06T12:06:23Z", 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "type": "Organization", 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "total_private_repos": 1, 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "owned_private_repos": 18, 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "private_gists": 0, 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "disk_usage": 214, 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "collaborators": 4, 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "billing_email": "[email protected]", 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "default_repository_permission": "none", 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "members_can_create_repositories": true, 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "two_factor_requirement_enabled": false, 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "members_allowed_repository_creation_type": "none", 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "members_can_create_public_repositories": false, 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "members_can_create_private_repositories": false, 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "members_can_create_internal_repositories": true, 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "members_can_create_pages": true, 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "plan": { 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "name": "enterprise", 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "space": 976562499, 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "private_repos": 999999999999, 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "filled_seats": 28, 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: "seats": 0 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: } 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: } 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: ----------------------------------------------------- 2022-08-10T13:51:36.546Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022/08/10 13:51:36 [INFO] Token present; configuring authenticated owner: dev 2022-08-10T13:51:36.547Z [DEBUG] ReferenceTransformer: "github_team.some_team" references: [] github_team.some_team: Refreshing state... [id=27] 2022-08-10T13:51:36.558Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022/08/10 13:51:36 [DEBUG] Github API Request Details: 2022-08-10T13:51:36.558Z [DEBUG] provider.terraform-provider-github_v4.28.0: ---[ REQUEST ]--------------------------------------- 2022-08-10T13:51:36.558Z [DEBUG] provider.terraform-provider-github_v4.28.0: GET /api/v3/organizations/11/team/27 HTTP/1.1 2022-08-10T13:51:36.558Z [DEBUG] provider.terraform-provider-github_v4.28.0: Host: xxx.ghe.com 2022-08-10T13:51:36.558Z [DEBUG] provider.terraform-provider-github_v4.28.0: User-Agent: go-github 2022-08-10T13:51:36.558Z [DEBUG] provider.terraform-provider-github_v4.28.0: Accept: application/vnd.github.v3+json 2022-08-10T13:51:36.558Z [DEBUG] provider.terraform-provider-github_v4.28.0: Accept-Encoding: gzip 2022-08-10T13:51:36.558Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022-08-10T13:51:36.558Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022-08-10T13:51:36.558Z [DEBUG] provider.terraform-provider-github_v4.28.0: ----------------------------------------------------- 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022/08/10 13:51:36 [DEBUG] Github API Response Details: 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: ---[ RESPONSE ]-------------------------------------- 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: HTTP/2.0 304 Not Modified 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: Access-Control-Allow-Origin: * 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: Cache-Control: private, max-age=60, s-maxage=60 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: Content-Security-Policy: default-src 'none' 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: Date: Wed, 10 Aug 2022 13:51:38 GMT 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: Etag: "1323ece80a7c0bfbe4887208286db81ca9c81fcee3720c72900d9ee192f6386e" 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: Last-Modified: Tue, 09 Aug 2022 20:04:10 GMT 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: Server: GitHub.com 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: Strict-Transport-Security: max-age=31536000; includeSubdomains 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: Vary: Accept, Authorization, Cookie, X-GitHub-OTP 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Content-Type-Options: nosniff 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Frame-Options: deny 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Github-Request-Id: D749:0022:B7B9:87711:62F3B7EA 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Ratelimit-Limit: 15000 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Ratelimit-Remaining: 14989 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Ratelimit-Reset: 1660142000 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Ratelimit-Resource: core 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Ratelimit-Used: 11 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Runtime-Rack: 0.197960 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Xss-Protection: 0 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022-08-10T13:51:36.768Z [DEBUG] provider.terraform-provider-github_v4.28.0: ----------------------------------------------------- 2022-08-10T13:51:36.771Z [WARN] Provider "registry.terraform.io/hashicorp/github" produced an invalid plan for github_team.some_team, but we are tolerating it because it is using the legacy plugin SDK. The following problems may be the cause of any confusing errors from downstream operations: - .create_default_maintainer: planned value cty.False for a non-computed attribute - .ldap_dn: planned value cty.StringVal("") for a non-computed attribute 2022-08-10T13:51:36.772Z [DEBUG] Resource instance state not found for node "github_emu_group_mapping.example_emu_group_mapping", instance github_emu_group_mapping.example_emu_group_mapping 2022-08-10T13:51:36.772Z [INFO] ReferenceTransformer: reference not found: "github_team.some_team" 2022-08-10T13:51:36.772Z [DEBUG] ReferenceTransformer: "github_emu_group_mapping.example_emu_group_mapping" references: [] 2022-08-10T13:51:36.772Z [DEBUG] refresh: github_emu_group_mapping.example_emu_group_mapping: no state, so not refreshing 2022-08-10T13:51:36.787Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/github/4.28.0/linux_amd64/terraform-provider-github_v4.28.0 pid=4228 2022-08-10T13:51:36.788Z [DEBUG] provider: plugin exited 2022-08-10T13:51:36.788Z [DEBUG] building apply graph to check for errors 2022-08-10T13:51:36.788Z [DEBUG] Resource state not found for node "github_emu_group_mapping.example_emu_group_mapping", instance github_emu_group_mapping.example_emu_group_mapping 2022-08-10T13:51:36.788Z [DEBUG] ProviderTransformer: "github_team.some_team (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/github"] 2022-08-10T13:51:36.789Z [DEBUG] ProviderTransformer: "github_emu_group_mapping.example_emu_group_mapping" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/hashicorp/github"] 2022-08-10T13:51:36.789Z [DEBUG] ProviderTransformer: "github_emu_group_mapping.example_emu_group_mapping (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/github"] 2022-08-10T13:51:36.789Z [DEBUG] pruning unused provider["registry.terraform.io/integrations/github"] 2022-08-10T13:51:36.789Z [DEBUG] ReferenceTransformer: "github_emu_group_mapping.example_emu_group_mapping (expand)" references: [] 2022-08-10T13:51:36.789Z [DEBUG] ReferenceTransformer: "github_team.some_team (expand)" references: [] 2022-08-10T13:51:36.789Z [DEBUG] ReferenceTransformer: "var.githubae_org" references: [] 2022-08-10T13:51:36.789Z [INFO] ReferenceTransformer: reference not found: "github_team.some_team#destroy" 2022-08-10T13:51:36.789Z [DEBUG] ReferenceTransformer: "github_emu_group_mapping.example_emu_group_mapping" references: [github_team.some_team (expand)] 2022-08-10T13:51:36.789Z [DEBUG] ReferenceTransformer: "provider["registry.terraform.io/hashicorp/github"]" references: []

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:

  • create

Terraform will perform the following actions:

github_emu_group_mapping.example_emu_group_mapping will be created

  • resource "github_emu_group_mapping" "example_emu_group_mapping" {
    • etag = (known after apply)
    • group_id = 5
    • id = (known after apply)
    • team_slug = "zzzzzz" }

Plan: 1 to add, 0 to change, 0 to destroy. 2022-08-10T13:51:36.790Z [DEBUG] command: asking for input: "\nDo you want to perform these actions?"

Do you want to perform these actions? Terraform will perform the actions described above. Only 'yes' will be accepted to approve.

Enter a value: yes

2022-08-10T13:51:39.167Z [INFO] backend/local: apply calling Apply 2022-08-10T13:51:39.168Z [DEBUG] Building and walking apply graph for NormalMode plan 2022-08-10T13:51:39.168Z [DEBUG] Resource state not found for node "github_emu_group_mapping.example_emu_group_mapping", instance github_emu_group_mapping.example_emu_group_mapping 2022-08-10T13:51:39.169Z [DEBUG] ProviderTransformer: "github_emu_group_mapping.example_emu_group_mapping (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/github"] 2022-08-10T13:51:39.169Z [DEBUG] ProviderTransformer: "github_emu_group_mapping.example_emu_group_mapping" (*terraform.NodeApplyableResourceInstance) needs provider["registry.terraform.io/hashicorp/github"] 2022-08-10T13:51:39.169Z [DEBUG] ProviderTransformer: "github_team.some_team (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/github"] 2022-08-10T13:51:39.169Z [DEBUG] pruning unused provider["registry.terraform.io/integrations/github"] 2022-08-10T13:51:39.169Z [DEBUG] ReferenceTransformer: "var.githubae_org" references: [] 2022-08-10T13:51:39.169Z [INFO] ReferenceTransformer: reference not found: "github_team.some_team#destroy" 2022-08-10T13:51:39.169Z [DEBUG] ReferenceTransformer: "github_emu_group_mapping.example_emu_group_mapping" references: [github_team.some_team (expand)] 2022-08-10T13:51:39.169Z [DEBUG] ReferenceTransformer: "provider["registry.terraform.io/hashicorp/github"]" references: [] 2022-08-10T13:51:39.169Z [DEBUG] ReferenceTransformer: "github_team.some_team (expand)" references: [] 2022-08-10T13:51:39.169Z [DEBUG] ReferenceTransformer: "github_emu_group_mapping.example_emu_group_mapping (expand)" references: [] 2022-08-10T13:51:39.170Z [DEBUG] Starting graph walk: walkApply 2022-08-10T13:51:39.197Z [DEBUG] created provider logger: level=debug 2022-08-10T13:51:39.198Z [INFO] provider: configuring client automatic mTLS 2022-08-10T13:51:39.249Z [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/github/4.28.0/linux_amd64/terraform-provider-github_v4.28.0 args=[.terraform/providers/registry.terraform.io/hashicorp/github/4.28.0/linux_amd64/terraform-provider-github_v4.28.0] 2022-08-10T13:51:39.269Z [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/github/4.28.0/linux_amd64/terraform-provider-github_v4.28.0 pid=4237 2022-08-10T13:51:39.269Z [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/github/4.28.0/linux_amd64/terraform-provider-github_v4.28.0 2022-08-10T13:51:40.385Z [INFO] provider.terraform-provider-github_v4.28.0: configuring server automatic mTLS: timestamp=2022-08-10T13:51:40.385Z 2022-08-10T13:51:40.417Z [DEBUG] provider: using plugin: version=5 2022-08-10T13:51:40.417Z [DEBUG] provider.terraform-provider-github_v4.28.0: plugin address: address=/tmp/plugin2522820138 network=unix timestamp=2022-08-10T13:51:40.416Z 2022-08-10T13:51:40.504Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unimplemented desc = unknown service plugin.GRPCStdio" 2022-08-10T13:51:40.526Z [DEBUG] No provider meta schema returned 2022-08-10T13:51:40.561Z [WARN] ValidateProviderConfig from "provider["registry.terraform.io/hashicorp/github"]" changed the config value, but that value is unused 2022-08-10T13:51:40.564Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022/08/10 13:51:40 [INFO] Selecting owner from GITHUB_OWNER environment variable 2022-08-10T13:51:40.564Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022/08/10 13:51:40 [INFO] Setting write_delay_ms to 1000 2022-08-10T13:51:40.564Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022/08/10 13:51:40 [DEBUG] Setting read_delay_ms to 0 2022-08-10T13:51:40.595Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022/08/10 13:51:40 [DEBUG] Github API Request Details: 2022-08-10T13:51:40.595Z [DEBUG] provider.terraform-provider-github_v4.28.0: ---[ REQUEST ]--------------------------------------- 2022-08-10T13:51:40.595Z [DEBUG] provider.terraform-provider-github_v4.28.0: GET /api/v3/orgs/dev HTTP/1.1 2022-08-10T13:51:40.595Z [DEBUG] provider.terraform-provider-github_v4.28.0: Host: xxx.ghe.com 2022-08-10T13:51:40.595Z [DEBUG] provider.terraform-provider-github_v4.28.0: User-Agent: go-github 2022-08-10T13:51:40.595Z [DEBUG] provider.terraform-provider-github_v4.28.0: Accept: application/vnd.github.surtur-preview+json 2022-08-10T13:51:40.595Z [DEBUG] provider.terraform-provider-github_v4.28.0: Accept-Encoding: gzip 2022-08-10T13:51:40.595Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022-08-10T13:51:40.595Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022-08-10T13:51:40.595Z [DEBUG] provider.terraform-provider-github_v4.28.0: ----------------------------------------------------- 2022-08-10T13:51:40.853Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022/08/10 13:51:40 [DEBUG] Github API Response Details: 2022-08-10T13:51:40.853Z [DEBUG] provider.terraform-provider-github_v4.28.0: ---[ RESPONSE ]-------------------------------------- 2022-08-10T13:51:40.853Z [DEBUG] provider.terraform-provider-github_v4.28.0: HTTP/2.0 200 OK 2022-08-10T13:51:40.853Z [DEBUG] provider.terraform-provider-github_v4.28.0: Access-Control-Allow-Origin: * 2022-08-10T13:51:40.853Z [DEBUG] provider.terraform-provider-github_v4.28.0: Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset 2022-08-10T13:51:40.853Z [DEBUG] provider.terraform-provider-github_v4.28.0: Cache-Control: private, max-age=60, s-maxage=60 2022-08-10T13:51:40.853Z [DEBUG] provider.terraform-provider-github_v4.28.0: Content-Security-Policy: default-src 'none' 2022-08-10T13:51:40.853Z [DEBUG] provider.terraform-provider-github_v4.28.0: Content-Type: application/json; charset=utf-8 2022-08-10T13:51:40.853Z [DEBUG] provider.terraform-provider-github_v4.28.0: Date: Wed, 10 Aug 2022 13:51:42 GMT 2022-08-10T13:51:40.853Z [DEBUG] provider.terraform-provider-github_v4.28.0: Etag: W/"8e6b4d9e9bb1faf3c05f8d16f29c3f811e23597bb3c6bb8e037e4b7b15b0d976" 2022-08-10T13:51:40.853Z [DEBUG] provider.terraform-provider-github_v4.28.0: Github-Authentication-Token-Expiration: 2022-09-08 01:46:54 UTC 2022-08-10T13:51:40.853Z [DEBUG] provider.terraform-provider-github_v4.28.0: Last-Modified: Fri, 06 May 2022 12:06:23 GMT 2022-08-10T13:51:40.853Z [DEBUG] provider.terraform-provider-github_v4.28.0: Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin 2022-08-10T13:51:40.853Z [DEBUG] provider.terraform-provider-github_v4.28.0: Server: GitHub.com 2022-08-10T13:51:40.853Z [DEBUG] provider.terraform-provider-github_v4.28.0: Strict-Transport-Security: max-age=31536000; includeSubdomains 2022-08-10T13:51:40.853Z [DEBUG] provider.terraform-provider-github_v4.28.0: Vary: Accept, Authorization, Cookie, X-GitHub-OTP 2022-08-10T13:51:40.853Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Accepted-Oauth-Scopes: admin:org, read:org, repo, user, write:org 2022-08-10T13:51:40.853Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Content-Type-Options: nosniff 2022-08-10T13:51:40.853Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Frame-Options: deny 2022-08-10T13:51:40.853Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Github-Enterprise-Version: GitHub AE 2022-08-10T13:51:40.853Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Github-Media-Type: github.v3; param=surtur-preview; format=json 2022-08-10T13:51:40.853Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Github-Request-Id: 4F59:0021:6E20:510D4:62F3B7EE 2022-08-10T13:51:40.853Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Oauth-Scopes: admin:enterprise, admin:org 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Ratelimit-Limit: 15000 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Ratelimit-Remaining: 14988 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Ratelimit-Reset: 1660142000 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Ratelimit-Resource: core 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Ratelimit-Used: 12 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Runtime-Rack: 0.173210 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Xss-Protection: 0 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: { 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "login": "dev", 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "id": 11, 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "node_id": "", 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "url": "https://xxx.ghe.com/api/v3/orgs/dev", 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "repos_url": "https://xxx.ghe.com/api/v3/orgs/dev/repos", 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "events_url": "https://xxx.ghe.com/api/v3/orgs/dev/events", 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "hooks_url": "https://xxx.ghe.com/api/v3/orgs/dev/hooks", 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "issues_url": "https://xxx.ghe.com/api/v3/orgs/dev/issues", 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "members_url": "https://xxx.ghe.com/api/v3/orgs/dev/members{/member}", 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "public_members_url": "https://xxx.ghe.com/api/v3/orgs/dev/public_members{/member}", 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "avatar_url": "https://avatars.xxx.ghe.com/u/11?", 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "description": null, 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "is_verified": false, 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "has_organization_projects": false, 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "has_repository_projects": false, 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "public_repos": 0, 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "public_gists": 0, 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "followers": 0, 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "following": 0, 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "html_url": "https://xxxx.ghe.com/dev", 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "created_at": "2022-05-06T12:06:23Z", 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "updated_at": "2022-05-06T12:06:23Z", 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "type": "Organization", 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "total_private_repos": 1, 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "owned_private_repos": 18, 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "private_gists": 0, 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "disk_usage": 214, 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "collaborators": 4, 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "billing_email": "[email protected]", 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "default_repository_permission": "none", 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "members_can_create_repositories": true, 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "two_factor_requirement_enabled": false, 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "members_allowed_repository_creation_type": "none", 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "members_can_create_public_repositories": false, 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "members_can_create_private_repositories": false, 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "members_can_create_internal_repositories": true, 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "members_can_create_pages": true, 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "plan": { 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "name": "enterprise", 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "space": 22222222, 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "private_repos": 999999999999, 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "filled_seats": 28, 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: "seats": 0 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: } 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: } 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: ----------------------------------------------------- 2022-08-10T13:51:40.854Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022/08/10 13:51:40 [INFO] Token present; configuring authenticated owner: dev github_emu_group_mapping.example_emu_group_mapping: Creating... 2022-08-10T13:51:40.875Z [INFO] Starting apply for github_emu_group_mapping.example_emu_group_mapping 2022-08-10T13:51:40.875Z [DEBUG] github_emu_group_mapping.example_emu_group_mapping: applying the planned Create change 2022-08-10T13:51:40.877Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022/08/10 13:51:40 [DEBUG] Github API Request Details: 2022-08-10T13:51:40.877Z [DEBUG] provider.terraform-provider-github_v4.28.0: ---[ REQUEST ]--------------------------------------- 2022-08-10T13:51:40.877Z [DEBUG] provider.terraform-provider-github_v4.28.0: PATCH /api/v3/orgs/dev/teams/zzzzzz/external-groups HTTP/1.1 2022-08-10T13:51:40.877Z [DEBUG] provider.terraform-provider-github_v4.28.0: Host: xxxx.ghe.com 2022-08-10T13:51:40.877Z [DEBUG] provider.terraform-provider-github_v4.28.0: User-Agent: go-github 2022-08-10T13:51:40.877Z [DEBUG] provider.terraform-provider-github_v4.28.0: Content-Length: 15 2022-08-10T13:51:40.877Z [DEBUG] provider.terraform-provider-github_v4.28.0: Accept: application/vnd.github.v3+json 2022-08-10T13:51:40.877Z [DEBUG] provider.terraform-provider-github_v4.28.0: Content-Type: application/json 2022-08-10T13:51:40.877Z [DEBUG] provider.terraform-provider-github_v4.28.0: Accept-Encoding: gzip 2022-08-10T13:51:40.877Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022-08-10T13:51:40.877Z [DEBUG] provider.terraform-provider-github_v4.28.0: { 2022-08-10T13:51:40.877Z [DEBUG] provider.terraform-provider-github_v4.28.0: "group_id": 5 2022-08-10T13:51:40.877Z [DEBUG] provider.terraform-provider-github_v4.28.0: } 2022-08-10T13:51:40.877Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022-08-10T13:51:40.877Z [DEBUG] provider.terraform-provider-github_v4.28.0: ----------------------------------------------------- 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022/08/10 13:51:41 [DEBUG] Github API Response Details: 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: ---[ RESPONSE ]-------------------------------------- 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: HTTP/2.0 200 OK 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: Access-Control-Allow-Origin: * 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: Access-Control-Expose-Headers: ETag, Link, Location, Retry-After, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Used, X-RateLimit-Resource, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval, X-GitHub-Media-Type, Deprecation, Sunset 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: Cache-Control: private, max-age=60, s-maxage=60 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: Content-Security-Policy: default-src 'none' 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: Content-Type: application/json; charset=utf-8 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: Date: Wed, 10 Aug 2022 13:51:42 GMT 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: Etag: W/"810c591644ac69c366ccd32971a544087bd4a5df2184d7e7351461d29436fbf9" 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: Github-Authentication-Token-Expiration: 2022-09-08 01:46:54 UTC 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: Referrer-Policy: origin-when-cross-origin, strict-origin-when-cross-origin 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: Server: GitHub.com 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: Strict-Transport-Security: max-age=31536000; includeSubdomains 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: Vary: Accept, Authorization, Cookie, X-GitHub-OTP 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Accepted-Oauth-Scopes: admin:org, repo 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Content-Type-Options: nosniff 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Frame-Options: deny 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Github-Enterprise-Version: GitHub AE 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Github-Media-Type: github.v3; format=json 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Github-Request-Id: 4F59:0021:6E21:510D5:62F3B7EE 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Oauth-Scopes: admin:enterprise, admin:org 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Ratelimit-Limit: 15000 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Ratelimit-Remaining: 14987 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Ratelimit-Reset: 1660142000 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Ratelimit-Resource: core 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Ratelimit-Used: 13 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Runtime-Rack: 0.155319 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: X-Xss-Protection: 0 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: { 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: "group_id": 5, 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: "group_name": "zzzzzz", 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: "updated_at": "2022-07-13 15:06:32 -0400", 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: "members": [ 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: { 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: "member_id": 51, 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: "member_login": "xxxx", 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: "member_name": "xxxxx", 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: "member_email": "[email protected]" 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: } 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: ], 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: "teams": [ 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: { 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: "team_id": 27, 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: "team_name": "zzzzzz" 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: } 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: ] 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: } 2022-08-10T13:51:41.046Z [DEBUG] provider.terraform-provider-github_v4.28.0: ----------------------------------------------------- 2022-08-10T13:51:41.066Z [ERROR] vertex "github_emu_group_mapping.example_emu_group_mapping" error: parsing time ""2022-07-13 15:06:32 -0400"" as ""2006-01-02T15:04:05Z07:00"": cannot parse " 15:06:32 -0400"" as "T" ╷ │ Error: parsing time ""2022-07-13 15:06:32 -0400"" as ""2006-01-02T15:04:05Z07:00"": cannot parse " 15:06:32 -0400"" as "T" │ │ with github_emu_group_mapping.example_emu_group_mapping, │ on main.tf line 73, in resource "github_emu_group_mapping" "example_emu_group_mapping": │ 73: resource "github_emu_group_mapping" "example_emu_group_mapping" { │ ╵ 2022-08-10T13:51:41.088Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/github/4.28.0/linux_amd64/terraform-provider-github_v4.28.0 pid=4237 2022-08-10T13:51:41.089Z [DEBUG] provider: plugin exited

shibachu avatar Aug 10 '22 16:08 shibachu

@kfcampbell, I'm the support engineering helping with this case. I'm just adding myself to this issue. Thanks!

Apod12345 avatar Aug 10 '22 20:08 Apod12345

@kfcampbell, I want to provide the information in the ticket as well. This will ensure everyone sees the same information.

What we are doing with Terraform as POC

Create a team under a org by running following: works fine

resource "github_team" "some_team" {

name = "CDOTTestAdmin"

description = "CDOTTest Admin group"

privacy = "closed"

}

Mapping to EMU – initially was working at github_team_sync_group_mapping for IdP

resource "github_emu_group_mapping" "example_emu_group_mapping" {

team_slug = "some-team"

group_id = 5

depends_on = [github_team.some_team]

}

o Terraform is missing EMU data resources to pull the available groups

o With hard coding – it fails with error:

§ – is able to map to the external group for team_slug – but failed with time parsing error (│ Error: parsing time ""2022-07-13 15:06:32 -0400"" as ""2006-01-02T15:04:05Z07:00"": cannot parse " 15:06:32 -0400"" as "T")

Apod12345 avatar Aug 10 '22 20:08 Apod12345

It looks like there's a variable called githubae_org in your output. Are you using AE? AE does not support EMUs, so using an IdP team sync is probably the best bet for others in a similar situation.

kfcampbell avatar Aug 10 '22 23:08 kfcampbell

Yes - we are configuring to GitHubAE. github_team_sync_group_mapping - throws error, infact - github_emu_group_mapping is mapping correctly in GitHubAE but the terraform is throwing error to parse the results.

github_team_sync_group_mapping: PATCH https://xxxx.ghe.com/api/v3/orgs/dev/teams/yyyTestAdmin/team-sync/group-mappings: 403 This team is not externally managed. Learn more at https://docs.github.com/github-ae@latest/articles/synchronizing-teams-between-your-identity-provider-and-github []

shibachu avatar Aug 11 '22 15:08 shibachu

github_team_sync_group_mapping - throws error, infact - github_emu_group_mapping is mapping correctly in GitHubAE but the terraform is throwing error to parse the results.

Do you mind giving more information about this? I'm not sure I understand. GHAE doesn't support EMUs as far as I know, so I'm not sure how the mapping could successfully be created.

kfcampbell avatar Aug 12 '22 21:08 kfcampbell

As per GitHubAE API documentation - external groups are supported : https://docs.github.com/en/github-ae@latest/rest/teams/external-groups. So - when we use the corresponding terraform resource "https://registry.terraform.io/providers/integrations/github/latest/docs/resources/emu_group_mapping" - the team that was created in the org was configured properly and synched with the IdP groups that were synched from AzureAD. But - the execution is throwing error - Error: parsing time ""2022-07-13 15:06:32 -0400"" as ""2006-01-02T15:04:05Z07:00"": cannot parse " 15:06:32 -0400"" as "T". If needed - we can have a call, the supporting engineer has our contact information.

shibachu avatar Aug 15 '22 13:08 shibachu

From Shiva:

I ran team with sync – the plan works, but apply fails: See below. And team was created under the org, but failed to map.

PS /usr/workspace/azdo-prod/githubae-teams> terraform plan

data.http.external_groups: Reading...

github_team.some_team: Refreshing state... [id=67]

data.http.external_groups: Read complete after 0s [id=https://fdic.ghe.com/api/v3/orgs/jfrog/external-groups]

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:

  • create

Terraform will perform the following actions:

github_team_sync_group_mapping.example_group_mapping will be created

  • resource "github_team_sync_group_mapping" "example_group_mapping" {

    • etag = (known after apply)

    • id = (known after apply)

    • team_slug = "CDOTTestAdmin"

    • group {

      • group_id = "5"

      • group_name = "CDOTTestAdmin"

      }

    }

Plan: 1 to add, 0 to change, 0 to destroy.

│ Warning: "organization": [DEPRECATED] Use owner (or GITHUB_OWNER) instead of organization (or GITHUB_ORGANIZATION)

│ with provider["registry.terraform.io/integrations/github"],

│ on line 0:

│ (source code not available)

──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Note: You didn't use the -out option to save this plan, so Terraform can't guarantee to take exactly these actions if you run "terraform apply" now.

PS /usr/workspace/azdo-prod/githubae-teams> terraform apply

data.http.external_groups: Reading...

data.http.external_groups: Read complete after 0s [id=https://fdic.ghe.com/api/v3/orgs/jfrog/external-groups]

github_team.some_team: Refreshing state... [id=67]

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:

  • create

Terraform will perform the following actions:

github_team_sync_group_mapping.example_group_mapping will be created

  • resource "github_team_sync_group_mapping" "example_group_mapping" {

    • etag = (known after apply)

    • id = (known after apply)

    • team_slug = "CDOTTestAdmin"

    • group {

      • group_id = "5"

      • group_name = "CDOTTestAdmin"

      }

    }

Plan: 1 to add, 0 to change, 0 to destroy.

│ Warning: "organization": [DEPRECATED] Use owner (or GITHUB_OWNER) instead of organization (or GITHUB_ORGANIZATION)

│ with provider["registry.terraform.io/integrations/github"],

│ on line 0:

│ (source code not available)

Do you want to perform these actions?

Terraform will perform the actions described above.

Only 'yes' will be accepted to approve.

Enter a value: yes

github_team_sync_group_mapping.example_group_mapping: Creating...

│ Warning: "organization": [DEPRECATED] Use owner (or GITHUB_OWNER) instead of organization (or GITHUB_ORGANIZATION)

│ with provider["registry.terraform.io/integrations/github"],

│ on line 0:

│ (source code not available)

│ Error: PATCH https://fdic.ghe.com/api/v3/orgs/jfrog/teams/CDOTTestAdmin/team-sync/group-mappings: 403 This team is not externally managed. Learn more at https://docs.github.com/github-ae@latest/articles/synchronizing-teams-between-your-identity-provider-and-github []

│ with github_team_sync_group_mapping.example_group_mapping,

│ on main.tf line 51, in resource "github_team_sync_group_mapping" "example_group_mapping":

│ 51: resource "github_team_sync_group_mapping" "example_group_mapping" {

PS /usr/workspace/azdo-prod/githubae-teams>

Apod12345 avatar Aug 25 '22 12:08 Apod12345

👋 Hey Friends, this issue has been automatically marked as stale because it has no recent activity. It will be closed if no further activity occurs. Please add the Status: Pinned label if you feel that this issue needs to remain open/active. Thank you for your contributions and help in keeping things tidy!

github-actions[bot] avatar May 23 '23 01:05 github-actions[bot]