Commit 301ecd9
iru
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"
...
}
```1 parent 0ce09a9 commit 301ecd9
File tree
4 files changed
+13
-11
lines changed- modules/services/cloud-connector-ecs
- test/trigger-events
4 files changed
+13
-11
lines changedLines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
4 | 11 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
0 commit comments