Commit 51b2842
authored
fix: convert the fleet instance type in migration script (#975)
## Description
The instance types for the fleet are not converted. In this case the
module uses a default value `m5.large`. So all created instances are
`m5.large` instances which is usually not wanted.
If the migration script was used to convert the module call to version
7, it is very likely that you find the following in your module call:
```hcl
runner_instance = {
docker_machine_types_fleet = ["t3.medium"] # your instance types here
}
```
The variable `docker_machine_types_fleet` does not exist, but Terraform
does not report an error.
This PR fixes the migration script and produces the following correct
code:
```hcl
runner_worker_docker_machine_instance = {
types = ["t3.medium"]
}
```
## Migrations required
No
## Verification
Verified locally that the script produces the output as described above.1 parent ae6d38a commit 51b2842
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
521 | 521 | | |
522 | 522 | | |
523 | 523 | | |
524 | | - | |
| 524 | + | |
525 | 525 | | |
526 | | - | |
| 526 | + | |
527 | 527 | | |
528 | 528 | | |
529 | 529 | | |
| |||
0 commit comments