Skip to content

Commit e3b87ec

Browse files
chore(examples): add version constraints to ubuntu example (#707)
* Create version constraint on Random, and also move to 'required_providers' (post-Terraform 0.13 change). * Formatting.
1 parent 1a31840 commit e3b87ec

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

examples/ubuntu/providers.tf

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1+
terraform {
2+
required_providers {
3+
aws = {
4+
version = "3.20"
5+
}
6+
random = {
7+
version = "3.1.0"
8+
}
9+
}
10+
}
11+
12+
113
provider "aws" {
2-
region = local.aws_region
3-
version = "3.20"
14+
region = local.aws_region
15+
}
16+
17+
provider "random" {
418
}

0 commit comments

Comments
 (0)