Difference between revisions of "Multiple providers"

From wikieduonline
Jump to navigation Jump to search
(Redirected page to Terraform multiple providers)
Tag: New redirect
 
(3 intermediate revisions by one other user not shown)
Line 1: Line 1:
You can optionally define multiple configurations for the same [[provider]], and select which one to use on a per-resource or per-module basis. <ref>https://www.terraform.io/language/providers/configuration</ref>
+
#redirect [[Terraform multiple providers]]
 
 
=== Example ===
 
 
 
<pre>
 
# The default provider configuration; resources that begin with `aws_` will use
 
# it as the default, and it can be referenced as `aws`.
 
provider "aws" {
 
  region = "us-east-1"
 
}
 
 
 
# Additional provider configuration for west coast region; resources can
 
# reference this as `aws.west`.
 
provider "aws" {
 
  alias  = "west"
 
  region = "us-west-2"
 
}
 
</pre>
 
 
 
<pre>
 
terraform {
 
  required_providers {
 
    mycloud = {
 
      source  = "mycorp/mycloud"
 
      version = "~> 1.0"
 
      configuration_aliases = [ mycloud.alternate ]
 
    }
 
  }
 
}
 
</pre>
 
 
 
== Questions examples ==
 
* https://learn.hashicorp.com/tutorials/terraform/associate-questions?in=terraform/certification
 
* https://www.whizlabs.com/blog/terraform-certification-exam-questions/
 
* 250 questions and answers: https://medium.com/bb-tutorials-and-thoughts/250-practice-questions-for-terraform-associate-certification-7a3ccebe6a1a
 
 
 
== Related ==
 
 
 
* [[Terraform providers]]
 
* <code>[[alias]]</code>
 
 
 
== See also ==
 
* {{terraform providers}}
 
* {{Certifications}}
 
 
 
[[Category:Terraform]]
 

Latest revision as of 05:31, 15 September 2022

Advertising: