lib/idlc-sdk-deploy/config.rb in idlc-sdk-deploy-1.0.0.rc7 vs lib/idlc-sdk-deploy/config.rb in idlc-sdk-deploy-1.0.0.rc8
- old
+ new
@@ -34,11 +34,11 @@
end
def configure_state(bucket, sub_bucket)
validate_environment
- configure_tfstatev8 if Terraform::Binary::config.version.to_i <= 0.8
+ configure_tfstatev8(bucket, sub_bucket) if Terraform::Binary::config.version.to_i <= 0.8
configure_tfstatev9 if Terraform::Binary::config.version.to_i > 0.8
end
def parse(config_file)
raise ArgumentError, "#{config_file} does not exist" unless File.exist? config_file
@@ -56,10 +56,10 @@
end
end
private
- def configure_tfstatev8
+ def configure_tfstatev8(bucket, sub_bucket)
args = []
args << '-backend=s3'
args << '-backend-config="acl=private"'
args << "-backend-config=\"bucket=#{bucket}\""
args << '-backend-config="encrypt=true"'