forked from binxio/cfn-certificate-provider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
serverless.yml
39 lines (34 loc) · 984 Bytes
/
serverless.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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
service: cfn-certificate-provider
plugins:
- serverless-python-requirements
- serverless-pseudo-parameters
provider:
name: aws
runtime: python3.7
stage: ${opt:stage, 'dev'}
profile: ${opt:aws-profile, 'dev'}
region: eu-central-1
iamRoleStatements: # permissions for all of your functions can be set here
- Effect: Allow
Action: # Gives permission to a ACM
- acm:RequestCertificate
- acm:DescribeCertificate
- acm:UpdateCertificateOptions
- acm:DeleteCertificate
Resource:
- '*'
- Effect: Allow
Action:
- lambda:InvokeFunction
Resource:
- !Sub 'arn:aws:lambda:${self:provider.region}:#{AWS::AccountId}:function:cfn-certificate-provider-${self:provider.stage}-crt-handler'
custom:
stage: ${opt:stage, self:provider.stage}
package:
individually: true
functions:
crt-handler:
handler: provider.handler
module: src
memorySize: 128
timeout: 300