0
我们有一个预先存在的豆秆,我们需要在上面设置标签。我修改了Terraform计划以拥有所述标签。当我运行Terraform计划时,它说它会“更新到位”。好极了?Terraform无法真正设置豆秆标签
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
~ module.beanstalk_postal-service.aws_elastic_beanstalk_environment.beanstalk
tags.%: "0" => "4"
tags.component: "" => "postal-service"
tags.extra_type: "" => "none"
tags.stack_type: "" => "ups"
tags.virtual_env: "" => "stage"
Plan: 0 to add, 1 to change, 0 to destroy.
当我运行计划它说,一切都变好了,并显示标记设置。
module.beanstalk_postal-service.aws_elastic_beanstalk_environment.beanstalk:
Modifying... (ID: e-mz7xa7jga8)
tags.%: "0" => "4"
tags.component: "" => "postal-service"
tags.extra_type: "" => "none"
tags.stack_type: "" => "ups"
tags.virtual_env: "" => "stage"
module.beanstalk_postal-service.aws_elastic_beanstalk_environment.beanstalk:
Modifications complete after 3s (ID: e-mz7xa7jga8)
如果我再次运行计划,应用后,它不会显示任何更改,指示必须设置标记。
但是,当我进入AWS控制台时,标记不会显示在beanstalk上。我昨天通过Terraform设置了一些标签并通过了计划,显示出今天需要重新设置。有人知道发生了什么事吗?
这就是我害怕的,但感谢您的确认。 –
@StivOstenberg在我们所处的隧道尽头有一盏明灯。请查看https://aws.amazon.com/about-aws/whats-new/2017/10/aws-elastic-beanstalk-supports-更新标签的能力/他们最近补充说 – mkubaczyk