Architect

Use the Architect Infrastructure as Code framework with LocalStack
architect logo

Overview

Architect enables you to quickly build large serverless apps without worrying about the underlying infrastructure. On this page we discuss how Architect and LocalStack can be used together. If you are adapting an existing configuration, you might be able to skip certain steps at your own discretion.

Example

Setup

To use Architect in conjunction with Localstack, simply install the arclocal command (sources can be found here).

$ npm install -g architect-local @architect/architect aws-sdk

The arclocal command has the same usage as the arc command, so you can start right away.

Create a test directory

$ mkdir architect_quickstart && cd architect_quickstart

then create an architect project

$ arclocal init

Deployment

Now you need to start LocalStack. For Architect to work properly, you need to start the following services in LocalStack (using the SERVICES configuration option):

  • s3
  • ssm
  • cloudformation

After LocalStack has started you can deploy your Architect setup via:

$ arclocal deploy

Further reading

For more architect examples, you can take a look at the official architect docs.