Skip to content

usertech/terraform-module-s3-resize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Module - S3 Resize

Creates S3 bucket + Cloudfront for storing and distributing publicly available images + API Gateway endpoints for resizing and cropping these images using AWS Lambda.

Inputs

Name Description Type Default Required
aws_region Region where the resources will be created string n/a yes
bucket_name Name of the bucket. Full bucket name will consist of project_name-environment-bucket_name string n/a yes
environment The name of the environment string n/a yes
project_name Project name string n/a yes
should_create_user Specify whether the module should create new user for the S3 bucket. string "true" no
tags Tags to apply to each taggable resource map <map> no

Outputs

Name Description
cloudfront_distribution_domain
s3_bucket_arn
s3_bucket_domain_name
s3_bucket_id
s3_bucket_name
s3_region
s3_user_access_key
s3_user_secret_key

Notes - NPM installation for AWS Lambda

To install Sharp library with binary compiled for AWS AMI, use this command

env npm_config_arch=x64 npm_config_platform=linux npm_config_target=8.10.0 npm install --save sharp

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages