iapi-idlc-sdk-pfm 1.0.21 → 1.0.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a32820d50fec0ce8b36efc5ce98186f7ebfdaaba66babe47ee275322dc25278
|
4
|
+
data.tar.gz: 94dd9f25ae01f1fe7c30d1e12a99e6df53e5644a066856b35a22b5af2a0037e2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 520463754084efa3c6d3652f8410ec6ba621078b7645d7172147c0ca0bd6682c819c830dac3bce705b5e03f72c3af30c3353eedb30d9c8e3440e0b5dfe56d676
|
7
|
+
data.tar.gz: 5710b93fa597becf02e4328741d8d801d0e0553b516cc1d39172ba598014cddcf86067c1df5880617059b0e4714f0de4b0b1ff431952d6b7efa91ddc920a3056
|
@@ -222,6 +222,9 @@ module Pfm
|
|
222
222
|
FileUtils.mkdir_p "inf/env/kp"
|
223
223
|
download_private_key(env_metadata['account']['tfstate_bucket'], env_metadata['environment_key'], "inf/env/kp")
|
224
224
|
Idlc::Deploy::Keypair.generate("inf/env/kp")
|
225
|
+
if upgraded_terraform?
|
226
|
+
FileUtils.ln_sf("../inf", "package-infra/inf")
|
227
|
+
end
|
225
228
|
|
226
229
|
config = Idlc::Deploy::Config.new(SETTINGS['AWS_REGION'])
|
227
230
|
config.configure_state(
|
@@ -54,7 +54,7 @@ module Pfm
|
|
54
54
|
Idlc::Deploy::Config.add_deployment_var('app_release', 'null')
|
55
55
|
|
56
56
|
if upgraded_terraform?
|
57
|
-
Terraform::Binary::Command.run("-chdir
|
57
|
+
Terraform::Binary::Command.run("-chdir=#{dir} destroy")
|
58
58
|
else
|
59
59
|
Terraform::Binary.destroy("#{dir}")
|
60
60
|
end
|
@@ -37,7 +37,7 @@ module Pfm
|
|
37
37
|
|
38
38
|
begin
|
39
39
|
if upgraded_terraform?
|
40
|
-
Terraform::Binary::Command.run("-chdir
|
40
|
+
Terraform::Binary::Command.run("-chdir=#{inf_base_dir}/tf fmt")
|
41
41
|
else
|
42
42
|
tf_paths.each do |path|
|
43
43
|
# Format the file to a canonical syntax
|
@@ -71,8 +71,8 @@ module Pfm
|
|
71
71
|
def plan(dir)
|
72
72
|
begin
|
73
73
|
if upgraded_terraform?
|
74
|
-
Terraform::Binary::Command.run("-chdir
|
75
|
-
Terraform::Binary::Command.run("-chdir
|
74
|
+
Terraform::Binary::Command.run("-chdir=#{dir} plan") unless @config[:landscape]
|
75
|
+
Terraform::Binary::Command.run("-chdir=#{dir} plan | landscape") if @config[:landscape]
|
76
76
|
else
|
77
77
|
Terraform::Binary.plan(dir.to_s) unless @config[:landscape]
|
78
78
|
Terraform::Binary.plan("#{dir} | landscape") if @config[:landscape]
|