lib/yle_tf/backend.rb
# Generate backend configuration file for Terraform
Generate backend configuration file for Terraform
Generate backend configuration file for Terraform
def configure
      data = {
        terraform: [{
          backend: [to_h]
        }]
      }
      File.write(BACKEND_CONFIG_FILE, JSON.pretty_generate(data))
    end
def configure data = { terraform : [ { backend : [ to_h ] } ] } File . write ( BACKEND_CONFIG_FILE , JSON . pretty_generate ( data ) ) end
Generate backend configuration file for Terraform
Generate backend configuration file for Terraform