Skip to content

Commit

Permalink
Bump default terraform version to 1.9.0, add all known terraform vers…
Browse files Browse the repository at this point in the history
…ions inbetween (#21110)

Downloaded all the files and generated the mappings that have been
missing since 1.7.1.

Wondering if we should remove all the EOL'd versions - according to
[their
support](https://support.hashicorp.com/hc/en-us/articles/360021185113-Support-Period-and-End-of-Life-EOL-Policy),
they support versions for ~2 years
and in fact the wording suggests that they only support at most 2 major
versions (which would be, most charitably, 1.7)
  • Loading branch information
purajit authored Jun 29, 2024
1 parent b1592ca commit 1d62bba
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/notes/2.23.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ Exported virtualenvs can use Pants-provided Python if a `PythonProvider` backend

#### Terraform

The default version of terraform has been updated from 1.7.1 to 1.9.0.

The `tfsec` linter now works on all supported platforms without extra config.

`tfsec` versions are now provided in semver format, without "v" prefixes.
Expand Down
46 changes: 45 additions & 1 deletion src/python/pants/backend/terraform/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class TerraformTool(TemplatedExternalTool):

# TODO: Possibly there should not be a default version, since terraform state is sensitive to
# the version that created it, so you have to be deliberate about the version you select.
default_version = "1.7.1"
default_version = "1.9.0"
default_url_template = (
"https://releases.hashicorp.com/terraform/{version}/terraform_{version}_{platform}.zip"
)
Expand All @@ -46,6 +46,50 @@ class TerraformTool(TemplatedExternalTool):
@classproperty
def default_known_versions(cls):
return [
"1.9.0|linux_arm64|f5c0a49b482c008a6afd2248c08ca919e599c1154a850ff94809f4a85c86eb3b|24710285",
"1.9.0|linux_x86_64|ab1358e73a81096bbe04201ef403a32e0765c5f6e360692d170d32d0889a4871|27010938",
"1.9.0|macos_arm64|b7701c42a9b69524cfe79f0928d48ec4d648bc5e08794df12e8b41b56a0a395c|25718506",
"1.9.0|macos_x86_64|b69196c831d6315b6e79178c96a66365d724cf4b922ad4a9763cd970aeeecd45|27940121",
"1.8.5|linux_arm64|17b3a243ea24003a58ab324c197da8609fccae136bcb8a424bf61ec475b3a203|24450605",
"1.8.5|linux_x86_64|bb1ee3e8314da76658002e2e584f2d8854b6def50b7f124e27b957a42ddacfea|26744662",
"1.8.5|macos_arm64|627c5005ab4a2bee36316f4967a41f16d55f79ea737f78b6bb34325c728c73e1|25454927",
"1.8.5|macos_x86_64|051c702e156a4d1a1c628783cf2ca0e1db8cca7b4c0f1686ea623558ed5560f9|27659471",
"1.8.4|linux_arm64|76668e7742ee8f815fe6de28c8b84507e6171b26966426c2eb8eea8e64fe2f33|24451088",
"1.8.4|linux_x86_64|12167574ae0deb219a1008bd4c15ff13dac7198d57870f48433d53fe2b0b28c4|26745153",
"1.8.4|macos_arm64|6a54d2862c8244febe6077a1fc6e9e6cc4e65eee8169049e77ce08df233cf49a|25454007",
"1.8.4|macos_x86_64|5968872b07677829002d0a7ad34cf0c4cd02893a1c131e4ca30236442ceec445|27659715",
"1.8.3|linux_arm64|5fd3c4ee4cf23f79641f77006d29544b41fbcde5d22202566322266e6fca2607|24433179",
"1.8.3|linux_x86_64|4ff78474d0407ba6e8c3fb9ef798f2822326d121e045577f80e2a637ec33f553|26721624",
"1.8.3|macos_arm64|2622426fd6e8483db6d62605f52ea6eddb0e88a09e8cea1c24b9310879490227|25439736",
"1.8.3|macos_x86_64|a4f695e64948ad66fe05e2f589cfe5221b8597ff16173ebed8055d3a90aaa739|27637539",
"1.8.2|linux_arm64|e00726a0c8e4b06b31873446c639454358a0efb73a604198473f526d60e66100|24432938",
"1.8.2|linux_x86_64|74f3cc4151e52d94e0ecbe900552adc9b8440b4a8dc12f7fdaab2d0280788acc|26721112",
"1.8.2|macos_arm64|f871f4c91eafec6e6e88253dc3cc0b6a21d63fa56fee5ee1629f3ce68a605873|25437898",
"1.8.2|macos_x86_64|a71ada335aba64ac1851ffbb2cf8f727a06013d02474dd70c4571f585b1fe522|27637114",
"1.8.1|linux_arm64|dfc825bd488679163a2768f3c87261ce43b4747720a6cc4e2a63935961ce4582|24412348",
"1.8.1|linux_x86_64|265d28a1a6dd81bdd5822eba55663613b7a51c582d663f9417f8777905d39002|26687165",
"1.8.1|macos_arm64|27834a6450c4046af812dcc3faff3c0c56c8c499ca9990d7cd43ef7f844077ed|25408443",
"1.8.1|macos_x86_64|89aace89147ca00d5200282aa766866e32268e191d97aceca7629fc2379aaab9|27610020",
"1.8.0|linux_arm64|47cbde7184ce260160ff0355065d454ffa5628a2259ba325736dbcf740351193|24413500",
"1.8.0|linux_x86_64|dcc4670379a22213e72faa6cb709b3391e7e54967e40288ecf591e2b83cfd39e|26690615",
"1.8.0|macos_arm64|abfb06eb80f1acd19ab8a01f6d24a4a5f99ba9b628c3b00a3b0c898709eea3b3|25410972",
"1.8.0|macos_x86_64|1aee4f880706edf98efb972d4f5cec2cd4c23904c17a26d51af6326d6f06a64e|27610301",
"1.7.5|linux_arm64|08631c385667dd28f03b3a3f77cb980393af4a2fcfc2236c148a678ad9150c8c|23696490",
"1.7.5|linux_x86_64|3ff056b5e8259003f67fd0f0ed7229499cfb0b41f3ff55cc184088589994f7a5|25959930",
"1.7.5|macos_arm64|99c4d4feafb0183af2f7fbe07beeea6f83e5f5a29ae29fee3168b6810e37ff98|25902918",
"1.7.5|macos_x86_64|0eaf64e28f82e2defd06f7a6f3187d8cea03d5d9fcd2af54f549a6c32d6833f7|27560118",
"1.7.4|linux_arm64|36680616b54c5ce8c8222c7bf81c187727b3c5c1a3a6e3af5b5372caa28697b7|23686053",
"1.7.4|linux_x86_64|285539a6fd62fb79f05edc15cc207ca90f282901c32261085ea0642a0d638dfd|25940915",
"1.7.4|macos_arm64|3f25268a5d7677cc89d39a505362979acfb02f19ddb965d7ec0b33a6d9e64075|25891173",
"1.7.4|macos_x86_64|fcf35c8b1d3f46fb84f688312ef5f829081d2d56c10444b9f6e290e21e68871c|27539134",
"1.7.3|linux_arm64|e9a8a2f676b51a5334d00a0c3695b24ca75e30f4f449eb191e304fedfa099565|23682523",
"1.7.3|linux_x86_64|617042989ce46b5dd07772237b49b57b8f8e97b1604c9dbbd85ead87effb51fe|25940403",
"1.7.3|macos_arm64|85cddfd303c45989f0948a70ae03bb30f66c6e6106383697fe85ccd739137ca6|25892413",
"1.7.3|macos_x86_64|4787f5a422439d3b277a889b159981e88049f48bcf9e41e70481620567a7fd9c|27538904",
"1.7.2|linux_arm64|1fe2b047ac8354aca92a8037b57d813f5e60b7b0ba02acbecb899d990663326e|23683035",
"1.7.2|linux_x86_64|e3965584b2347edd294ca97068af573654716abbb2ce5230d309692dab659267|25939436",
"1.7.2|macos_arm64|d8c7b8b1aa7f0b38a2e437d9c9e4e632b2b258e3bf48bb6de4626f3b0afea5e4|25891861",
"1.7.2|macos_x86_64|dad2fd54b3dda89b39978dcd27c8c62e13010efdc0507a04b6ad57257b57085e|27538796",
"1.7.1|macos_x86_64|db05d272f5070eacab70fc14a091f5a9e6c734423794901d79ffd3c612933235|27539148",
"1.7.1|macos_arm64|d4ee3a591d022fda26e1eb153a25e38ee4f0311720719c329ed38cf2ae8c14e5|25891566",
"1.7.1|linux_x86_64|64ea53ae52a7e199bd6f647c31613ea4ef18f58116389051b4a34a29fb04624a|25939359",
Expand Down

0 comments on commit 1d62bba

Please sign in to comment.