App Config

You can configure terraspace itself with config/app.rb. This file is directly within the config folder.

config/app.rb

Terraspace.configure do |config|
  config.logger.level = :info
  config.test_framework = "rspec"
end

Custom Logger

To use a custom logger.

Terraspace.configure do |config|
  logger = Logger.new($stdout)
  logger.level = :debug
  config.logger = logger
end

For the updated list of available config settings, refer to terraspace/app.rb.

Environment Specific Overrides

You can configure environment specific value overrides for config/app.rb with corresponding config/env/TS_ENV.rb files. Examples:

config/env/dev.rb

Terraspace.configure do |config|
  config.logger.level = :debug
end

config/env/prod.rb

Terraspace.configure do |config|
  config.logger.level = :info
end