Module: Terraspace::Plugin::InferProvider
- Included in:
- Expander::Interface, Layer::Interface
- Defined in:
- lib/terraspace/plugin/infer_provider.rb
Instance Method Summary collapse
-
#provider ⇒ Object
Examples: TerraspacePluginAws => aws TerraspacePluginAzurerm => azurerm TerraspacePluginGoogle => google.
Instance Method Details
#provider ⇒ Object
Examples:
TerraspacePluginAws => aws
TerraspacePluginAzurerm => azurerm
TerraspacePluginGoogle => google
If multiple clouds used in a single Terraspace project. The TS_PROVIDER_EXPANSION env var provides a way to change it. Can possibly use config hooks to set different values based on the module being deployed: terraspace.cloud/docs/config/hooks/
11 12 13 |
# File 'lib/terraspace/plugin/infer_provider.rb', line 11 def provider ENV['TS_PROVIDER'] || self.class.to_s.split('::').first.sub('TerraspacePlugin','').underscore end |