npm install
- Generate an Apollo Engine API key from the Engine Dashboard.
- Set your Engine API key in the
engineApiKey
field within theserverless.yml
file. to named profile in your shared AWS credentials. You probably have this set already, but make sure it's the right one! - Pick a deployment model by picking one of the config options in the
resources
section at the bottom ofserverless.yml
.- A basic deployment (selected by default)
- A Memcache-backed deployment (comment the basic deployment line and uncomment
engine-with-cache.yml
).
- Ensure your AWS credentials are available in your environment.
- Since Serverless uses standard AWS protocol behind the scenes, this means ensuring that both
AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
are set in your environment, or theAWS_PROFILE
environment variable which points
- Since Serverless uses standard AWS protocol behind the scenes, this means ensuring that both
npm run deploy
Updates to the resolvers on already deployed stacks generally take a matter of seconds, but the initial deployment can take some time (about 5-10 minutes) as AWS provisions and deploys services. This includes network infrastructure, Elastic Container Service clusters and the Docker containers themselves.
- Careful! Run
npm run rip
to remove the entire deployment. This is great for quickly launching a deployment for experimentation and thoroughly cleaning it up!