Skip to content

Commit

Permalink
Fix Terraform::Runner credentials
Browse files Browse the repository at this point in the history
  • Loading branch information
agrare committed May 24, 2024
1 parent 0571625 commit fc4aa99
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,12 @@ def pre_execute

def execute
template_path = File.join(options[:git_checkout_tempdir], template_relative_path)
credentials = Authentication.where(:id => options[:credentials])

response = Terraform::Runner.run(
options[:input_vars],
template_path,
:credentials => options[:credentials],
:credentials => credentials,
:env_vars => options[:env_vars]
)

Expand Down
2 changes: 1 addition & 1 deletion lib/terraform/runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def available?
# terraform-runner run
# @param template_path [String] Path to the template we will want to run
# @param tags [Hash] Hash with key/values pairs that will be passed as tags to the terraform-runner run
# @param credentials [Array] List of Authentication object ids to provide to the terraform run
# @param credentials [Array] List of Authentication objects to provide to the terraform run
# @param env_vars [Hash] Hash with key/value pairs that will be passed as environment variables to the
# terraform-runner run
# @return [Terraform::Runner::ResponseAsync] Response object of terraform-runner create action
Expand Down

0 comments on commit fc4aa99

Please sign in to comment.