【问题标题】:Terraform cloud stuck after AWS session timeout在 AWS 会话超时后 Terraform 云卡住了
【发布时间】:2020-03-02 00:46:04
【问题描述】:

https://app.terraform.io 上,我在使用 AWS SSO 凭证的工作区中,这意味着我的变量中有 AWS_ACCESS_KEY_ID + AWS_SECRET_ACCESS_KEY + AWS_SESSION_TOKEN。我的会话可能会过期。

我的问题是我的 AWS 会话确实已过期,但状态仍处于“计划中”。

我尝试了“取消”和“强制取消”但无济于事。

现在已经 5 天了,我想释放我的资源。 我可以手动完成,但我想让我的状态保持同步。

请注意,这个错误也存在于 CLI 上,terraform 只是不处理会话过期。但至少,我可以打断它。

我在 https://support.hashicorp.com/ 上创建了票证 #20704。

【问题讨论】:

  • 我投票结束这个问题,因为它更像是 OP 甚至提到的支持请求。

标签: terraform terraform-provider-aws terraform-cloud


【解决方案1】:

terraform 团队修复了它!

现在我有陷入超时的预期行为。

这仍然不是它应该做的,但对我来说已经足够了 => 行为与 CLI 相同。

Terraform v0.12.12
Configuring remote state backend...
Initializing Terraform configuration...
2019/11/13 23:04:09 [DEBUG] Using modified User-Agent: Terraform/0.12.12 TFC/6831c613a9
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.


------------ Terraform Enterprise System Message ------------

WARNING: This plan has timed out and will now terminate!

Terraform Enterprise enforces a 30m0s maximum run time for this operation. Please
review the logs above to determine why the run has exceeded its timeout. You
can re-run this operation by queueing a new plan in Terraform Enterprise.

-------------------------------------------------------------

Error: wait: remote command exited without exit status or exit signal

【讨论】:

    猜你喜欢
    • 2021-10-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多