Skip to content

Latest commit

 

History

History
36 lines (24 loc) · 1.07 KB

README.md

File metadata and controls

36 lines (24 loc) · 1.07 KB

pim-service-commercetools (MACH example)

Open-source hands-on guide to build real production ready pim-service using commercetools platform

Flow

  1. Create Id and Key on AWS console in "Access keys (access key ID and secret access key)" tab.
  2. See ./sls/profiles in repository to set or get available profiles names.
  3. Create or update ~/.aws/config and ~/.aws/credentials on your machine to setup profiles in both files which you got on 2nd step.
[localawsenv]
aws_access_key_id=YOUR_ID
aws_secret_access_key=YOUR_KEY
  1. Use alias for your profile dev01, dev02 etc. for ENV variable.
  2. After deploy you can check your api services and test endpoints.

Build

ENV=dev0x yarn build

Deploy

If build is packaged: ENV=dev0x yarn deploy-package

Deploy entirely: ENV=dev0x yarn deploy

To specify custom profile: ENV=dev0x PROFILE=local yarn deploy

To specify another region ENV=dev0x PROFILE=local REGION=us-west-2 yarn deploy