Skip to content

Commit

Permalink
Add required provider block, upgraded versions
Browse files Browse the repository at this point in the history
  • Loading branch information
im2nguyen committed Dec 3, 2020
1 parent 1da4618 commit 69182f2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
6 changes: 0 additions & 6 deletions main.tf
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
provider "aws" {
version = "2.33.0"

region = var.aws_region
}

provider "random" {
version = "2.2"
}

resource "random_pet" "table_name" {}

resource "aws_dynamodb_table" "tfc_example_table" {
Expand Down
13 changes: 13 additions & 0 deletions versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
terraform {
required_providers {
random = {
source = "hashicorp/random"
version = "3.0.0"
}

aws = {
source = "hashicorp/aws"
version = "~> 3.18"
}
}
}

0 comments on commit 69182f2

Please sign in to comment.