Skip to content
This repository has been archived by the owner on Apr 3, 2024. It is now read-only.

Commit

Permalink
Change Airtable configuration (#6)
Browse files Browse the repository at this point in the history
* Hardcode Airtable base URL

* Use new AWS parameters for airtable config
  • Loading branch information
kjdchapman authored Aug 14, 2020
1 parent 27a8219 commit 174d992
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/dependencies.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const snapshotGateway = new SnapshotGateway({
const resourcesGateway = new ResourcesGateway({
apiKey: process.env.AIRTABLE_API_KEY,
baseId: process.env.AIRTABLE_BASE_ID,
baseUrl: process.env.AIRTABLE_BASE_URL || "https://api.airtable.com",
baseUrl: "https://api.airtable.com",
tableNames: process.env.AIRTABLE_TABLE_NAMES.split(',')
});

Expand Down
6 changes: 3 additions & 3 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ functions:
VULNERABILITIES_TABLE_NAME: ${self:provider.environment.VULNERABILITIES_TABLE}
NEXT_PUBLIC_API_URL: https://${self:custom.aliases.${self:provider.stage}}/api
NEXT_PUBLIC_URL: https://${self:custom.aliases.${self:provider.stage}}
AIRTABLE_API_KEY: ${ssm:/vulnerabilities/airtable-api-key~true}
AIRTABLE_BASE_ID: ${ssm:/vulnerabilities/airtable-base-id}
AIRTABLE_TABLE_NAMES: ${ssm:/vulnerabilities/airtable-table-names}
AIRTABLE_API_KEY: ${ssm:/frontdoor-snapshot/airtable-api-key}
AIRTABLE_BASE_ID: ${ssm:/frontdoor-snapshot/airtable-base-id}
AIRTABLE_TABLE_NAMES: ${ssm:/frontdoor-snapshot/airtable-table-names}

cf-snapshot-authorizer:
name: ${self:service}-authorizer-${self:provider.stage}
Expand Down

0 comments on commit 174d992

Please sign in to comment.