Open3

DynamoDBで遊ぶ

not75743not75743

やること

  • dynamodbとs3をterraformで用意
  • s3のjsonをdynamodbにインポート
  • 続く
not75743not75743

dynamodbとs3をterraformで用意

main.tf
main.tf
resource "aws_s3_bucket" "main" {
  bucket = "dynamo-import-20240208"
}

resource "aws_dynamodb_table" "main" {
  name           = "testtable"
  billing_mode   = "PROVISIONED"
  read_capacity  = 10
  write_capacity = 10
  hash_key       = "Id"

  attribute {
    name = "Id"
    type = "S"
  }
}
not75743not75743

s3のjsonをdynamodbにインポート

大変参考にした
https://dev.classmethod.jp/articles/dynamodb-import-from-s3-export-to-s3/