Creates S3 bucket + Cloudfront for storing and distributing publicly available images + API Gateway endpoints for resizing and cropping these images using AWS Lambda.
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 |
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 |
env npm_config_arch=x64 npm_config_platform=linux npm_config_target=8.10.0 npm install --save sharp