diff --git a/lib/configs/amplify/build-setting.ts b/lib/configs/amplify/build-setting.ts index 459e77eba..032e0044d 100644 --- a/lib/configs/amplify/build-setting.ts +++ b/lib/configs/amplify/build-setting.ts @@ -14,6 +14,7 @@ const preBuildForFeeds = { commands: [ 'eval $(ssh-agent -s)', 'ssh-add <(echo "$DEPLOY_KEY" | base64 --decode)', + 'echo "github.com ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQCj7ndNxQowgcQnjshcLrqPEiiphnt+VTTvDP6mHBL9j1aNUkY4Ue1gvwnGLVlOhGeYrnZaMgRK6+PKCUXaDbC7qtbW8gIkhL7aGCsOr/C56SJMy/BCZfxd1nWzAOxSDPgVsmerOBYfNqltV9/hWCqBywINIR+5dIg6JTJ72pcEpEjcYgXkE2YEFXV1JHnsKgbLWNlhScqb2UmyRkQyytRLtL+38TGxkxCflmO+5Z8CSSNY7GidjMIZ7Q4zMjA2n1nGrlTDkzwDCsw+wqFPGQA179cnfGWOWRVruj16z6XyvxvjJwbz0wQZ75XK5tKSb7FNyeIEs4TT4jk+S4dhPeAUC5y+bDYirYgM4GC7uEnztnZyaVWQ7B381AK4Qdrwt51ZqExKbQpTUNn+EjqoTwvqNj4kqx5QUCI0ThS/YkOxJCXmPUWZbhjpCg56i+2aB6CmK2JGhn57K5mj0MNdBXA4/WnwH6XoPWJzK5Nyu2zB3nAZp+S5hpQs+p1vN1/wsjk=" >> ~/.ssh/known_hosts', 'git submodule init', 'git submodule update --remote', 'yum -y install make nasm autoconf automake libtool dpkg pkgconfig libpng libpng-dev g++', diff --git a/lib/constructs/persistence/data-pipeline.ts b/lib/constructs/persistence/data-pipeline.ts index 96016c2ea..9832abf3c 100644 --- a/lib/constructs/persistence/data-pipeline.ts +++ b/lib/constructs/persistence/data-pipeline.ts @@ -255,16 +255,11 @@ export class ThreadImgDataPipeline extends AbstractDataPipeline { }, ).resizeImageFunction; - const supportedExtensions = ['jpeg', 'png', 'gif', 'jpg']; - - for (const ext of supportedExtensions) { - this.processor.addEventSource( - new event_sources.S3EventSource(this.dataSource, { - events: [s3.EventType.OBJECT_CREATED_PUT], - filters: [{ prefix: `*/*/image.${ext}` }], - }), - ); - } + this.processor.addEventSource( + new event_sources.S3EventSource(this.dataSource, { + events: [s3.EventType.OBJECT_CREATED], + }), + ); } }