Skip to content

Commit

Permalink
Merge branch 'main' into peru-oefa
Browse files Browse the repository at this point in the history
  • Loading branch information
caparker committed Mar 19, 2024
2 parents ef2cd29 + 384f28b commit 8d856f1
Show file tree
Hide file tree
Showing 65 changed files with 12,657 additions and 22,249 deletions.
14 changes: 0 additions & 14 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:

- uses: actions/setup-node@v2
with:
node-version: "14"
node-version: "18"

- name: Install CDK
run: |
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@

Changes to adapters will be documented in this file.

## 11/26/2024
### Removed eslint
- Removed eslint from package.json
- Removed .eslintrc

## 11/22/2023
### Set active: false
- south-australia-epa (needs fix, url won't resolve)

## 11/01/2023
### DELETED
- au_sa.js (replaced by southaustralia.js)
Expand Down
15 changes: 13 additions & 2 deletions cdk/stack.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import * as cdk from 'aws-cdk-lib';
import * as iam from 'aws-cdk-lib/aws-iam';
import {
aws_events as events,
aws_events_targets as eventTargets,
Expand Down Expand Up @@ -58,7 +59,7 @@ export class RealtimeFetcherStack extends cdk.Stack {
code: lambda.Code.fromAsset('../src'),
handler: 'scheduler.handler',
memorySize: 128,
runtime: lambda.Runtime.NODEJS_14_X,
runtime: lambda.Runtime.NODEJS_18_X,
timeout: cdk.Duration.seconds(30),
environment: env,
}
Expand All @@ -72,12 +73,22 @@ export class RealtimeFetcherStack extends cdk.Stack {
code: lambda.Code.fromAsset('../src'),
handler: 'fetch.handler',
memorySize: 1024,
runtime: lambda.Runtime.NODEJS_14_X,
runtime: lambda.Runtime.NODEJS_18_X,
timeout: cdk.Duration.seconds(900),
environment: env,
}
);

if(env.TOPIC_ARN) {
fetcher.addToRolePolicy(
new iam.PolicyStatement({
effect: iam.Effect.ALLOW,
actions: ['sns:Publish'],
resources: [env.TOPIC_ARN],
})
);
}

bucket.grantReadWrite(fetcher);
queue.grantSendMessages(scheduler);
queue.grantConsumeMessages(fetcher);
Expand Down
Loading

0 comments on commit 8d856f1

Please sign in to comment.