Backend for the AppSync Masterclass demo app
theburningmonk / appsyncmasterclass-backend Goto Github PK
View Code? Open in Web Editor NEWBackend for the AppSync Masterclass demo app
License: MIT License
Backend for the AppSync Masterclass demo app
License: MIT License
It looks like the builds are failing when trying to install the AWS CLI because a pre-existing CLI is already in place:
Found preexisting AWS CLI installation: /usr/local/aws-cli/v2/current. Please rerun install script with --update flag.
You might just need to tweak this line from the workflow file to ...
sudo ./aws/install || sudo ./aws/install --update
... or ...
sudo ./aws/install || echo "Found preexisting AWS CLI installation"
... to ensure the CLI gets installed and doesn't fail if it pre-exists.
Hey guys!
Is there gonna be SAM template version of serverless? I think it would be a great addition.
The API has changed for this package and we now need to add --all
to the export-env command to achieve the same as before.
More info here - https://www.npmjs.com/package/serverless-export-env
Looks like we also need to add:
export-env:
overwrite: true
to the custom section of serverless.yml
The Outputs section is also not being written to the env file anymore
const DynamoDB = {
MAX_BATCH_SIZE : 25
}
Please change the = sign to :
In lesson 06/05 'Securely Handle Algolia API key', I received an error:
"errorMessage": "Invalid value \"undefined\" for header \"x-algolia-api-key\"",
"code": "ERR_HTTP_INVALID_HEADER_VALUE",
I checked the @middy/ssm docs and changed the ssm middleware implementation in functions/sync-users-to-algolia.js to:
.use(
ssm({
cache: true,
cacheExpiry: 5 * 60 * 1000,
fetchData: {
ALGOLIA_APP_ID: `/${STAGE}/algolia-app-id`,
ALGOLIA_WRITE_KEY: `/${STAGE}/algolia-admin-key`,
},
setToContext: true,
throwOnFailedCall: true,
})
)
This resolved the error from the Lambda function and successfully got data into the Algolia index.
Dependencies are:
"@middy/core": "^2.5.7",
"@middy/ssm": "^2.5.7",
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.