> For the complete documentation index, see [llms.txt](https://docs.cloudscript.ai/cloudscript/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudscript.ai/cloudscript/syntax/component-modules/service-blocks/default-provider.md).

# Default Provider

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.

```hcl
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.&#x20;

<pre class="language-hcl"><code class="lang-hcl"><strong>service "name" {
</strong><strong>  provider = "aws"
</strong><strong>  ...
</strong><strong>  compute "gcp_vm" {
</strong><strong>    provider       = "google"
</strong><strong>    resource_type  = "google_compute_instance"
</strong><strong>    ...
</strong><strong>  }
</strong><strong>}
</strong></code></pre>
