Create a serverless database for movie app in DynamoDB
# Move to database directory
cd 1-database
# Get plugins and modules
terraform init
# Dry run to validate resources to create
terraform plan
# expected output:
# Plan: 6 to add, 0 to change, 0 to destroy.
# Create resouces
terraform apply
# If you want destroy resouces
terraform destroy
Create serverless backend for movie app using lamdba y API Gateway
# Move to backend directory
cd 2-backend
# Get plugins and modules
terraform init
# Dry run to validate resources to create
terraform plan
# expected output:
# Plan: 9 to add, 0 to change, 0 to destroy.
# Create resouces
terraform apply
# If you want destroy resouces
terraform destroy
Create serverless backend for movie app using lamdba y API Gateway
# Move to frontend directory
cd 3-frontend
# Get plugins and modules
terraform init
# Dry run to validate resources to create
terraform plan
# expected output:
# Plan: 11 to add, 0 to change, 0 to destroy.
# Create resouces
terraform apply
# If you want destroy resouces
terraform destroy
if you want to use remote state it is required create a S3 Bucket, DynamoDB table is optional in case you want to lock the statefile.
You can find required terraform definition to create backend resouces in 0-backend