Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tfupdate #2615

Closed
nitrocode opened this issue Jun 29, 2022 · 1 comment
Closed

Add tfupdate #2615

nitrocode opened this issue Jun 29, 2022 · 1 comment
Labels
wontfix This will not be worked on

Comments

@nitrocode
Copy link
Member

nitrocode commented Jun 29, 2022

Have a question? Please checkout our Slack Community in the #geodesic channel or visit our Slack Archive.

Slack Community

Describe the Feature

Easy updating of module dependencies from inside geodesic

https://github.com/minamijoyo/tfupdate

hcledit can be used for this but requires more of a strategic approach where tfupdate is much more convenient

e.g. with hcledit

find . -name remote-state.tf > remote-state-files
cat remote-state-files | \
  while read remotestatefile; do \
    hcledit block list --file $remotestatefile | \
      while read block; do \
        echo "hcledit attribute set $block.version '\"0.22.1\"' --file $remotestatefile -u"; \
        echo "hcledit attribute rm $block.stack_config_local_path --file $remotestatefile -u"; \
      done;
  done > update-remotestate.sh
chmod +x update-remotestate.sh
./update-remotestate.sh

https://github.com/minamijoyo/tfupdate#module

tfupdate module --version "0.23.0" "cloudposse/stack-config/yaml//modules/remote-state" -r .

NOTE: for the above update, we'd still require hcledit to remove the stack_config_local_path but tdupdate is useful for upgrading module versions across a repository

The formula for this should be similar to the following since the tool is created by the same author.

https://github.com/cloudposse/packages/tree/master/vendor/tfschema
https://github.com/cloudposse/packages/tree/master/vendor/hcledit

@Nuru Nuru added the wontfix This will not be worked on label May 24, 2024
@Nuru
Copy link
Sponsor Contributor

Nuru commented May 24, 2024

Closing as wontfix (not going to do it) because there is not enough interest plus, going forward, it is unclear if it contains BSL licensed code.

@Nuru Nuru closed this as completed May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants