フラミナル

考え方や調べたことを書き殴ります。IT技術系記事多め

Terraform 本体&provider&module の最新バージョンを取得するコマンド

f:id:lirlia:20220113143145p:plain

terraform

curl  -sH "Accept: application/vnd.github.v3+json" \\n  https://api.github.com/repos/hashicorp/terraform/releases/latest | jq -r ".name"
v1.1.3

provider

curl -sL 'https://registry.terraform.io/v1/providers/hashicorp/random' | jq -r '.version'
3.1.0

module

curl -sL 'https://registry.terraform.io/v1/modules/terraform-google-modules/gcloud/google' | jq -r '.version'
3.1.0