Default Provider
(Note: all providers that are used must be specified within the "Providers" block initially)
The default provider for all the components within a service block must be defined initially, as shown below. This default provider is what the components are deployed with unless otherwise specified.
service "name" {
provider = "aws"
...
}
If different components need to be deployed with different providers, the provider can be re-specified within the component's definition itself.
service "name" {
provider = "aws"
...
compute "gcp_vm" {
provider = "google"
resource_type = "google_compute_instance"
...
}
}
Last updated