PR https://github.com/AlexsLemonade/scpca-portal/pull/953 merged feature/batch into dev. The changes made in feature/batch included adding new Batch infrastructure as well as adding management commands to submit jobs to Batch. In order to accommodate one of the arguments in one of the Batch resources, we had to update the aws_version in terraform to 5.12.0. The version of terraform that we currently use is 0.12.26.
Problem or idea
While there shouldn't be a problem using aws_version 5.12.0 with terraform version 0.12.26, we encountered an error when the GHA runner attempted to deploy a staging stack. See failed Github Action.
The GHA warning which led to the failure was as follows:
The reason why this error didn't surface before now is because GHA only spins up a terraform instance and makes deploys on merges to dev and main. While my local version of terraform that I installed through homebrew is a newer one (I wasn't able to install 0.12.x on homebrew because it's too old), the documentation that I relied on said that coupling terraform 0.12.x with aws version 5.12.0 shouldn't be a problem. This being said, but it looks like there's a GHA component that I didn't anticipate (the GPG key?) that could be the cause of the error.
Solution or next step
It seems like the clearest way forward would be to upgrade the terraform version. We could either do this as a short term patch, like upgrading to 0.12.31 (as mentioned in the GHA warning), or to go for something more modern (the current version is 1.9.8).
Context
PR https://github.com/AlexsLemonade/scpca-portal/pull/953 merged feature/batch into dev. The changes made in feature/batch included adding new Batch infrastructure as well as adding management commands to submit jobs to Batch. In order to accommodate one of the arguments in one of the Batch resources, we had to update the aws_version in terraform to 5.12.0. The version of terraform that we currently use is 0.12.26.
Problem or idea
While there shouldn't be a problem using aws_version 5.12.0 with terraform version 0.12.26, we encountered an error when the GHA runner attempted to deploy a staging stack. See failed Github Action.
The GHA warning which led to the failure was as follows:
The reason why this error didn't surface before now is because GHA only spins up a terraform instance and makes deploys on merges to dev and main. While my local version of terraform that I installed through homebrew is a newer one (I wasn't able to install 0.12.x on homebrew because it's too old), the documentation that I relied on said that coupling terraform 0.12.x with aws version 5.12.0 shouldn't be a problem. This being said, but it looks like there's a GHA component that I didn't anticipate (the GPG key?) that could be the cause of the error.
Solution or next step
It seems like the clearest way forward would be to upgrade the terraform version. We could either do this as a short term patch, like upgrading to 0.12.31 (as mentioned in the GHA warning), or to go for something more modern (the current version is 1.9.8).