Open gthomson31 opened 1 year ago
I would suggest to use the offical setup-terraform action https://github.com/hashicorp/setup-terraform The same also exists for aws-cli.
@gthomson31 I think this may just be a misunderstanding.
The versions that get installed are installed under the versions/
directory. The version
file is the file that specifies the "default" version to use when not specifying a version using a .terraform-version
file or using TFENV_TERRAFORM_VERSION
.
If you have not configured a default, then no default will be present. It is not required to have a default version, but if you are not declaring a version to use by other means, then you will need to specify a default.
$ tfenv list
1.3.1
1.3.0
* 1.2.9 (set by /opt/tfenv/version)
1.2.8
$ rm /opt/tfenv/version
$ tfenv list
1.3.1
1.3.0
1.2.9
1.2.8
No default set. Set with 'tfenv use <version>'
``Hi there
Currently trying to get tfenv working within a docker image but seem to have hit the problem below. Even though versions have been installed previously as part of the docker build.
Interestingly installs appear to be writing out to a folder labelled "versions" not "version"
Running Image locally
DOCKERFILE