terragrunt

Terragrunt is a thin wrapper for Terraform that provides extra tools for working with multiple Terraform modules.

MIT License

Stars
7.6K
Committers
279

Bot releases are hidden (Show)

terragrunt - v0.28.21

Published by brikis98 over 3 years ago

Updated CLI args, config attributes and blocks

  • get_original_terragrunt_dir() [NEW]
  • generate
  • remote_state

Description

  • Added a new get_original_terragrunt_dir() helper, which returns the directory where the original Terragrunt configuration file (by default terragrunt.hcl) lives. This is primarily useful when one Terragrunt config is being read from another: e.g., if /terraform-code/terragrunt.hcl calls read_terragrunt_config("/foo/bar.hcl"), and within bar.hcl, you call get_original_terragrunt_dir(), you'll get back /terraform-code.
  • Updated the generate and remote_state settings so that they can be set either as blocks or attributes. This makes it possible to, for example, read these settings from common.hcl using read_terragrunt_config and set them dynamically.

Related links

terragrunt - v0.28.20

Published by brikis98 over 3 years ago

Updated CLI args, config attributes and blocks

  • --terragrunt-strict-include

Description

  • When you pass in --terragrunt-strict-include, Terragrunt will now only execute within the directories passed in via --terragrunt-include-dir. If you set --terragrunt-strict-include, but don't pass in any directories via --terragrunt-include-dir, then Terragrunt will exit without doing anything. This is arguably a backwards incompatible change, but this is the behavior the --terragrunt-strict-include flag was intended to have originally, and is less surprising, so we're treating this as a bug fix.

Special thanks

  • Thank you to @celestialorb for the contribution!

Related links

terragrunt - v0.28.19

Published by brikis98 over 3 years ago

Updated CLI args, config attributes and blocks

  • retry_max_attempts [NEW]
  • retry_sleep_interval_sec [NEW]

Description

  • Updated Terragrunt's auto retry functionality so that you can now configure the number of retry attempts and the time between retries using the new config attributes retry_max_attempts and retry_sleep_interval_sec, respectively.
  • Switch log level of terragrunt dependency fetching informational messages to debug.

Special thanks

  • Thank you to @andreykaipov for the contribution!

Related links

terragrunt - v0.28.18

Published by yorinasub17 over 3 years ago

Updated CLI args, config attributes and blocks

  • validate-inputs [CLI Command]

Description

  • Fixes bug where default = null was viewed as a required input variable by validate-inputs.

Related links

terragrunt - v0.28.17

Published by brikis98 over 3 years ago

Updated CLI args, config attributes and blocks

  • Auto Init

Description

  • When automatically calling terraform init, Terragrunt will no longer pass the deprecated -get-plugins flag.

Special thanks

Special thanks to @davidalger for the contribution!

Related links

terragrunt - v0.28.16

Published by yorinasub17 over 3 years ago

Updated CLI args, config attributes and blocks

  • get_terragrunt_source_cli_flag [func] [NEW]
  • terraform.source [attr]

Description

  • Add a new helper function get_terragrunt_source_cli_flag for getting the value passed for the --terragrunt-source arg. This is useful for implementing various logic that depends on whether terragrunt is running in local dev mode or not.

  • The source getter for terragrunt now supports multiple forced getters, such as git-remote-codecommit URLs.

Special thanks

Special thanks to @suhussai for their contribution!

Related links

terragrunt - v0.28.15

Published by yorinasub17 over 3 years ago

Updated CLI args, config attributes and blocks

  • remote_state [S3 config] [block]

Description

You can now specify a custom DynamoDB endpoint on the remote state configuration for S3 using the dynamodb_endpoint attribute in the config.

Special thanks

Special thanks to @alxrem for their contribution!

Related links

terragrunt - v0.28.14

Published by yorinasub17 over 3 years ago

Updated CLI args, config attributes and blocks

  • terraform.before_hook [subblock]
  • terraform.after_hook [subblock]

Description

Hook configurations now accept a working_dir attribute to specify where the command should run.

Related links

terragrunt - v0.28.13

Published by brikis98 over 3 years ago

Description

We have updated the creack/pty dependency to to version 1.1.11. This will hopefully fix the "Setctty set but Ctty not valid in child" error when using terragrunt console.

Special thanks

Thank you to @abohne for the fix!

Related links

terragrunt - v0.28.12

Published by yorinasub17 over 3 years ago

Description

Starting this release, we will be publishing binaries for the darwin/arm64 (compatible with Mac M1 chips) and linux/arm64 platforms.

Related links

terragrunt - v0.28.11

Published by yorinasub17 over 3 years ago

Updated CLI args, config attributes and blocks

  • validate-inputs [new command]

Description

This release introduces a new command validate-inputs. You can use this to sanity check the inputs you are passing through terragrunt against the available variables in the terraform module. Refer to the command docs for more info.

Related links

terragrunt - v0.28.10

Published by ina-stoyanova over 3 years ago

Updated CLI args, config attributes and blocks

  • remote_state

Description

Added a new property accesslogging_target_prefix to enable control over the TargetPrefix setting when Server Access Logging is enabled for Remote TF State S3 buckets.

Note: This attribute won’t take effect if the accesslogging_bucket_name attribute is not present.

More details can be found further in the official Terragrunt docs

remote_state {
  backend = "s3"
  config = {
    bucket         = "my-terraform-state"
    ...
    ...
    accesslogging_bucket_name = "valid_string_for_S3_bucket_bame"
    accesslogging_target_prefix = "valid_string" # NEW PROPERTY
  }
}

Special thanks

  • @dsecik for raising this issue!

Related links

terragrunt - v0.28.9

Published by brikis98 over 3 years ago

Updated CLI args, config attributes and blocks

  • AWS Go SDK version

Description

  • Updated the version of the AWS Go SDK used in Terragrunt. This should allow Terragrunt to work with AWS SSO / AWS CLI v2.

Special thanks

  • Thank you to @z0mbix for the contribution!

Related links

terragrunt - v0.28.8

Published by brikis98 over 3 years ago

Updated CLI args, config attributes and blocks

  • Logging for run-all

Description

  • Terragrunt will now remove extraneous newlines from the log output of the run-all command.

Related links

terragrunt - v0.28.7

Published by yorinasub17 over 3 years ago

Updated CLI args, config attributes and blocks

  • run_cmd [func]

Description

  • run_cmd will now automatically chomp trailing whitespace (including newlines) from the returned output.

Special thanks

Special thanks to @twang817 and @tbell83 for their contribution!

Related links

terragrunt - v0.28.6

Published by brikis98 over 3 years ago

Updated CLI args, config attributes and blocks

  • Logging

Description

  • In v0.28.0, when we switched Terragrunt to use a proper logger that supported different log levels, we set the default log level to WARN. The intention was to make Terragrunt's logging less noisy, but as an unintended side effect, we ended up suppressing some log messages that are important to see. This release changes the default log level to INFO and should fix most of the logging issues.

Related links

terragrunt - v0.28.5

Published by yorinasub17 over 3 years ago

Updated CLI args, config attributes and blocks

  • auto-init

Description

  • Terragrunt will no longer error and continue to run commands when you disable AutoInit but init is needed.

Related links

terragrunt - v0.28.4

Published by yorinasub17 over 3 years ago

Updated CLI args, config attributes and blocks

  • run-all [CLI]

Description

  • Fix bug where run-all no longer allowed positional args.

Related links

terragrunt - v0.28.3

Published by yorinasub17 over 3 years ago

Updated CLI args, config attributes and blocks

  • dependency [block]

Description

  • This release introduces a further optimization to dependency output fetching where it will skip the init phase if it detects that the module has previously been locally initialized.

Related links

terragrunt - v0.28.2

Published by brikis98 over 3 years ago

Updated CLI args, config attributes and blocks

  • (interactive prompts)

Description

  • Fix a bug introduced via the new logging functionality in v0.28.0, where, depending on your log level, Terragrunt's interactive prompts may have been hidden. Interactive prompts should now be visible regardless of log level.

Related links