Skip to content

Instantly share code, notes, and snippets.

@aalimovs
Created March 25, 2022 17:05
Show Gist options
  • Save aalimovs/1bb313a01a6a476821754816438d07f0 to your computer and use it in GitHub Desktop.
Save aalimovs/1bb313a01a6a476821754816438d07f0 to your computer and use it in GitHub Desktop.
2022-03-25T16:11:22.975Z [INFO] backend/local: apply calling Apply
2022-03-25T16:11:22.976Z [INFO] terraform: building graph: GraphTypeApply
2022-03-25T16:11:22.977Z [DEBUG] Resource state not found for node "module.tenant_config.vault_identity_entity_alias.iam_test", instance module.tenant_config.vault_identity_entity_alias.iam_test
2022-03-25T16:11:22.978Z [DEBUG] adding implicit provider configuration provider["registry.terraform.io/hashicorp/vault"], implied first by module.tenant_config.data.vault_auth_backend.jwt (expand)
2022-03-25T16:11:22.978Z [DEBUG] adding implicit provider configuration provider["registry.terraform.io/hashicorp/null"], implied first by module.tenant_config.null_resource.tenant_api (expand)
2022-03-25T16:11:22.979Z [DEBUG] ProviderTransformer: "module.tenant_config.vault_identity_group_alias.ldap (expand)" (*terraform.nodeExpandApplyableResource) needs module.tenant_config.provider["registry.terraform.io/hashicorp/vault"]
2022-03-25T16:11:22.979Z [DEBUG] ProviderTransformer: "module.tenant_config.null_resource.tenant_api (expand)" (*terraform.nodeExpandApplyableResource) needs provider["registry.terraform.io/hashicorp/null"]
2022-03-25T16:11:22.979Z [DEBUG] ProviderTransformer: "module.tenant_config.vault_identity_group.identity_group (expand)" (*terraform.nodeExpandApplyableResource) needs module.tenant_config.provider["registry.terraform.io/hashicorp/vault"]
2022-03-25T16:11:22.979Z [DEBUG] ProviderTransformer: "module.tenant_config.module.iam.vault_aws_auth_backend_sts_role.role (expand)" (*terraform.nodeExpandApplyableResource) needs module.tenant_config.provider["registry.terraform.io/hashicorp/vault"]
2022-03-25T16:11:22.979Z [DEBUG] ProviderTransformer: "module.tenant_config.module.iam.data.vault_generic_secret.vault_role (expand)" (*terraform.nodeExpandApplyableResource) needs module.tenant_config.provider["registry.terraform.io/hashicorp/vault"]
2022-03-25T16:11:22.979Z [DEBUG] ProviderTransformer: "module.tenant_config.module.iam.data.vault_auth_backend.aws (expand)" (*terraform.nodeExpandApplyableResource) needs module.tenant_config.provider["registry.terraform.io/hashicorp/vault"]
2022-03-25T16:11:22.979Z [DEBUG] ProviderTransformer: "module.tenant_config.vault_identity_entity_alias.jwt (expand)" (*terraform.nodeExpandApplyableResource) needs module.tenant_config.provider["registry.terraform.io/hashicorp/vault"]
2022-03-25T16:11:22.979Z [DEBUG] ProviderTransformer: "module.tenant_config.data.vault_auth_backend.ldap (expand)" (*terraform.nodeExpandApplyableResource) needs module.tenant_config.provider["registry.terraform.io/hashicorp/vault"]
2022-03-25T16:11:22.979Z [DEBUG] ProviderTransformer: "module.tenant_config.data.vault_auth_backend.jwt (expand)" (*terraform.nodeExpandApplyableResource) needs module.tenant_config.provider["registry.terraform.io/hashicorp/vault"]
2022-03-25T16:11:22.979Z [DEBUG] ProviderTransformer: "module.tenant_config.vault_generic_endpoint.aws_backend_config_iam_alias (expand)" (*terraform.nodeExpandApplyableResource) needs module.tenant_config.provider["registry.terraform.io/hashicorp/vault"]
2022-03-25T16:11:22.979Z [DEBUG] ProviderTransformer: "module.tenant_config.data.vault_auth_backend.aws (expand)" (*terraform.nodeExpandApplyableResource) needs module.tenant_config.provider["registry.terraform.io/hashicorp/vault"]
2022-03-25T16:11:22.980Z [DEBUG] ProviderTransformer: "module.tenant_config.module.iam.vault_identity_entity_alias.iam (expand)" (*terraform.nodeExpandApplyableResource) needs module.tenant_config.provider["registry.terraform.io/hashicorp/vault"]
2022-03-25T16:11:22.980Z [DEBUG] ProviderTransformer: "module.tenant_config.module.iam.vault_identity_entity.iam (expand)" (*terraform.nodeExpandApplyableResource) needs module.tenant_config.provider["registry.terraform.io/hashicorp/vault"]
2022-03-25T16:11:22.980Z [DEBUG] ProviderTransformer: "module.tenant_config.vault_identity_entity.jwt (expand)" (*terraform.nodeExpandApplyableResource) needs module.tenant_config.provider["registry.terraform.io/hashicorp/vault"]
2022-03-25T16:11:22.980Z [DEBUG] ProviderTransformer: "module.tenant_config.vault_identity_group.ldap (expand)" (*terraform.nodeExpandApplyableResource) needs module.tenant_config.provider["registry.terraform.io/hashicorp/vault"]
2022-03-25T16:11:22.980Z [DEBUG] ProviderTransformer: "module.tenant_config.module.iam.vault_aws_auth_backend_role.iam_role (expand)" (*terraform.nodeExpandApplyableResource) needs module.tenant_config.provider["registry.terraform.io/hashicorp/vault"]
2022-03-25T16:11:22.980Z [DEBUG] ProviderTransformer: "module.tenant_config.vault_identity_entity_alias.iam_test" (*terraform.NodeApplyableResourceInstance) needs module.tenant_config.provider["registry.terraform.io/hashicorp/vault"]
2022-03-25T16:11:22.980Z [DEBUG] ProviderTransformer: "module.tenant_config.vault_identity_entity_alias.iam_test (expand)" (*terraform.nodeExpandApplyableResource) needs module.tenant_config.provider["registry.terraform.io/hashicorp/vault"]
2022-03-25T16:11:22.980Z [DEBUG] ProviderTransformer: "module.tenant_config.vault_jwt_auth_backend_role.role (expand)" (*terraform.nodeExpandApplyableResource) needs module.tenant_config.provider["registry.terraform.io/hashicorp/vault"]
2022-03-25T16:11:22.981Z [DEBUG] pruning unused provider["registry.terraform.io/hashicorp/vault"]
2022-03-25T16:11:22.983Z [DEBUG] ReferenceTransformer: "module.tenant_config.local.tenant_config (expand)" references: [module.tenant_config.local.yaml_config (expand)]
2022-03-25T16:11:22.983Z [DEBUG] ReferenceTransformer: "module.tenant_config.local.programme (expand)" references: []
2022-03-25T16:11:22.983Z [DEBUG] ReferenceTransformer: "module.tenant_config.local.tenant_config_string (expand)" references: [module.tenant_config.local.yaml_config (expand) module.tenant_config.local.builtin_roles (expand)]
2022-03-25T16:11:22.983Z [DEBUG] ReferenceTransformer: "module.tenant_config.module.iam.output.member_entity_ids (expand)" references: [module.tenant_config.module.iam.vault_identity_entity.iam (expand)]
2022-03-25T16:11:22.983Z [DEBUG] ReferenceTransformer: "module.tenant_config.vault_identity_entity_alias.jwt (expand)" references: [module.tenant_config.local.gitlab_project_ids (expand)]
2022-03-25T16:11:22.983Z [DEBUG] ReferenceTransformer: "module.tenant_config.vault_identity_group_alias.ldap (expand)" references: [module.tenant_config.local.ldap_group_mappings (expand)]
2022-03-25T16:11:22.983Z [DEBUG] ReferenceTransformer: "module.tenant_config.data.vault_auth_backend.ldap (expand)" references: []
2022-03-25T16:11:22.983Z [DEBUG] ReferenceTransformer: "module.tenant_config.local.dns_slug (expand)" references: [module.tenant_config.local.environment (expand)]
2022-03-25T16:11:22.984Z [DEBUG] ReferenceTransformer: "module.tenant_config.data.vault_auth_backend.jwt (expand)" references: []
2022-03-25T16:11:22.984Z [DEBUG] ReferenceTransformer: "module.tenant_config.module.iam.vault_identity_entity.iam (expand)" references: [module.tenant_config.module.iam.var.aws_iam_arns (expand)]
2022-03-25T16:11:22.984Z [INFO] ReferenceTransformer: reference not found: "each.key"
2022-03-25T16:11:22.984Z [DEBUG] ReferenceTransformer: "module.tenant_config.module.iam.var.tenant_id (expand)" references: []
2022-03-25T16:11:22.984Z [DEBUG] ReferenceTransformer: "module.tenant_config.vault_identity_entity_alias.iam_test" references: [module.tenant_config.data.vault_auth_backend.aws (expand)]
2022-03-25T16:11:22.984Z [DEBUG] ReferenceTransformer: "module.tenant_config.local.gitlab_project_ids (expand)" references: [module.tenant_config.local.tenant_config (expand)]
2022-03-25T16:11:22.984Z [DEBUG] ReferenceTransformer: "module.tenant_config.local.vault_url (expand)" references: [module.tenant_config.local.environment (expand)]
2022-03-25T16:11:22.984Z [DEBUG] ReferenceTransformer: "module.tenant_config.null_resource.tenant_api (expand)" references: []
2022-03-25T16:11:22.984Z [DEBUG] ReferenceTransformer: "module.tenant_config.vault_identity_entity_alias.iam_test (expand)" references: []
2022-03-25T16:11:22.984Z [DEBUG] ReferenceTransformer: "module.tenant_config.var.environment (expand)" references: []
2022-03-25T16:11:22.984Z [DEBUG] ReferenceTransformer: "module.tenant_config.local.ldap_group_mappings (expand)" references: [module.tenant_config.local.ldap_groups (expand) module.tenant_config.local.tenant_config (expand) module.tenant_config.local.tenant_config (expand) module.tenant_config.local.tenant_config (expand)]
2022-03-25T16:11:22.984Z [DEBUG] ReferenceTransformer: "module.tenant_config.vault_identity_group.identity_group (expand)" references: [module.tenant_config.local.tenant_config (expand)]
2022-03-25T16:11:22.984Z [DEBUG] ReferenceTransformer: "module.tenant_config.module.iam.vault_aws_auth_backend_sts_role.role (expand)" references: [module.tenant_config.module.iam.var.aws_iam_arns (expand)]
2022-03-25T16:11:22.985Z [DEBUG] ReferenceTransformer: "module.tenant_config.local.vault_namespace_prefix (expand)" references: [module.tenant_config.local.environment (expand)]
2022-03-25T16:11:22.985Z [DEBUG] ReferenceTransformer: "module.tenant_config.local.product (expand)" references: []
2022-03-25T16:11:22.985Z [INFO] ReferenceTransformer: reference not found: "path.module"
2022-03-25T16:11:22.985Z [DEBUG] ReferenceTransformer: "module.tenant_config.local.builtin_roles (expand)" references: []
2022-03-25T16:11:22.985Z [DEBUG] ReferenceTransformer: "module.tenant_config.vault_generic_endpoint.aws_backend_config_iam_alias (expand)" references: []
2022-03-25T16:11:22.985Z [DEBUG] ReferenceTransformer: "module.tenant_config.data.vault_auth_backend.aws (expand)" references: []
2022-03-25T16:11:22.985Z [DEBUG] ReferenceTransformer: "module.tenant_config.module.iam.data.vault_generic_secret.vault_role (expand)" references: [module.tenant_config.module.iam.var.aws_iam_arns (expand)]
2022-03-25T16:11:22.985Z [DEBUG] ReferenceTransformer: "module.tenant_config.local.environment (expand)" references: [module.tenant_config.var.environment (expand)]
2022-03-25T16:11:22.985Z [DEBUG] ReferenceTransformer: "module.tenant_config.local.oidc_policy_name (expand)" references: []
2022-03-25T16:11:22.985Z [INFO] ReferenceTransformer: reference not found: "path.module"
2022-03-25T16:11:22.985Z [DEBUG] ReferenceTransformer: "module.tenant_config.local.yaml_config (expand)" references: [module.tenant_config.local.environment (expand)]
2022-03-25T16:11:22.985Z [DEBUG] ReferenceTransformer: "module.tenant_config (expand)" references: []
2022-03-25T16:11:22.986Z [DEBUG] ReferenceTransformer: "module.tenant_config.module.iam (close)" references: []
2022-03-25T16:11:22.986Z [DEBUG] ReferenceTransformer: "module.tenant_config.vault_jwt_auth_backend_role.role (expand)" references: [module.tenant_config.local.gitlab_project_ids (expand)]
2022-03-25T16:11:22.986Z [DEBUG] ReferenceTransformer: "module.tenant_config.vault_identity_entity.jwt (expand)" references: [module.tenant_config.local.gitlab_project_ids (expand)]
2022-03-25T16:11:22.986Z [DEBUG] ReferenceTransformer: "module.tenant_config.local.ldap_groups (expand)" references: [module.tenant_config.local.tenant_config (expand)]
2022-03-25T16:11:22.986Z [DEBUG] ReferenceTransformer: "module.tenant_config.provider[\"registry.terraform.io/hashicorp/vault\"]" references: [module.tenant_config.local.vault_namespace_prefix (expand) module.tenant_config.local.programme (expand) module.tenant_config.local.product (expand) module.tenant_config.local.environment (expand) module.tenant_config.local.vault_url (expand)]
2022-03-25T16:11:22.986Z [INFO] ReferenceTransformer: reference not found: "each.value"
2022-03-25T16:11:22.986Z [DEBUG] ReferenceTransformer: "module.tenant_config.module.iam.var.aws_iam_arns (expand)" references: []
2022-03-25T16:11:22.986Z [DEBUG] ReferenceTransformer: "provider[\"registry.terraform.io/hashicorp/null\"]" references: []
2022-03-25T16:11:22.986Z [DEBUG] ReferenceTransformer: "module.tenant_config (close)" references: []
2022-03-25T16:11:22.986Z [DEBUG] ReferenceTransformer: "module.tenant_config.module.iam (expand)" references: [module.tenant_config.local.tenant_config (expand)]
2022-03-25T16:11:22.986Z [DEBUG] ReferenceTransformer: "module.tenant_config.vault_identity_group.ldap (expand)" references: [module.tenant_config.local.ldap_group_mappings (expand)]
2022-03-25T16:11:22.986Z [DEBUG] ReferenceTransformer: "module.tenant_config.module.iam.vault_aws_auth_backend_role.iam_role (expand)" references: [module.tenant_config.module.iam.var.aws_iam_arns (expand)]
2022-03-25T16:11:22.986Z [DEBUG] ReferenceTransformer: "module.tenant_config.module.iam.vault_identity_entity_alias.iam (expand)" references: [module.tenant_config.module.iam.var.aws_iam_arns (expand)]
2022-03-25T16:11:22.986Z [DEBUG] ReferenceTransformer: "module.tenant_config.module.iam.data.vault_auth_backend.aws (expand)" references: []
2022-03-25T16:11:22.996Z [DEBUG] pruneUnusedNodes: module.tenant_config.vault_generic_endpoint.aws_backend_config_iam_alias (expand) is no longer needed, removing
2022-03-25T16:11:22.997Z [DEBUG] pruneUnusedNodes: module.tenant_config.module.iam.data.vault_generic_secret.vault_role (expand) is no longer needed, removing
2022-03-25T16:11:22.997Z [DEBUG] pruneUnusedNodes: module.tenant_config.local.oidc_policy_name (expand) is no longer needed, removing
2022-03-25T16:11:22.997Z [DEBUG] pruneUnusedNodes: module.tenant_config.vault_jwt_auth_backend_role.role (expand) is no longer needed, removing
2022-03-25T16:11:22.998Z [DEBUG] pruneUnusedNodes: module.tenant_config.vault_identity_entity.jwt (expand) is no longer needed, removing
2022-03-25T16:11:22.998Z [DEBUG] pruneUnusedNodes: module.tenant_config.vault_identity_group.ldap (expand) is no longer needed, removing
2022-03-25T16:11:22.998Z [DEBUG] pruneUnusedNodes: module.tenant_config.module.iam.vault_aws_auth_backend_role.iam_role (expand) is no longer needed, removing
2022-03-25T16:11:22.998Z [DEBUG] pruneUnusedNodes: module.tenant_config.module.iam.vault_identity_entity_alias.iam (expand) is no longer needed, removing
2022-03-25T16:11:22.998Z [DEBUG] pruneUnusedNodes: module.tenant_config.module.iam.data.vault_auth_backend.aws (expand) is no longer needed, removing
2022-03-25T16:11:22.998Z [DEBUG] pruneUnusedNodes: module.tenant_config.local.tenant_config_string (expand) is no longer needed, removing
2022-03-25T16:11:22.998Z [DEBUG] pruneUnusedNodes: module.tenant_config.module.iam.output.member_entity_ids (expand) is no longer needed, removing
2022-03-25T16:11:22.998Z [DEBUG] pruneUnusedNodes: module.tenant_config.vault_identity_entity_alias.jwt (expand) is no longer needed, removing
2022-03-25T16:11:22.998Z [DEBUG] pruneUnusedNodes: module.tenant_config.vault_identity_group_alias.ldap (expand) is no longer needed, removing
2022-03-25T16:11:23.000Z [DEBUG] pruneUnusedNodes: module.tenant_config.data.vault_auth_backend.ldap (expand) is no longer needed, removing
2022-03-25T16:11:23.000Z [DEBUG] pruneUnusedNodes: module.tenant_config.local.dns_slug (expand) is no longer needed, removing
2022-03-25T16:11:23.000Z [DEBUG] pruneUnusedNodes: module.tenant_config.local.builtin_roles (expand) is no longer needed, removing
2022-03-25T16:11:23.000Z [DEBUG] pruneUnusedNodes: module.tenant_config.module.iam.vault_aws_auth_backend_sts_role.role (expand) is no longer needed, removing
2022-03-25T16:11:23.000Z [DEBUG] pruneUnusedNodes: module.tenant_config.vault_identity_group.identity_group (expand) is no longer needed, removing
2022-03-25T16:11:23.000Z [DEBUG] pruneUnusedNodes: module.tenant_config.local.ldap_group_mappings (expand) is no longer needed, removing
2022-03-25T16:11:23.000Z [DEBUG] pruneUnusedNodes: module.tenant_config.local.ldap_groups (expand) is no longer needed, removing
2022-03-25T16:11:23.000Z [DEBUG] pruneUnusedNodes: module.tenant_config.null_resource.tenant_api (expand) is no longer needed, removing
2022-03-25T16:11:23.000Z [DEBUG] pruneUnusedNodes: module.tenant_config.data.vault_auth_backend.jwt (expand) is no longer needed, removing
2022-03-25T16:11:23.000Z [DEBUG] pruneUnusedNodes: module.tenant_config.module.iam.vault_identity_entity.iam (expand) is no longer needed, removing
2022-03-25T16:11:23.000Z [DEBUG] pruneUnusedNodes: module.tenant_config.module.iam.var.tenant_id (expand) is no longer needed, removing
2022-03-25T16:11:23.000Z [DEBUG] pruneUnusedNodes: module.tenant_config.local.gitlab_project_ids (expand) is no longer needed, removing
2022-03-25T16:11:23.000Z [DEBUG] pruneUnusedNodes: module.tenant_config.module.iam.var.aws_iam_arns (expand) is no longer needed, removing
2022-03-25T16:11:23.001Z [DEBUG] pruneUnusedNodes: provider["registry.terraform.io/hashicorp/null"] is no longer needed, removing
2022-03-25T16:11:23.001Z [DEBUG] pruneUnusedNodes: module.tenant_config.module.iam (expand) is no longer needed, removing
2022-03-25T16:11:23.001Z [DEBUG] pruneUnusedNodes: module.tenant_config.local.tenant_config (expand) is no longer needed, removing
2022-03-25T16:11:23.001Z [DEBUG] pruneUnusedNodes: module.tenant_config.local.yaml_config (expand) is no longer needed, removing
2022-03-25T16:11:23.003Z [DEBUG] Starting graph walk: walkApply
2022-03-25T16:11:23.009Z [DEBUG] created provider logger: level=debug
2022-03-25T16:11:23.012Z [INFO] provider: configuring client automatic mTLS
2022-03-25T16:11:23.134Z [DEBUG] provider: starting plugin: path=.terraform/providers/registry.terraform.io/hashicorp/vault/3.3.1/linux_amd64/terraform-provider-vault_v3.3.1_x4 args=[.terraform/providers/registry.terraform.io/hashicorp/vault/3.3.1/linux_amd64/terraform-provider-vault_v3.3.1_x4]
2022-03-25T16:11:23.137Z [DEBUG] provider: plugin started: path=.terraform/providers/registry.terraform.io/hashicorp/vault/3.3.1/linux_amd64/terraform-provider-vault_v3.3.1_x4 pid=23904
2022-03-25T16:11:23.137Z [DEBUG] provider: waiting for RPC address: path=.terraform/providers/registry.terraform.io/hashicorp/vault/3.3.1/linux_amd64/terraform-provider-vault_v3.3.1_x4
2022-03-25T16:11:23.198Z [INFO] provider.terraform-provider-vault_v3.3.1_x4: configuring server automatic mTLS: timestamp=2022-03-25T16:11:23.197Z
2022-03-25T16:11:23.224Z [DEBUG] provider.terraform-provider-vault_v3.3.1_x4: plugin address: network=unix address=/tmp/plugin1022361932 timestamp=2022-03-25T16:11:23.224Z
2022-03-25T16:11:23.225Z [DEBUG] provider: using plugin: version=5
2022-03-25T16:11:23.402Z [WARN] ValidateProviderConfig from "module.tenant_config.provider[\"registry.terraform.io/hashicorp/vault\"]" changed the config value, but that value is unused
2022-03-25T16:11:23.404Z [INFO] provider.terraform-provider-vault_v3.3.1_x4: 2022/03/25 16:11:23 [DEBUG] Vault API Request Details:
---[ REQUEST ]---------------------------------------
GET /v1/auth/token/lookup-self HTTP/1.1
Host: vault.foobar.com
User-Agent: Go-http-client/1.1
X-Vault-Namespace: foo/bar
X-Vault-Request: true
X-Vault-Token: hmac-sha256:e20dee54e107a10a74eaf9195915f0a6faeef4ea66e1209ed19e613c4bf5054e
Accept-Encoding: gzip
-----------------------------------------------------: timestamp=2022-03-25T16:11:23.403Z
2022-03-25T16:11:23.439Z [INFO] provider.terraform-provider-vault_v3.3.1_x4: 2022/03/25 16:11:23 [DEBUG] Vault API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Content-Length: 722
Cache-Control: no-store
Content-Type: application/json
Date: Fri, 25 Mar 2022 16:11:23 GMT
{
"request_id": "78d2cc83-d130-0b16-4998-df85941c07a0",
"lease_id": "",
"renewable": false,
"lease_duration": 0,
"data": {
"accessor": "aDmaf3AR8zBhV38WCas46lw0.FOOBAR",
"creation_time": 1648215075,
"creation_ttl": 2764800,
"display_name": "foo-bar-auth-ldap-u.123123",
"entity_id": "7ddf5c43-2aea-d20c-8375-ab86ee9c66fc",
"expire_time": "2022-04-26T14:31:15.966866682+01:00",
"explicit_max_ttl": 0,
"id": "s.FOOBARhKVFSvOHcyaC91RVGd.FOOBAR",
"issue_time": "2022-03-25T13:31:15.966877656Z",
"meta": {
"username": "FOOBAR"
},
"namespace_path": "foo/bar/",
"num_uses": 0,
"orphan": true,
"path": "auth/ldap/login/FOOBAR",
"policies": [
"default",
"bar-admin"
],
"renewable": true,
"ttl": 2755194,
"type": "service"
},
"wrap_info": null,
"warnings": null,
"auth": null
}
-----------------------------------------------------: timestamp=2022-03-25T16:11:23.439Z
2022-03-25T16:11:23.441Z [INFO] provider.terraform-provider-vault_v3.3.1_x4: 2022/03/25 16:11:23 [DEBUG] Vault API Request Details:
---[ REQUEST ]---------------------------------------
POST /v1/auth/token/create HTTP/1.1
Host: vault.foobar.com
User-Agent: Go-http-client/1.1
Content-Length: 128
X-Vault-Namespace: foo/bar/
X-Vault-Request: true
X-Vault-Token: hmac-sha256:FOOBAR
Accept-Encoding: gzip
{
"ttl": "1200s",
"explicit_max_ttl": "1200s",
"display_name": "terraform",
"num_uses": 0,
"renewable": false,
"type": "",
"entity_alias": ""
}
-----------------------------------------------------: timestamp=2022-03-25T16:11:23.440Z
2022-03-25T16:11:23.514Z [INFO] provider.terraform-provider-vault_v3.3.1_x4: 2022/03/25 16:11:23 [DEBUG] Vault API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Content-Length: 476
Cache-Control: no-store
Content-Type: application/json
Date: Fri, 25 Mar 2022 16:11:23 GMT
{
"request_id": "9e1bf461-579c-c47e-8c95-65769d1c9d6b",
"lease_id": "",
"renewable": false,
"lease_duration": 0,
"data": null,
"wrap_info": null,
"warnings": null,
"auth": {
"client_token": "s.p1EtzEiOK77k1kPhPjJgurIp.FOOBAR",
"accessor": "CjUGXiARmBmmFa8FnEwRx6zR.FOOBAR",
"policies": [
"default",
"bar-admin"
],
"token_policies": [
"default",
"bar-admin"
],
"metadata": null,
"lease_duration": 1200,
"renewable": false,
"entity_id": "7ddf5c43-2aea-d20c-8375-ab86ee9c66fc",
"token_type": "service",
"orphan": false
}
}
-----------------------------------------------------: timestamp=2022-03-25T16:11:23.514Z
2022-03-25T16:11:23.514Z [INFO] provider.terraform-provider-vault_v3.3.1_x4: 2022/03/25 16:11:23 [INFO] Using Vault token with the following policies: default, bar-admin: timestamp=2022-03-25T16:11:23.514Z
module.tenant_config.vault_identity_entity_alias.iam_test: Creating...
2022-03-25T16:11:23.520Z [INFO] Starting apply for module.tenant_config.vault_identity_entity_alias.iam_test
2022-03-25T16:11:23.520Z [DEBUG] module.tenant_config.vault_identity_entity_alias.iam_test: applying the planned Create change
2022-03-25T16:11:23.521Z [INFO] provider.terraform-provider-vault_v3.3.1_x4: 2022/03/25 16:11:23 [DEBUG] Vault API Request Details:
---[ REQUEST ]---------------------------------------
PUT /v1/identity/entity-alias HTTP/1.1
Host: vault.foobar.com
User-Agent: Go-http-client/1.1
Content-Length: 131
X-Vault-Namespace: foo/bar/zoo
X-Vault-Request: true
X-Vault-Token: hmac-sha256:107c3b66145339eddf2791457b833320c8c61b063752fcf46a090af8dcaed2bb
Accept-Encoding: gzip
{
"canonical_id": "ef9176fc-c246-f77b-949a-0c61b7f84382",
"custom_metadata": {},
"mount_accessor": "auth_aws_ca8e7d5d",
"name": "test_foo"
}
-----------------------------------------------------: timestamp=2022-03-25T16:11:23.521Z
2022-03-25T16:11:23.536Z [INFO] provider.terraform-provider-vault_v3.3.1_x4: 2022/03/25 16:11:23 [DEBUG] Vault API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 200 OK
Content-Length: 257
Cache-Control: no-store
Content-Type: application/json
Date: Fri, 25 Mar 2022 16:11:23 GMT
{
"request_id": "da3c3202-8ba3-20f5-31f0-373f4ca1de8f",
"lease_id": "",
"renewable": false,
"lease_duration": 0,
"data": {
"canonical_id": "ef9176fc-c246-f77b-949a-0c61b7f84382",
"id": "e1d0b710-749c-eb50-f5de-ecdf2f75a665"
},
"wrap_info": null,
"warnings": null,
"auth": null
}
-----------------------------------------------------: timestamp=2022-03-25T16:11:23.536Z
2022-03-25T16:11:23.537Z [INFO] provider.terraform-provider-vault_v3.3.1_x4: 2022/03/25 16:11:23 [DEBUG] Wrote IdentityEntityAlias "test_foo": timestamp=2022-03-25T16:11:23.536Z
2022-03-25T16:11:23.537Z [INFO] provider.terraform-provider-vault_v3.3.1_x4: 2022/03/25 16:11:23 [DEBUG] Reading IdentityEntityAlias e1d0b710-749c-eb50-f5de-ecdf2f75a665 from "/identity/entity-alias/id/e1d0b710-749c-eb50-f5de-ecdf2f75a665": timestamp=2022-03-25T16:11:23.537Z
2022-03-25T16:11:23.537Z [INFO] provider.terraform-provider-vault_v3.3.1_x4: 2022/03/25 16:11:23 [DEBUG] Vault API Request Details:
---[ REQUEST ]---------------------------------------
GET /v1/identity/entity-alias/id/e1d0b710-749c-eb50-f5de-ecdf2f75a665 HTTP/1.1
Host: vault.foobar.com
User-Agent: Go-http-client/1.1
X-Vault-Namespace: foo/bar/zoo
X-Vault-Request: true
X-Vault-Token: hmac-sha256:FOOBAR
Accept-Encoding: gzip
-----------------------------------------------------: timestamp=2022-03-25T16:11:23.537Z
2022-03-25T16:11:23.540Z [INFO] provider.terraform-provider-vault_v3.3.1_x4: 2022/03/25 16:11:23 [DEBUG] Vault API Response Details:
---[ RESPONSE ]--------------------------------------
HTTP/2.0 404 Not Found
Content-Length: 14
Cache-Control: no-store
Content-Type: application/json
Date: Fri, 25 Mar 2022 16:11:23 GMT
{
"errors": []
}
-----------------------------------------------------: timestamp=2022-03-25T16:11:23.540Z
2022-03-25T16:11:23.540Z [INFO] provider.terraform-provider-vault_v3.3.1_x4: 2022/03/25 16:11:23 [DEBUG] Read IdentityEntityAlias e1d0b710-749c-eb50-f5de-ecdf2f75a665: timestamp=2022-03-25T16:11:23.540Z
2022-03-25T16:11:23.540Z [INFO] provider.terraform-provider-vault_v3.3.1_x4: 2022/03/25 16:11:23 [WARN] IdentityEntityAlias "e1d0b710-749c-eb50-f5de-ecdf2f75a665" not found, removing from state: timestamp=2022-03-25T16:11:23.540Z
2022/03/25 16:11:23 [DEBUG] POST https://gitlab.foobar.com/api/v4/projects/4681/terraform/state/zoo?ID=2ce685df-fe4c-4e35-91c2-b20add31880e
│ Error: Provider produced inconsistent result after apply
│ When applying changes to module.tenant_config.vault_identity_entity_alias.iam_test, provider "module.tenant_config.provider[\"registry.terraform.io/hashicorp/vault\"]" produced an unexpected new value: Root resource was present, but now absent.
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
2022/03/25 16:11:23 [DEBUG] DELETE https://gitlab.foobar.com/api/v4/projects/4681/terraform/state/zoo/lock
2022-03-25T16:11:24.034Z [DEBUG] provider.stdio: received EOF, stopping recv loop: err="rpc error: code = Unavailable desc = transport is closing"
2022-03-25T16:11:24.041Z [DEBUG] provider: plugin process exited: path=.terraform/providers/registry.terraform.io/hashicorp/vault/3.3.1/linux_amd64/terraform-provider-vault_v3.3.1_x4 pid=23904
2022-03-25T16:11:24.041Z [DEBUG] provider: plugin exited
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment