terraspace 2.2.15 → 2.2.17
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/lib/templates/base/project/Gemfile.tt +2 -0
- data/lib/terraspace/check.rb +1 -1
- data/lib/terraspace/cli/help/untaint.md +1 -1
- data/lib/terraspace/compiler/erb/rewrite.rb +1 -1
- data/lib/terraspace/terraform/api/vars/json.rb +1 -1
- data/lib/terraspace/terraform/args/pass.rb +1 -1
- data/lib/terraspace/terraform/remote_state/fetcher.rb +1 -1
- data/lib/terraspace/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ec8023758e5b18fa45f15235bb0e3a85b7fb7a5663f0d07a23ec5115342ef9e1
|
4
|
+
data.tar.gz: acefd153cfd10dac01f9dd3e315e5dcfd4252f5bb2e6b0dfc5624b34190c569f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa0efda34bdb11e2394065dbcb5661c4f6a30e35e928821e1e9c0cea129df1ac03a2f224e18e45fc204cc85c545ea68e4a05426843096ee7d3ee9425a9746712
|
7
|
+
data.tar.gz: 4d9c05b50e2fc9baf0454fdfd473fd70e509775211a71ee9f8df14ba60618e67386bca2f8a562a62f1b253b9f6ab37a166f889b49a9fa41bb24945ba9c8b76e5
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,15 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
This project *loosely tries* to adhere to [Semantic Versioning](http://semver.org/), even before v1.0.
|
5
5
|
|
6
|
+
## [2.2.17] - 2024-05-30
|
7
|
+
- [#347](https://github.com/boltops-tools/terraspace/pull/347) fixing typo in untaint help file
|
8
|
+
- [#348](https://github.com/boltops-tools/terraspace/pull/348) Allow up to terraform `1.5.7`
|
9
|
+
- [#349](https://github.com/boltops-tools/terraspace/pull/349) Add checks around plugin_gem_name in project Gemfile template
|
10
|
+
|
11
|
+
## [2.2.16] - 2024-01-12
|
12
|
+
- [#339](https://github.com/boltops-tools/terraspace/pull/339) Use Terraspace.tmp_root value instead of hard-coded '/tmp/terraspace'
|
13
|
+
- [#345](https://github.com/boltops-tools/terraspace/pull/345) Update to use terraform_bin for state pull and help
|
14
|
+
|
6
15
|
## [2.2.15] - 2023-10-18
|
7
16
|
- [#331](https://github.com/boltops-tools/terraspace/pull/331) adding tainting/untainting as a terraspace command
|
8
17
|
- [#332](https://github.com/boltops-tools/terraspace/pull/332) terraspace fmt: generalize and pass through fmt option
|
@@ -1,7 +1,9 @@
|
|
1
1
|
source "https://rubygems.org"
|
2
2
|
|
3
3
|
gem "terraspace", "~> <%= terraspace_minor_version %>"
|
4
|
+
<% if plugin_gem_name -%>
|
4
5
|
gem "<%= plugin_gem_name %>"
|
6
|
+
<% end -%>
|
5
7
|
gem "rspec-terraspace"
|
6
8
|
|
7
9
|
# Uncomment the ci and vcs provider you wish to use. Should use both ci and vcs gem
|
data/lib/terraspace/check.rb
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
|
5
5
|
Example with output:
|
6
6
|
|
7
|
-
$ terraspace
|
7
|
+
$ terraspace untaint ec2 aws_instance.my_instance
|
8
8
|
Building .terraspace-cache/us-east-1/dev/stacks/ec2
|
9
9
|
Hook: Running terraspace before build hook.
|
10
10
|
Current directory: .terraspace-cache/us-east-1/dev/stacks/ec2
|
@@ -8,7 +8,7 @@ module Terraspace::Compiler::Erb
|
|
8
8
|
input = IO.read(@src_path)
|
9
9
|
output = replace(input)
|
10
10
|
tfvar_path = @src_path.sub(Terraspace.root,'')
|
11
|
-
temp_path = "/
|
11
|
+
temp_path = "#{Terraspace.tmp_root}/rewrite#{tfvar_path}"
|
12
12
|
FileUtils.mkdir_p(File.dirname(temp_path))
|
13
13
|
IO.write(temp_path, output)
|
14
14
|
temp_path
|
@@ -16,7 +16,7 @@ class Terraspace::Terraform::Api::Vars
|
|
16
16
|
rescue JSON::ParserError => e
|
17
17
|
# TODO: show exact line with error
|
18
18
|
logger.info("ERROR in json: #{e.class}: #{e.message}")
|
19
|
-
path = "/
|
19
|
+
path = "#{Terraspace.tmp_root}/terraspace/debug/vars.json"
|
20
20
|
logger.info("Result also written to #{path} for inspection")
|
21
21
|
FileUtils.mkdir_p(File.dirname(path))
|
22
22
|
IO.write(path, result)
|
@@ -71,7 +71,7 @@ module Terraspace::Terraform::RemoteState
|
|
71
71
|
return unless success
|
72
72
|
|
73
73
|
FileUtils.mkdir_p(File.dirname(state_path))
|
74
|
-
command = "cd #{@child.cache_dir} &&
|
74
|
+
command = "cd #{@child.cache_dir} && #{Terraspace.terraform_bin} state pull > #{state_path}"
|
75
75
|
logger.debug "=> #{command}"
|
76
76
|
success = system(command)
|
77
77
|
# Can error if using a old terraform version and the statefile was created with a newer version of terraform
|
data/lib/terraspace/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: terraspace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tung Nguyen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-05-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -970,7 +970,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
970
970
|
- !ruby/object:Gem::Version
|
971
971
|
version: '0'
|
972
972
|
requirements: []
|
973
|
-
rubygems_version: 3.4.
|
973
|
+
rubygems_version: 3.4.19
|
974
974
|
signing_key:
|
975
975
|
specification_version: 4
|
976
976
|
summary: 'Terraspace: The Terraspace Framework'
|