Open-source hands-on guide to build real production ready pim-service using commercetools platform
- Create Id and Key on AWS console in "Access keys (access key ID and secret access key)" tab.
- See
./sls/profiles
in repository to set or get available profiles names. - 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
- Use alias for your profile dev01, dev02 etc. for ENV variable.
- After deploy you can check your api services and test endpoints.
ENV=dev0x yarn build
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