forked from openfaas/openfaas-cloud
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aws.yml
24 lines (23 loc) · 806 Bytes
/
aws.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
provider:
name: openfaas
gateway: http://127.0.0.1:8080
functions:
# register-image creates a repo in a hosted/managed registry, which is needed
# for AWS ECR before any image can be pushed.
register-image:
lang: go
handler: ./register-image
image: functions/register-image:0.1.1
labels:
openfaas-cloud: "1"
role: openfaas-system
com.openfaas.scale.zero: false
environment:
write_debug: true
read_debug: true
content_type: "application/json"
AWS_DEFAULT_REGION: "eu-central-1"
AWS_SHARED_CREDENTIALS_FILE: "/var/openfaas/secrets/credentials"
secrets:
- payload-secret
- aws-ecr-createrepo-credentials # kubectl create secret generic aws-ecr-createrepo-credentials --from-file ~/.aws/credentials -n openfaas-fn