Skip to content

Instantly share code, notes, and snippets.

@goyalmohit
Created September 29, 2020 17:08

Revisions

  1. goyalmohit created this gist Sep 29, 2020.
    18 changes: 18 additions & 0 deletions dynamodb-table.tf
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,18 @@
    terraform {
    required_version = ">= 0.12, < 0.13"
    }

    provider "aws" {
    region = "us-east-2"
    }

    resource "aws_dynamodb_table" "terraform-locks" {
    name = "terraform-locks-mohit-20200929"
    billing_mode = "PAY_PER_REQUEST"
    hash_key = "LockID"

    attribute {
    name = "LockID"
    type = "S"
    }
    }