Skip to content

Releases: theothertomelliott/bazel-terraform-rules

0.2.6

14 Jun 23:08
Compare
Choose a tag to compare

Adding to your Workspace

To use this version, add the following lines to your WORKSPACE file:

# Import http_archive if not already in use
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# Add Terraform rules as repository
http_archive(
    name = "tf_modules",
    urls = ["https://github.com/theothertomelliott/bazel-terraform-rules/releases/download/0.2.6/bazel-terraform-rules-0.2.6.tar.gz"],
    sha256 = "f8070448022403c95a86a287df5f5093ffc368d5fd7052fe9bedf4cb4e2d53d7",
)
load("@tf_modules//terraform:versions.bzl", "register_terraform_version")

load("@tf_modules//:deps.bzl", "bazel_terraform_rules_deps")
bazel_terraform_rules_deps()

# Register required Terraform versions
register_terraform_version("1.2.3", default=True)

Changelog

Changes
  • 46d53e4: Allow users to disable init on build entirely

0.2.5

14 Jun 20:00
Compare
Choose a tag to compare

Adding to your Workspace

To use this version, add the following lines to your WORKSPACE file:

# Import http_archive if not already in use
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# Add Terraform rules as repository
http_archive(
    name = "tf_modules",
    urls = ["https://github.com/theothertomelliott/bazel-terraform-rules/releases/download/0.2.5/bazel-terraform-rules-0.2.5.tar.gz"],
    sha256 = "c70e54a1ecd5d21e3212f6fce6e3bcb64b7b73e354f7214f7d4b7300f7042994",
)
load("@tf_modules//terraform:versions.bzl", "register_terraform_version")

load("@tf_modules//:deps.bzl", "bazel_terraform_rules_deps")
bazel_terraform_rules_deps()

# Register required Terraform versions
register_terraform_version("1.2.3", default=True)

Changelog

Changes
  • 9785e43: Simplify module path references

0.2.4

13 Jun 22:43
Compare
Choose a tag to compare

Adding to your Workspace

To use this version, add the following lines to your WORKSPACE file:

# Import http_archive if not already in use
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# Add Terraform rules as repository
http_archive(
    name = "tf_modules",
    urls = ["https://github.com/theothertomelliott/bazel-terraform-rules/releases/download/0.2.4/bazel-terraform-rules-0.2.4.tar.gz"],
    sha256 = "c6f8315149450c3d4c7ae39dd1faf7fc3dadc1c179117d256669a124c03731a9",
)
load("@tf_modules//terraform:versions.bzl", "register_terraform_version")

load("@tf_modules//:deps.bzl", "bazel_terraform_rules_deps")
bazel_terraform_rules_deps()

# Register required Terraform versions
register_terraform_version("1.2.3", default=True)

Changelog

Changes
  • 23a2d6b: Add a module to the backend init test
  • f9e3175: Add module path to working dir provider

0.2.3

10 May 21:29
Compare
Choose a tag to compare

Adding to your Workspace

To use this version, add the following lines to your WORKSPACE file:

# Import http_archive if not already in use
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# Add Terraform rules as repository
http_archive(
    name = "tf_modules",
    urls = ["https://github.com/theothertomelliott/bazel-terraform-rules/releases/download/0.2.3/bazel-terraform-rules-0.2.3.tar.gz"],
    sha256 = "dcfbb7cd6c51bef2427df1c1835cd7a211059d1450123955efbe2bfbc2ea1edc",
)
load("@tf_modules//terraform:versions.bzl", "register_terraform_version")

load("@tf_modules//:deps.bzl", "bazel_terraform_rules_deps")
bazel_terraform_rules_deps()

# Register required Terraform versions
register_terraform_version("1.2.3", default=True)

Changelog

Changes
  • 2a80a25: Add support for creating backend files at runtime
  • 2ad97f9: Change architecture to try and fix tests
  • 64be1b9: Correct tempo
  • 49df383: Another architecture fix
  • cabad0c: Add arm support for the tests

0.1.6

03 May 18:34
eb64649
Compare
Choose a tag to compare

Patch release to add more versions of Terraform before 0.2.x.

Adding to your Workspace

To use this version, add the following lines to your WORKSPACE file:

# Import http_archive if not already in use
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# Add Terraform rules as repository
http_archive(
    name = "tf_modules",
    urls = ["https://github.com/theothertomelliott/bazel-terraform-rules/releases/download/0.1.6/bazel-terraform-rules-0.1.6.tar.gz"],
)
load("@tf_modules//toolchains/terraform:toolchain.bzl", "register_terraform_toolchain")

load("@tf_modules//:deps.bzl", "bazel_terraform_rules_deps")
bazel_terraform_rules_deps()

# Register required Terraform versions
register_terraform_toolchain("1.2.3", default=True)

0.2.2

15 Apr 02:26
d18d29e
Compare
Choose a tag to compare

This release fixes an issue that resulted in build failures when using allow_provider_download.

Adding to your Workspace

To use this version, add the following lines to your WORKSPACE file:

# Import http_archive if not already in use
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# Add Terraform rules as repository
http_archive(
    name = "tf_modules",
    urls = ["https://github.com/theothertomelliott/bazel-terraform-rules/releases/download/0.2.2/bazel-terraform-rules-0.2.2.tar.gz"],
    sha256 = "82eea72e0c6edafb162958280175c7f3ddeba81ba6169a7f4df2502a532f2dbf",
)
load("@tf_modules//terraform:versions.bzl", "register_terraform_version")

load("@tf_modules//:deps.bzl", "bazel_terraform_rules_deps")
bazel_terraform_rules_deps()

# Register required Terraform versions
register_terraform_version("1.2.3", default=True)

Changelog

Changes
  • 64016c2: Fix for allow_provider_download
  • d18d29e: Merge pull request #5 from theothertomelliott/fix_provider_downloads

0.2.1

10 Apr 23:19
f83e78f
Compare
Choose a tag to compare

Adding to your Workspace

To use this version, add the following lines to your WORKSPACE file:

# Import http_archive if not already in use
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# Add Terraform rules as repository
http_archive(
    name = "tf_modules",
    urls = ["https://github.com/theothertomelliott/bazel-terraform-rules/releases/download/0.2.1/bazel-terraform-rules-0.2.1.tar.gz"],
    sha256 = "15bd70c4e27dd0a483dbf6bbee5c1acf80f19a71175fd7d20c4bc88c65401747",
)
load("@tf_modules//terraform:versions.bzl", "register_terraform_version")

load("@tf_modules//:deps.bzl", "bazel_terraform_rules_deps")
bazel_terraform_rules_deps()

# Register required Terraform versions
register_terraform_version("1.2.3", default=True)

Changelog

Changes
  • 693533f: Add more version and update the documentation for Running Terraform
  • f83e78f: Merge pull request #4 from sk-yext/documentation_update

0.2.0

01 Apr 14:16
29475a5
Compare
Choose a tag to compare

Key Changes

This release introduces a number of significant changes to how the Terraform rules operate, along with new guidelines in their use.

  • It is recommended that you define separate terraform_module and terraform_working_directory targets to manage which modules are "root" modules for use with Terraform.
  • The terraform_working_directory now runs terraform init as part of the build process so initialization will not need to be repeated when executing with bazel run.
  • Terraform Providers may be declared in your WORKSPACE for better caching and more reproducible builds.
  • Terragrunt is no longer supported and associated rules have been removed.

With the exception of the removal of Terragrunt support, these changes should be backwards compatible with existing usages.

See the README for more details.

Adding to your Workspace

To use this version, add the following lines to your WORKSPACE file:

# Import http_archive if not already in use
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# Add Terraform rules as repository
http_archive(
    name = "tf_modules",
    urls = ["https://github.com/theothertomelliott/bazel-terraform-rules/releases/download/0.2.0/bazel-terraform-rules-0.2.0.tar.gz"],
    sha256 = "3811b5e1a39f254bf157907545953193c8b7b9f94474f12995129c5d363b1616",
)
load("@tf_modules//terraform:versions.bzl", "register_terraform_version")

load("@tf_modules//:deps.bzl", "bazel_terraform_rules_deps")
bazel_terraform_rules_deps()

# Register required Terraform versions
register_terraform_version("1.2.3", default=True)

Changelog

Changes
  • cfeeab7: Add an Actions workflow to publish the devcontainer
  • ed2537c: Add push trigger for test branch
  • 5f70882: Fix branch name and remove main
  • 3e54366: Fix path
  • 6a3f7c2: Log in with GH token
  • eca806b: Remove branch trigger
  • 53efd2c: Use the devcontainer build
  • 7d201c8: Add a test for building the dev container
  • aec5df7: Merge pull request #2 from theothertomelliott/devcontainer_push
  • 37bf08e: Refactor into modules and working dirs
  • b4049a2: Ensure providers are in runfiles
  • 38cdabb: Fix warning in WORKSPACE
  • b37a279: Initialize the working directory on build
  • 14fbf63: Add disable_checkpoint to the rc file
  • 15514dc: Refactor towards retaining support for the "old" macro.
  • 7054704: Run tests on all branches
  • c129a5a: Fix syntax
  • 6c7988c: Clean up warnings
  • 0a4ef7c: Don't untar .terraform in legacy mode
  • 8600c7c: Copy all files into a subdirectory to allow for flexibility in where your module and working directory rules are defined.
  • 546df88: Remove tfrc and terraform.d files from working directory build output
  • 0d8902c: Fix tests
  • bb14edc: Create a .terraform directory in case one isn't needed
  • 12ba982: Add a repository rule for loading providers
  • e82a1cd: Fix dependencies
  • 8421bda: Fix mismatch between Mac OS naming in Bazel and Terraform repository
  • f9be664: Forgot to update the variable names in previous commit
  • c9859be: Support providers in the old combined macro.
  • 584e821: Split terraform initialization from compressing .terraform.
  • c66c7b9: Remove unused toolchain configuration
  • 042e111: Delete go tests and update repos
  • 349f8b7: Update devcontainer and tidy go mod
  • 47bd077: Allow any binary filename to be used for a provider
  • 7084dbd: Document and fix tests
  • 53f83de: Expand test to make it more extensible
  • 2972a23: Move combined macro to tests to discourage use
  • 140bbed: Build all examples and update actions
  • b6791b4: Use setup-bazelisk and cache example
  • 7134018: Use a separate cache for each OS
  • dbf8aec: Limit test path (force CI workflow)
  • d030ed1: Use setup-bazel to manage Bazel
  • 2db6140: Fix syntax
  • 5d2c983: Minor change to force CI
  • ff6a660: Update documentation
  • ecf6193: Remove dev container build
  • 20af3e7: Remove Terragrunt support
  • a90a170: Create a rule for the terraform executable
  • 8d28cd7: Don't include the cache directory for newer terraform versions
  • 29475a5: Merge pull request #3 from theothertomelliott/init_on_build

0.1.5

17 Feb 07:09
Compare
Choose a tag to compare

Adding to your Workspace

To use this version, add the following lines to your WORKSPACE file:

# Import http_archive if not already in use
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# Add Terraform rules as repository
http_archive(
    name = "tf_modules",
    urls = ["https://github.com/theothertomelliott/bazel-terraform-rules/releases/download/0.1.5/bazel-terraform-rules-0.1.5.tar.gz"],
    sha256 = "b5e4428bbed26e78fc60ff2b76fda910cb13ddb50900b3879dd0916f04dab107",
)
load("@tf_modules//toolchains/terraform:toolchain.bzl", "register_terraform_toolchain")

load("@tf_modules//:deps.bzl", "bazel_terraform_rules_deps")
bazel_terraform_rules_deps()

# Register required Terraform versions
register_terraform_toolchain("1.2.3", default=True)

Changelog

  • no changes

0.1.3

06 Nov 20:57
Compare
Choose a tag to compare

Adding to your Workspace

To use this version, add the following lines to your WORKSPACE file:

# Import http_archive if not already in use
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

# Add Terraform rules as repository
http_archive(
    name = "tf_modules",
    urls = ["https://github.com/theothertomelliott/bazel-terraform-rules/releases/download/0.1.3/bazel-terraform-rules-0.1.3.tar.gz"],
    sha256 = "d3c6e768742f4b64780705b7eb7c4e03e9305e06123df8c49fce04bd1fea1247",
)
load("@tf_modules//toolchains/terraform:toolchain.bzl", "register_terraform_toolchain")

load("@tf_modules//:deps.bzl", "bazel_terraform_rules_deps")
bazel_terraform_rules_deps()

# Register required Terraform versions
register_terraform_toolchain("1.2.3", default=True)

Changelog

Changes