Difference between revisions of "Required version"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{lc}} | {{lc}} | ||
required_version | required_version | ||
+ | |||
+ | |||
+ | terraform { | ||
+ | required_version = "~> 1.0.0" | ||
+ | [[required_providers]] { | ||
+ | aws = { | ||
+ | source = "hashicorp/aws" | ||
+ | version = "~> 3.0" | ||
+ | } | ||
+ | random = { | ||
+ | source = "hashicorp/random" | ||
+ | version = "3.1.0" | ||
+ | } | ||
+ | } | ||
+ | } | ||
== Related == | == Related == | ||
* <code>[[versions.tf]]</code> | * <code>[[versions.tf]]</code> | ||
* [[Terraform blocks]] | * [[Terraform blocks]] | ||
+ | * [[required_providers]] | ||
== See also == | == See also == |
Revision as of 15:46, 4 April 2023
required_version
terraform { required_version = "~> 1.0.0" required_providers { aws = { source = "hashicorp/aws" version = "~> 3.0" } random = { source = "hashicorp/random" version = "3.1.0" } } }
Related
See also
- Terraform provider:
AWS, Cloudflare
,GoogleWorkspace
,Kubernetes, Helm, .terraform/providers/
,template
,tfe
,providers.tf, dns, hashicorp/, hashicorp/tls
, Terraform provider versioning, Libvirt, datadog,terraform providers, required_version, onepassword
,rancher2
,time, terraform.tf
- Terraform blocks:
terraform, cloud, moved, dynamic
, Terraform import block,required_providers
Advertising: