-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.yaml
executable file
·53 lines (44 loc) · 1.34 KB
/
README.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: terraform-s3-image-thumbnails-generator
repos:
gitlab: miquido/terraform/terraform-s3-image-thumbnails-generator
badges: []
related: []
# description: ""
usage: |-
Terraform:
```hcl
module "s3-image-resizer" {
source = "git::ssh://git@gitlab.com:miquido/terraform/terraform-s3-image-thumbnails-generator.git?ref=master"
namespace = "${var.project}"
stage = "${var.environment}"
thumbnail_widths = [1200,800,600,400,200]
namespace = var.project
stage = var.environment
name = "image-resizer"
thumbnail_widths = [1200, 800, 600, 400, 200]
user_enabled = false
s3_region = var.aws_region
s3_acl = "private"
bucket_enabled = true
bucket_versioning_enabled = true
log_retention = 7
tags = var.tags
}
```
### Building lambda
## Warning: This process requires x86 compatible machine (does not work currently on ARM).
1. Edit files in `src/` directory
2. Run script:
```sh
make lint
make build/lambda-zip
make build/lambda-layer-zip
```
include:
- "docs/terraform.md"
- "docs/targets.md"
contributors:
- name: "Paweł Jędruch"
github: "pawcik"
- name: "Konrad Obal"
github: "k911"