Code Monkey home page Code Monkey logo

appsyncmasterclass-backend's Introduction

Hi there ๐Ÿ‘‹

My name is Yan. I'm an AWS Serverless Hero and an independent consultant. I help companies go faster for less by adopting Serverless technologies successfully. If you're interested in working with me, then check out my consulting services.

How to reach me:

Workshops:

Video courses & books:

appsyncmasterclass-backend's People

Contributors

eduardbargues avatar theburningmonk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

appsyncmasterclass-backend's Issues

Tweak needed to run build job successfully

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.

Index with Algolia

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",

SAM template?

Hey guys!

Is there gonna be SAM template version of serverless? I think it would be a great addition.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.