AWS会话超时后Terraform云阻塞

时间:2019-11-05 15:44:29

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

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

我的问题是我的AWS会话确实过期了,但状态仍在“ PLANNING”中。

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

已经5天了,我想释放我的资源。 我可以手动进行操作,但我想保持状态同步。

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

terraform cloud

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

1 个答案:

答案 0 :(得分:0)

地形团队将其修复!

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

这仍然不是应该做的,但对我来说已经足够了=>行为与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