@felloh-org/lambda-wrapper 1.11.114 → 1.11.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.concourse/pipeline.yml +36 -64
- package/.concourse/private.yml +0 -0
- package/dist/index.js +1 -1
- package/ormconfig.js +1 -0
- package/package.json +1 -1
package/.concourse/pipeline.yml
CHANGED
|
@@ -52,7 +52,7 @@ jobs:
|
|
|
52
52
|
trigger: true
|
|
53
53
|
- get: concourse-scripts
|
|
54
54
|
- task: 'schema.create'
|
|
55
|
-
file: concourse-scripts/scripts/
|
|
55
|
+
file: concourse-scripts/scripts/npm_run/npm_run.yml
|
|
56
56
|
input_mapping:
|
|
57
57
|
repository: lambda-wrapper
|
|
58
58
|
params:
|
|
@@ -60,12 +60,14 @@ jobs:
|
|
|
60
60
|
AWS_ACCESS_KEY_ID: ((aws.keys.access))
|
|
61
61
|
AWS_SECRET_ACCESS_KEY: ((aws.keys.secret))
|
|
62
62
|
AWS_REGION: ((aws.region.primary))
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
WAREHOUSE_TYPE: 'postgres'
|
|
64
|
+
WAREHOUSE_HOST: ((warehouse.staging.host))
|
|
65
|
+
WAREHOUSE_USERNAME: ((warehouse.staging.username))
|
|
66
|
+
WAREHOUSE_PASSWORD: ((warehouse.staging.password))
|
|
67
|
+
WAREHOUSE_DATABASE: ((warehouse.staging.database))
|
|
66
68
|
WAREHOUSE_SCHEMA: 'user'
|
|
67
69
|
- task: 'migrations.run'
|
|
68
|
-
file: concourse-scripts/scripts/
|
|
70
|
+
file: concourse-scripts/scripts/npm_run/npm_run.yml
|
|
69
71
|
input_mapping:
|
|
70
72
|
repository: lambda-wrapper
|
|
71
73
|
params:
|
|
@@ -73,9 +75,11 @@ jobs:
|
|
|
73
75
|
AWS_ACCESS_KEY_ID: ((aws.keys.access))
|
|
74
76
|
AWS_SECRET_ACCESS_KEY: ((aws.keys.secret))
|
|
75
77
|
AWS_REGION: ((aws.region.primary))
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
78
|
+
WAREHOUSE_TYPE: 'postgres'
|
|
79
|
+
WAREHOUSE_HOST: ((warehouse.staging.host))
|
|
80
|
+
WAREHOUSE_USERNAME: ((warehouse.staging.username))
|
|
81
|
+
WAREHOUSE_PASSWORD: ((warehouse.staging.password))
|
|
82
|
+
WAREHOUSE_DATABASE: ((warehouse.staging.database))
|
|
79
83
|
WAREHOUSE_SCHEMA: 'user'
|
|
80
84
|
on_failure:
|
|
81
85
|
put: slack-alert-deploy
|
|
@@ -92,7 +96,7 @@ jobs:
|
|
|
92
96
|
trigger: true
|
|
93
97
|
- get: concourse-scripts
|
|
94
98
|
- task: 'schema.create'
|
|
95
|
-
file: concourse-scripts/scripts/
|
|
99
|
+
file: concourse-scripts/scripts/npm_run/npm_run.yml
|
|
96
100
|
input_mapping:
|
|
97
101
|
repository: lambda-wrapper
|
|
98
102
|
params:
|
|
@@ -100,12 +104,14 @@ jobs:
|
|
|
100
104
|
AWS_ACCESS_KEY_ID: ((aws.keys.access))
|
|
101
105
|
AWS_SECRET_ACCESS_KEY: ((aws.keys.secret))
|
|
102
106
|
AWS_REGION: ((aws.region.primary))
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
107
|
+
WAREHOUSE_TYPE: 'postgres'
|
|
108
|
+
WAREHOUSE_HOST: ((warehouse.production.host))
|
|
109
|
+
WAREHOUSE_USERNAME: ((warehouse.production.username))
|
|
110
|
+
WAREHOUSE_PASSWORD: ((warehouse.production.password))
|
|
111
|
+
WAREHOUSE_DATABASE: ((warehouse.production.database))
|
|
106
112
|
WAREHOUSE_SCHEMA: 'user'
|
|
107
113
|
- task: 'migrations.run'
|
|
108
|
-
file: concourse-scripts/scripts/
|
|
114
|
+
file: concourse-scripts/scripts/npm_run/npm_run.yml
|
|
109
115
|
input_mapping:
|
|
110
116
|
repository: lambda-wrapper
|
|
111
117
|
params:
|
|
@@ -113,9 +119,11 @@ jobs:
|
|
|
113
119
|
AWS_ACCESS_KEY_ID: ((aws.keys.access))
|
|
114
120
|
AWS_SECRET_ACCESS_KEY: ((aws.keys.secret))
|
|
115
121
|
AWS_REGION: ((aws.region.primary))
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
122
|
+
WAREHOUSE_TYPE: 'postgres'
|
|
123
|
+
WAREHOUSE_HOST: ((warehouse.production.host))
|
|
124
|
+
WAREHOUSE_USERNAME: ((warehouse.production.username))
|
|
125
|
+
WAREHOUSE_PASSWORD: ((warehouse.production.password))
|
|
126
|
+
WAREHOUSE_DATABASE: ((warehouse.production.database))
|
|
119
127
|
WAREHOUSE_SCHEMA: 'user'
|
|
120
128
|
on_success:
|
|
121
129
|
put: slack-alert-deploy
|
|
@@ -137,7 +145,7 @@ jobs:
|
|
|
137
145
|
trigger: true
|
|
138
146
|
- get: concourse-scripts
|
|
139
147
|
- task: 'schema.create'
|
|
140
|
-
file: concourse-scripts/scripts/
|
|
148
|
+
file: concourse-scripts/scripts/npm_run/npm_run.yml
|
|
141
149
|
input_mapping:
|
|
142
150
|
repository: lambda-wrapper
|
|
143
151
|
params:
|
|
@@ -145,12 +153,14 @@ jobs:
|
|
|
145
153
|
AWS_ACCESS_KEY_ID: ((aws.keys.access))
|
|
146
154
|
AWS_SECRET_ACCESS_KEY: ((aws.keys.secret))
|
|
147
155
|
AWS_REGION: ((aws.region.primary))
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
156
|
+
WAREHOUSE_TYPE: 'postgres'
|
|
157
|
+
WAREHOUSE_HOST: ((warehouse.sandbox.host))
|
|
158
|
+
WAREHOUSE_USERNAME: ((warehouse.sandbox.username))
|
|
159
|
+
WAREHOUSE_PASSWORD: ((warehouse.sandbox.password))
|
|
160
|
+
WAREHOUSE_DATABASE: ((warehouse.sandbox.database))
|
|
151
161
|
WAREHOUSE_SCHEMA: 'user'
|
|
152
162
|
- task: 'migrations.run'
|
|
153
|
-
file: concourse-scripts/scripts/
|
|
163
|
+
file: concourse-scripts/scripts/npm_run/npm_run.yml
|
|
154
164
|
input_mapping:
|
|
155
165
|
repository: lambda-wrapper
|
|
156
166
|
params:
|
|
@@ -158,49 +168,11 @@ jobs:
|
|
|
158
168
|
AWS_ACCESS_KEY_ID: ((aws.keys.access))
|
|
159
169
|
AWS_SECRET_ACCESS_KEY: ((aws.keys.secret))
|
|
160
170
|
AWS_REGION: ((aws.region.primary))
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
put: slack-alert-deploy
|
|
167
|
-
params:
|
|
168
|
-
alert_type: 'failed'
|
|
169
|
-
message: Migrations deployment failed
|
|
170
|
-
|
|
171
|
-
- name: 'migrations.pr'
|
|
172
|
-
serial: true
|
|
173
|
-
plan:
|
|
174
|
-
- in_parallel:
|
|
175
|
-
- get: lambda-wrapper
|
|
176
|
-
passed: ['migrations.staging']
|
|
177
|
-
trigger: true
|
|
178
|
-
- get: concourse-scripts
|
|
179
|
-
- task: 'schema.create'
|
|
180
|
-
file: concourse-scripts/scripts/pulumi_npm_run/npm_run.yml
|
|
181
|
-
input_mapping:
|
|
182
|
-
repository: lambda-wrapper
|
|
183
|
-
params:
|
|
184
|
-
NPM_COMMAND: 'orm:schema:create'
|
|
185
|
-
AWS_ACCESS_KEY_ID: ((aws.keys.access))
|
|
186
|
-
AWS_SECRET_ACCESS_KEY: ((aws.keys.secret))
|
|
187
|
-
AWS_REGION: ((aws.region.primary))
|
|
188
|
-
WAREHOUSE_ARN: ((aws.rds.warehouse_arn.staging))
|
|
189
|
-
WAREHOUSE_SECRET_ARN: ((aws.secret_manager.warehouse_secret_arn.staging))
|
|
190
|
-
WAREHOUSE_DATABASE: 'pr'
|
|
191
|
-
WAREHOUSE_SCHEMA: 'user'
|
|
192
|
-
- task: 'migrations.run'
|
|
193
|
-
file: concourse-scripts/scripts/pulumi_npm_run/npm_run.yml
|
|
194
|
-
input_mapping:
|
|
195
|
-
repository: lambda-wrapper
|
|
196
|
-
params:
|
|
197
|
-
NPM_COMMAND: 'orm:migration:run'
|
|
198
|
-
AWS_ACCESS_KEY_ID: ((aws.keys.access))
|
|
199
|
-
AWS_SECRET_ACCESS_KEY: ((aws.keys.secret))
|
|
200
|
-
AWS_REGION: ((aws.region.primary))
|
|
201
|
-
WAREHOUSE_ARN: ((aws.rds.warehouse_arn.staging))
|
|
202
|
-
WAREHOUSE_SECRET_ARN: ((aws.secret_manager.warehouse_secret_arn.staging))
|
|
203
|
-
WAREHOUSE_DATABASE: 'pr'
|
|
171
|
+
WAREHOUSE_TYPE: 'postgres'
|
|
172
|
+
WAREHOUSE_HOST: ((warehouse.sandbox.host))
|
|
173
|
+
WAREHOUSE_USERNAME: ((warehouse.sandbox.username))
|
|
174
|
+
WAREHOUSE_PASSWORD: ((warehouse.sandbox.password))
|
|
175
|
+
WAREHOUSE_DATABASE: ((warehouse.sandbox.database))
|
|
204
176
|
WAREHOUSE_SCHEMA: 'user'
|
|
205
177
|
on_failure:
|
|
206
178
|
put: slack-alert-deploy
|
package/.concourse/private.yml
CHANGED
|
Binary file
|