Created
November 20, 2023 20:29
-
-
Save ZaxR/dee8f81b3250b38672263513aa4b0ae9 to your computer and use it in GitHub Desktop.
Bitbucket tf provider, token-based authentication failing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2023-11-20T14:19:11.202-0600 [INFO] backend/local: apply calling Apply | |
2023-11-20T14:19:11.202-0600 [DEBUG] Building and walking apply graph for NormalMode plan | |
2023-11-20T14:19:11.203-0600 [DEBUG] Resource state not found for node "module.ds-cc-creation-test.bitbucket_repository.repo", instance module.ds-cc-creation-test.bitbucket_repository.repo | |
2023-11-20T14:19:11.203-0600 [DEBUG] adding implicit provider configuration provider["registry.terraform.io/drfaust92/bitbucket"], implied first by module.ds-cc-creation-test.bitbucket_repository.repo | |
2023-11-20T14:19:11.203-0600 [DEBUG] ProviderTransformer: "module.ds-cc-creation-test.bitbucket_repository.repo" (*terraform.NodeApplyableResourceInstance) needs module.ds-cc-creation-test.provider["registry.terraform.io/drfaust92/bitbucket"] | |
2023-11-20T14:19:11.203-0600 [DEBUG] ProviderTransformer: "module.ds-cc-creation-test.bitbucket_repository.repo (expand)" (*terraform.nodeExpandApplyableResource) needs module.ds-cc-creation-test.provider["registry.terraform.io/drfaust92/bitbucket"] | |
2023-11-20T14:19:11.203-0600 [DEBUG] pruning unused provider["registry.terraform.io/drfaust92/bitbucket"] | |
2023-11-20T14:19:11.204-0600 [DEBUG] ReferenceTransformer: "module.ds-cc-creation-test.var.branching_model (expand)" references: [local.default_branching_model (expand)] | |
2023-11-20T14:19:11.204-0600 [DEBUG] ReferenceTransformer: "local.default_group_permissions (expand)" references: [] | |
2023-11-20T14:19:11.204-0600 [DEBUG] ReferenceTransformer: "local.default_project_key (expand)" references: [] | |
2023-11-20T14:19:11.204-0600 [DEBUG] ReferenceTransformer: "local.default_workspace (expand)" references: [] | |
2023-11-20T14:19:11.204-0600 [DEBUG] ReferenceTransformer: "module.ds-cc-creation-test.bitbucket_repository.repo" references: [module.ds-cc-creation-test.var.repo_name (expand) module.ds-cc-creation-test.var.project_key (expand) module.ds-cc-creation-test.var.repo_owner (expand) module.ds-cc-creation-test.var.repo_slug (expand)] | |
2023-11-20T14:19:11.204-0600 [DEBUG] ReferenceTransformer: "module.ds-cc-creation-test.var.repo_name (expand)" references: [] | |
2023-11-20T14:19:11.204-0600 [DEBUG] ReferenceTransformer: "module.ds-cc-creation-test.var.project_key (expand)" references: [local.default_project_key (expand)] | |
2023-11-20T14:19:11.204-0600 [INFO] ReferenceTransformer: reference not found: "path.module" | |
2023-11-20T14:19:11.204-0600 [DEBUG] ReferenceTransformer: "local.default_branching_model (expand)" references: [] | |
2023-11-20T14:19:11.204-0600 [INFO] ReferenceTransformer: reference not found: "path.module" | |
2023-11-20T14:19:11.204-0600 [DEBUG] ReferenceTransformer: "local.default_webhooks (expand)" references: [] | |
2023-11-20T14:19:11.204-0600 [DEBUG] ReferenceTransformer: "module.ds-cc-creation-test.provider[\"registry.terraform.io/drfaust92/bitbucket\"]" references: [] | |
2023-11-20T14:19:11.204-0600 [DEBUG] ReferenceTransformer: "module.ds-cc-creation-test.var.branch_restrictions (expand)" references: [local.default_branch_restrictions (expand)] | |
2023-11-20T14:19:11.204-0600 [DEBUG] ReferenceTransformer: "module.ds-cc-creation-test.var.repo_owner (expand)" references: [] | |
2023-11-20T14:19:11.204-0600 [INFO] ReferenceTransformer: reference not found: "path.module" | |
2023-11-20T14:19:11.204-0600 [DEBUG] ReferenceTransformer: "module.ds-cc-creation-test.var.repo_slug (expand)" references: [] | |
2023-11-20T14:19:11.204-0600 [DEBUG] ReferenceTransformer: "module.ds-cc-creation-test.var.webhooks (expand)" references: [local.default_webhooks (expand)] | |
2023-11-20T14:19:11.204-0600 [INFO] ReferenceTransformer: reference not found: "path.module" | |
2023-11-20T14:19:11.204-0600 [DEBUG] ReferenceTransformer: "local.default_branch_restrictions (expand)" references: [] | |
2023-11-20T14:19:11.204-0600 [DEBUG] ReferenceTransformer: "module.ds-cc-creation-test (expand)" references: [] | |
2023-11-20T14:19:11.204-0600 [DEBUG] ReferenceTransformer: "module.ds-cc-creation-test (close)" references: [] | |
2023-11-20T14:19:11.204-0600 [DEBUG] ReferenceTransformer: "module.ds-cc-creation-test.var.group_permissions (expand)" references: [local.default_group_permissions (expand)] | |
2023-11-20T14:19:11.204-0600 [DEBUG] ReferenceTransformer: "module.ds-cc-creation-test.var.workspace (expand)" references: [local.default_workspace (expand)] | |
2023-11-20T14:19:11.204-0600 [DEBUG] ReferenceTransformer: "module.ds-cc-creation-test.bitbucket_repository.repo (expand)" references: [] | |
2023-11-20T14:19:11.204-0600 [DEBUG] pruneUnusedNodes: module.ds-cc-creation-test.var.branch_restrictions (expand) is no longer needed, removing | |
2023-11-20T14:19:11.204-0600 [DEBUG] pruneUnusedNodes: module.ds-cc-creation-test.var.group_permissions (expand) is no longer needed, removing | |
2023-11-20T14:19:11.204-0600 [DEBUG] pruneUnusedNodes: module.ds-cc-creation-test.var.webhooks (expand) is no longer needed, removing | |
2023-11-20T14:19:11.204-0600 [DEBUG] pruneUnusedNodes: local.default_branch_restrictions (expand) is no longer needed, removing | |
2023-11-20T14:19:11.204-0600 [DEBUG] pruneUnusedNodes: module.ds-cc-creation-test.var.workspace (expand) is no longer needed, removing | |
2023-11-20T14:19:11.204-0600 [DEBUG] pruneUnusedNodes: local.default_webhooks (expand) is no longer needed, removing | |
2023-11-20T14:19:11.204-0600 [DEBUG] pruneUnusedNodes: local.default_workspace (expand) is no longer needed, removing | |
2023-11-20T14:19:11.204-0600 [DEBUG] pruneUnusedNodes: local.default_group_permissions (expand) is no longer needed, removing | |
2023-11-20T14:19:11.204-0600 [DEBUG] pruneUnusedNodes: module.ds-cc-creation-test.var.branching_model (expand) is no longer needed, removing | |
2023-11-20T14:19:11.204-0600 [DEBUG] pruneUnusedNodes: local.default_branching_model (expand) is no longer needed, removing | |
2023-11-20T14:19:11.204-0600 [DEBUG] Starting graph walk: walkApply | |
2023-11-20T14:19:11.205-0600 [DEBUG] created provider logger: level=debug | |
2023-11-20T14:19:11.205-0600 [INFO] provider: configuring client automatic mTLS | |
2023-11-20T14:19:11.208-0600 [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/drfaust92/bitbucket/2.37.2/darwin_arm64/terraform-provider-bitbucket_v2.37.2 args=[.terraform/providers/registry.terraform.io/drfaust92/bitbucket/2.37.2/darwin_arm64/terraform-provider-bitbucket_v2.37.2] | |
2023-11-20T14:19:11.210-0600 [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/drfaust92/bitbucket/2.37.2/darwin_arm64/terraform-provider-bitbucket_v2.37.2 pid=14322 | |
2023-11-20T14:19:11.210-0600 [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/drfaust92/bitbucket/2.37.2/darwin_arm64/terraform-provider-bitbucket_v2.37.2 | |
2023-11-20T14:19:11.221-0600 [INFO] provider.terraform-provider-bitbucket_v2.37.2: configuring server automatic mTLS: timestamp=2023-11-20T14:19:11.221-0600 | |
2023-11-20T14:19:11.229-0600 [DEBUG] provider: using plugin: version=5 | |
2023-11-20T14:19:11.230-0600 [DEBUG] provider.terraform-provider-bitbucket_v2.37.2: plugin address: address=/var/folders/kr/zwvjv6nd493cr086fvs6zr_80000gp/T/plugin870713495 network=unix timestamp=2023-11-20T14:19:11.229-0600 | |
2023-11-20T14:19:11.238-0600 [WARN] ValidateProviderConfig from "module.ds-cc-creation-test.provider[\"registry.terraform.io/drfaust92/bitbucket\"]" changed the config value, but that value is unused | |
2023-11-20T14:19:11.241-0600 [WARN] Provider "registry.terraform.io/drfaust92/bitbucket" produced an invalid plan for module.ds-cc-creation-test.bitbucket_repository.repo, 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: | |
- .has_issues: planned value cty.False for a non-computed attribute | |
- .scm: planned value cty.StringVal("git") for a non-computed attribute | |
- .fork_policy: planned value cty.StringVal("allow_forks") for a non-computed attribute | |
- .pipelines_enabled: planned value cty.False for a non-computed attribute | |
- .is_private: planned value cty.True for a non-computed attribute | |
- .has_wiki: planned value cty.False for a non-computed attribute | |
- .link: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead | |
module.ds-cc-creation-test.bitbucket_repository.repo: Creating... | |
2023-11-20T14:19:11.241-0600 [INFO] Starting apply for module.ds-cc-creation-test.bitbucket_repository.repo | |
2023-11-20T14:19:11.241-0600 [DEBUG] module.ds-cc-creation-test.bitbucket_repository.repo: applying the planned Create change | |
2023-11-20T14:19:11.242-0600 [INFO] provider.terraform-provider-bitbucket_v2.37.2: 2023/11/20 14:19:11 [DEBUG] setting computed for "link" from ComputedKeys: timestamp=2023-11-20T14:19:11.242-0600 | |
2023-11-20T14:19:11.519-0600 [DEBUG] State storage *remote.State declined to persist a state snapshot | |
2023-11-20T14:19:11.519-0600 [ERROR] vertex "module.ds-cc-creation-test.bitbucket_repository.repo" error: This endpoint does not support token-based authentication | |
2023-11-20T14:19:11.520-0600 [ERROR] provider.terraform-provider-bitbucket_v2.37.2: Response contains error diagnostic: diagnostic_severity=ERROR tf_provider_addr=DrFaust92/bitbucket tf_req_id=a47d982d-50ae-0597-057f-02ea1ba24ddc tf_rpc=ApplyResourceChange @caller=github.com/hashicorp/terraform-plugin-go@v0.19.0/tfprotov5/internal/diag/diagnostics.go:58 diagnostic_detail= diagnostic_summary="This endpoint does not support token-based authentication" tf_proto_version=5.4 tf_resource_type=bitbucket_repository @module=sdk.proto timestamp=2023-11-20T14:19:11.519-0600 | |
2023-11-20T14:19:11.520-0600 [DEBUG] states/remote: state read serial is: 2; serial is: 2 | |
2023-11-20T14:19:11.520-0600 [DEBUG] states/remote: state read lineage is: 7f3151c6-0eec-d127-5f48-c4e7c8ec0cb9; lineage is: 7f3151c6-0eec-d127-5f48-c4e7c8ec0cb9 | |
╷ | |
│ Error: This endpoint does not support token-based authentication | |
│ | |
│ with module.ds-cc-creation-test.bitbucket_repository.repo, | |
│ on ../../../modules/repo/main.tf line 21, in resource "bitbucket_repository" "repo": | |
│ 21: resource "bitbucket_repository" "repo" { | |
│ | |
╵ | |
2023-11-20T14:19:11.745-0600 [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = error reading from server: EOF" | |
2023-11-20T14:19:11.746-0600 [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/drfaust92/bitbucket/2.37.2/darwin_arm64/terraform-provider-bitbucket_v2.37.2 pid=14322 | |
2023-11-20T14:19:11.747-0600 [DEBUG] provider: plugin exited |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment