Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Aurora Postgres Connections #425

Merged
merged 62 commits into from
Sep 13, 2021
Merged
Changes from 1 commit
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
7124c9f
Try prisma stuff on new branch
mojotalantikite Aug 31, 2021
3ab1499
Try prisma stuff on new branch
mojotalantikite Aug 31, 2021
48b6cdd
Bump serverless-bundle. See if we break.
mojotalantikite Aug 31, 2021
0a97468
Try npm packager
mojotalantikite Aug 31, 2021
7278a34
Revert serverless-bundle
mojotalantikite Aug 31, 2021
d7957bf
Npm works on new verison. Not old.
mojotalantikite Aug 31, 2021
9e880c8
Add esbuild true
mojotalantikite Aug 31, 2021
cdfa8a1
Match eslint to bundle versions
mojotalantikite Aug 31, 2021
af2acc4
Be explicit about postgres version
mojotalantikite Sep 1, 2021
bfc3be6
set useUnknownInCatchVariables to false
mojotalantikite Sep 1, 2021
d12d03d
Revert engineversion for now
mojotalantikite Sep 1, 2021
a1f5a72
Try with npm
mojotalantikite Sep 1, 2021
dd2c345
Add copyFiles back
mojotalantikite Sep 1, 2021
0b5ad59
External the prisma/cli
mojotalantikite Sep 2, 2021
7fb9201
Try to use webpack directly
mojotalantikite Sep 2, 2021
c00c0e7
Fix config errors
mojotalantikite Sep 2, 2021
5bc9999
Move back to using js webpack config
mojotalantikite Sep 3, 2021
be064e2
Remove unused packages
mojotalantikite Sep 3, 2021
91bb8da
Add tsconfig paths for loading
mojotalantikite Sep 3, 2021
73a5abe
Include performance things from serverless-bundle
mojotalantikite Sep 3, 2021
6397e09
Yarn run the prisma
mojotalantikite Sep 3, 2021
98fab66
Move devdeps to devdeps
mojotalantikite Sep 3, 2021
cb9d446
Downgrade serverless-webpack
mojotalantikite Sep 3, 2021
89a55dd
Add the yarn.lock
mojotalantikite Sep 3, 2021
62c5899
Remove comment
mojotalantikite Sep 3, 2021
ac1caa8
Drop the run. Not needed.
mojotalantikite Sep 3, 2021
870d076
Use new copywebpack syntax
mojotalantikite Sep 3, 2021
b2297bc
Bump back to 5.5.3
mojotalantikite Sep 3, 2021
09401db
Try with noFrozenLockfile
mojotalantikite Sep 7, 2021
8d7585b
Merge branch 'main' into mt-connect-aurora
mojotalantikite Sep 7, 2021
b928a12
Add copy webpack plugin
mojotalantikite Sep 7, 2021
7a5e1b8
Re-add prisma cli
mojotalantikite Sep 8, 2021
bec9052
Add prisma client back
mojotalantikite Sep 8, 2021
f29955f
Fix queryRaw weird syntax
mojotalantikite Sep 8, 2021
da64acc
Try packaging the client patterns in lambda
mojotalantikite Sep 8, 2021
d0dc6cb
Copy the binaries over more explicitly
mojotalantikite Sep 8, 2021
67c4aa3
Revert some copy patterns. Not found in lambda.
mojotalantikite Sep 8, 2021
6b17b8f
Still hitting lockfile weirdness
mojotalantikite Sep 8, 2021
2ffd3c5
Try to resolve the paths
mojotalantikite Sep 8, 2021
83fe3ea
Try running postinstall again
mojotalantikite Sep 8, 2021
fc3739b
rhel doesn't generate
mojotalantikite Sep 8, 2021
0f0cb39
Bump webpack
mojotalantikite Sep 8, 2021
c121949
Still getting script run fails
mojotalantikite Sep 8, 2021
13b8d81
Try with npx
mojotalantikite Sep 8, 2021
d72043a
Exclude darwin for bundle size
mojotalantikite Sep 8, 2021
477a080
Fix depth of indentation
mojotalantikite Sep 8, 2021
a8f8c67
Try new hashing algo
mojotalantikite Sep 8, 2021
ad50de1
Try more excludes for the lambdas
mojotalantikite Sep 8, 2021
a8512b3
excludeRegex to all of darwin
mojotalantikite Sep 9, 2021
e967ae3
Exclude debian. Could be built if native is ubuntu
mojotalantikite Sep 9, 2021
2974814
Add aurora arn to IAM
mojotalantikite Sep 9, 2021
18665e0
Fix arn naming on aurora. Doesn't support getatt
mojotalantikite Sep 9, 2021
2b30db1
Add the schema name to connection string
mojotalantikite Sep 9, 2021
7e14991
Fix typo in manual query
mojotalantikite Sep 9, 2021
7a01cb5
Move the postgres lambda into the vpc
mojotalantikite Sep 9, 2021
bbe7dd3
Typo fix
mojotalantikite Sep 9, 2021
3ad7c2e
Merge branch 'mt-connect-aurora' into mt-aurora-handler
mojotalantikite Sep 9, 2021
8c92f76
Cleanup. Add back module
mojotalantikite Sep 9, 2021
957d599
Fix up some stray dependencies in api
mojotalantikite Sep 9, 2021
d41eed9
Get the right eslint-plugin-prettier version
mojotalantikite Sep 9, 2021
71c243c
Remove once wrapper on prisma deps
mojotalantikite Sep 10, 2021
f82cb29
Run yarn add again on all nodeExternals
mojotalantikite Sep 10, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix config errors
mojotalantikite committed Sep 2, 2021
commit c00c0e7f54af4afe27b2ab9a0227aaffe7413db8
20 changes: 4 additions & 16 deletions services/app-api/webpack.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
import glob from 'glob'
import path from 'path'
import { Configuration, IgnorePlugin } from 'webpack'
import { IgnorePlugin } from 'webpack'
import { CleanWebpackPlugin } from 'clean-webpack-plugin'
import CopyPlugin from 'copy-webpack-plugin'
import PermissionsPlugin from 'webpack-permissions-plugin'
import CopyWebpackPlugin from 'copy-webpack-plugin'

interface EntryOutput {
entry: string
@@ -29,7 +28,7 @@ const entries: EntryOutput[] = glob
]
}, [])

const config: Configuration[] = entries.map(({ entry, output }) => ({
const config = entries.map(({ entry, output }) => ({
entry,
output: {
...output,
@@ -59,7 +58,7 @@ const config: Configuration[] = entries.map(({ entry, output }) => ({
new IgnorePlugin({
resourceRegExp: /encoding/,
}),
new CopyPlugin({
new CopyWebpackPlugin({
patterns: [
{
from: path.resolve(
@@ -77,17 +76,6 @@ const config: Configuration[] = entries.map(({ entry, output }) => ({
},
],
}),
new PermissionsPlugin({
buildFiles: [
{
path: path.resolve(
__dirname,
`${output.path}/query-engine-rhel-openssl-1.0.x`
),
fileMode: '755',
},
],
}),
],
}))