You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: sanitized cluster name when using existing (#160)
due to #159 , a bug was introduced for the usage of existing ecs_cluster
name.
renamed field to `sanitized_cluster_name` for clarity, and protected it
to fit both use-cases.
more in depth explanation
- input-variable format is `foo`
- while data format for the cluster_name is
`arn:aws:ecs:eu-west-3:425287181461:cluster/foo`. for the ECS autoscale,
we just need `foo`.
not sure about why data is so non-useful ¯\_(ツ)_/¯
```
$ terraform state show module.aws_cloudvision_single_account.module.cloud_connector.data.aws_ecs_cluster.this
data "aws_ecs_cluster" "this" {
arn = "arn:aws:ecs:eu-west-3:425287181461:cluster/foo"
cluster_name = "arn:aws:ecs:eu-west-3:425287181461:cluster/foo"
id = "arn:aws:ecs:eu-west-3:425287181461:cluster/foo"
...
}
```
0 commit comments