-
Notifications
You must be signed in to change notification settings - Fork 7
/
_cim.yml
74 lines (64 loc) · 2.68 KB
/
_cim.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
version: 0.1
stack:
name: functionci-app
template:
file: cloudformation.yml
bucket: functionci-cf-artifacts # Note: Update this with your bucket name. Stacks are uploaded here prior to deployment.'
#
# Reference parent stacks fo included shared information like stack name.
#
#parents:
# vpc: '../vpc'
#
# Define stack input parameters.
#
# Optional - Custom domain name settings. If you specify 'TLD' you must also specify a 'Domain'.
# After you 'stack-up' you will need to verify your email address so that AWS can issue the SSL certificate for you domain.
# More info here: http://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate.html
parameters:
# # The top level domain that you created in Route53.
# TLD: 'fnci.io'
# # The domain you wish to use for this api.
# Domain: 'api.fnci.io'
# URI path
Path: 'slack'
# Slack params (encrypt)
SlackVerificationToken: '${kms.decrypt(AQICAHhjNpxGxc7AX6NhOIEjyoXA3KHc2qhbn8lphYP7XmgoZAEi4XCUpuVY7qoTXVCvHprgAAAAdjB0BgkqhkiG9w0BBwagZzBlAgEAMGAGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQMdHQkTfSpDuEbSropAgEQgDNsNl5GUltJYMkw1cCbISrk/yPC+XJarBXxBUQoOXcPgX1wY/DAuJ91nh2CqMqXoNgg8fE=)}'
SlackBotOAuthToken: '${kms.decrypt(AQICAHhjNpxGxc7AX6NhOIEjyoXA3KHc2qhbn8lphYP7XmgoZAFvWjmXWOSa9+6wc0sBF1e3AAAAiTCBhgYJKoZIhvcNAQcGoHkwdwIBADByBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDOVrDECOpOp5Y3UiKAIBEIBFB/POMIG5ywcO036LCRpRZmVFgaJ2HcIlePIxAyYeOX+GfaBJOsYoSeW4p8I/SSD3Di69Qfdygt9kFj8pVzsD2gpIcCvn)}'
#Github Token
GithubToken: '${kms.decrypt(AQICAHhjNpxGxc7AX6NhOIEjyoXA3KHc2qhbn8lphYP7XmgoZAEdRP68TkPmVZAz5lD/5ImBAAAAhzCBhAYJKoZIhvcNAQcGoHcwdQIBADBwBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDPPkD3AuapU+/6FHfAIBEIBDki+0fm3X3FD3mp0cj0kN0+AVwchVTNjxwaH/uTjPUDdlVIT/bNaSVTH+L1tQVo1bcchD8LtxNrjfLmeMjC3aKQ8byg==)}'
#
# Define stack capabilities required.
#
capabilities:
- 'CAPABILITY_IAM'
#
# Define global tags.
#
tags:
app: 'functionci'
lambda:
functions:
-
function: ${stack.outputs.LambdaFunction}
zip_file: index.zip
deploy:
phases:
pre_deploy:
commands:
# Install all npm packages including dev packages.
- npm install
# Run the tests
# - npm test
# Remove all the npm packages.
- rm -Rf node_modules
# Only install the non-dev npm packages. We don't want to bloat our Lambda with dev packages.
- npm install --production
# Zip the Lambda for upload to S3.
- zip -r index.zip .
post_deploy:
commands:
# Remove the zip file.
- rm -Rf index.zip
# Reinstall the dev npm packages.
- npm install