Client Installation Setup
Installation
- This setup uses the s6pack-cloud app that must be installed prior to the client setup. Follow the s6pack-cloud instructions here.
- Clone this repository, then cd into the project folder.
- run
- Delete the .git folder
- Create a new project in Github (eg: s6pack-example)
Environment Variables Setup
-
Copy .env.template to .env and replace the dummy values with your own (Use s6pack Cloud app to create these variables or use s6pack Cloud as reference to create your own necessary services). Populate the commented live verson variables as well- they will be used later for copying into git hub secrets for deployment.
User pool ids can be found here. Add to the variable in the .env file here:
For the blue and green env variables, use the dataStackLive_user_pool
Next populate the User Pool App Client ID. It can be found in the AWS console by clicking the user pool name, then click the
App Integration
tab, then at the bottom section underApp client list
you will see a list of App clients called something likedataStackDev-non_generated_secret_client
. Copy theClient ID
and paste it here:For the blue and green env variables, use the dataStackLive_user_pool.
Next, find the Identity Pool Ids here. Populate the vairable below using the dataStackDev-Identity-pool:
For the blue and green env variables, use the dataStackLive_identity_pool.
Leave the following as is:
Add your Graphql endpoints (defaulted to dev, blue, and green subdomains). They can be found here and click the
Custom domain names
in the left column:IAM Region defaulted to us-west-1
For the stripe publishable key, log into your stripe dashboard API Keys tab here and click
pk_live_...
to get the publishable key. Paste that into the blue and green live vars. For the dev site, toggleTest Mode
at the top of the page to reveal the test publishable key.Next, log into you Google ReCAPTCHA account here and select reCAPTCHA v2 checkbox your domain name. Click the
Settings
icon. Under the reCAPTCHA keys section click theCOPY SITE KEY
button and paste it into the blue and green section. Leave the dev site key as is since it isd the test key for local testing.Leave the default “dev/live_business_plan” for tyhe last env variable:
AWS IAM User Setup
- For AWS access key and secret, create a new IAM user here (eg: a User named ClientAppGithubWorkfows)
- Select
Attach policies directly
- On the “Specify Permissions” page, click
JSON
and paste the following limited permissions (replacedomain_name
with your domain name): - Create a Policy Name (eg. ClientAppGithubWorkfowsPolicy) and click
Create Policy
. - Click your newly created user and select the
Security Credentials
tab. Cick theCreate Access Key
under theAccess Keys
tab. SelectOther
. For the Decription you can type GithubWorkflows. ClickCreate Access Key
.