Skip to content

Commit

Permalink
update version pinning of cloudposse/utils (#68)
Browse files Browse the repository at this point in the history
* update pinning
* update readme
  • Loading branch information
mcalhoun authored Jul 19, 2023
1 parent de7da5b commit 40c865c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 14 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,6 @@ We highly recommend that in your code you pin the version to the exact version y
using so that your infrastructure remains stable, and update versions in a
systematic way so that they do not catch you by surprise.

Also, because of a bug in the Terraform registry ([hashicorp/terraform#21417](https://github.com/hashicorp/terraform/issues/21417)),
the registry shows many of our inputs as required when in fact they are optional.
The table below correctly indicates which inputs are required.


For a complete example, see [examples/complete](examples/complete).

Expand Down
14 changes: 4 additions & 10 deletions modules/remote-state/versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,10 @@ terraform {
}
utils = {
source = "cloudposse/utils"
# Do not allow automatic updates to this provider
# until we have tested the new version thoroughly.
# Move the <= version constraint to the latest version
# after testing is complete. Move the >= version constraint
# when a new version adds a required feature or fixes a bug.
# If a version in between is found to have a bug,
# add a != constraint for that version.
# Leave a redundant != constraint for the last known bad version
# as an example of how to add a constraint for a bad version.
version = ">= 1.7.1, != 1.4.0, <= 1.8.0"
# We were previously pinning this to <=1.8.0, but changing this each time we had a new version was a pain. As
# a compromise, we'll pin to a minimum version, but allow any patch version below 2.0.0 and we will make sure
# that if we make any major/breaking changes in cloudposse/utils, we'll increment to 2.0.0.
version = ">= 1.7.1, != 1.4.0, < 2.0.0"
}
}
}

0 comments on commit 40c865c

Please sign in to comment.