Skip to content

Latest commit

 

History

History
50 lines (32 loc) · 1.06 KB

local-gql-setup.md

File metadata and controls

50 lines (32 loc) · 1.06 KB

Local GraphQL server Setup

For all aws services, only graphql server can be run locally.

Pre-Requisites

  • Install Docker

  • Install the AWS CLI.

    • Verify that the AWS CLI is installed by running aws in a terminal window.

Local AWS setup

  • Set up AWS Shared Credential File.

    • Your ~/.aws/credentials (%UserProfile%\.aws\credentials on Windows) should look like the following:

      [default]
      aws_access_key_id = local
      aws_secret_access_key = local
    • Your ~/.aws/config (%UserProfile%\.aws\config on Windows) should look like the following:

      [default]
      region = us-west-2

Start the local AWS environment

  1. Create a local tfvars file and define secret_value
touch ./terraform/local/local.auto.tfvars
  1. Run docker
docker compose up -d

Applying terraform changes locally

docker compose up terraform-local