This repository contains the code for the blog post データ競合を気にしながらS3イベントを処理してみた 〜Rust・Lambda・DynamoDBを添えて〜
- Rust
- Cargo Lambda
- Terraform
-
Clone the repository
git clone https://github.com/kinto-technologies/techblog-s3-sequencer-example.git
-
Change directory to the repository
cd techblog-s3-sequencer-example/terraform
-
Edit the
providers.tf
file and update theregion
,profile
andbucket
values with your desired values.provider "aws" { region = "** INPUT HERE **" profile = "** INPUT HERE **" } terraform { required_providers { aws = { source = "hashicorp/aws" version = "~> 5.75.1" } } backend "s3" { bucket = "** INPUT HERE **" key = "terraform.tfstate" region = "** INPUT HERE **" profile = "** INPUT HERE **" } }
-
Edit the
variables.tf
file and update theresource_prefix
value with your desired prefix.variable "rust_src_path" { default = "../lambda" } variable "lambda_zip_local_path" { default = "lambda.zip" } variable "resource_prefix" { default = "** INPUT HERE **" }
-
Run the following commands to create the resources
terraform init terraform apply