Skip to content

Latest commit

 

History

History
28 lines (25 loc) · 2.28 KB

initial-setup.md

File metadata and controls

28 lines (25 loc) · 2.28 KB

Initial Setup

This setup will get you started with LocalStack and common functionality shared between all of the IaC providers.

To set up the project you'll need to:

  1. Install Node and PNPM
    1. NVM will let you easily manage the version of Node you are currently using
      1. Windows NVM
      2. Linux/MacOS NVM
    2. PNPM is a package manager for Node, like NPM and Yarn.
      1. If you prefer NPM or Yarn, you can delete the pnpm-lock.yaml files, but this could break the project!
  2. Install Docker
    1. Localstack runs as a Docker container, so we need to install Docker first. Here's a handy GUI client for managing Docker containers, images, and volumes: (Docker Desktop).
  3. Install Python and pip
    1. Localstack is installed using Python's package manager, pip. You can download Python from here. Pip is included in Python 3.4 and above. But just in case here is pip (https://pypi.org/project/pip/)
  4. Install LocalStack CLI
    1. python -m pip install localstack
  5. Generate a LocalStack API key
  6. Copy .env.example file to a new file named .env and replace the LOCALSTACK_API_KEY value with the key you generated in the LocalStack web interface.
  7. Install root project dependencies with PNPM
    1. Run pnpm install in the project root
    2. This installs the dotenv-cli which we use to read your LocalStack API token from the .env file. This is used to ensure you download and activate LocalStack Pro.
  8. Start the LocalStack Pro Docker container
    1. Run pnpm run start:localstack in the project root
    2. This convenience function reads your LocalStack API token and passes it to the LocalStack CLI command localstack start -d
      1. The -d flag starts LocalStack detached, so you can close your terminal without stopping the Docker container.
  9. You are now ready to configure your IaC provider, return to the project root README and select your desired IaC provider.