Usage

The AWS static GUI resources contains the scripts for deploying all you need for CI / CD management.

The packages allow you to manage many environments in parallel by the parameter named stage:

  • it can be a contextual string parameter as described in Development section

  • or it can be a parameter of the package initialiazed as implemented in the app_pipeline.py where it is the branch name

Example

You need to create the infrastructure of your static website and you want to use an Auth0 application by Google

  • you have to create an Connect Apps to Google

  • and then, you can use the domain created by Auth0 and clientId for logging in your static website

Connect Apps to Google

When you have

You can configure your Auth0 application with the names of your buckets used on Allowed Callback URLs:

Changes

The files that you have to update on your static website are three:

  • reactJS/src/Auth/Auth.js, for managing more environment and so more callback URLs

  • reactJS/src/Auth/auth0-variables.js, for changing the Auth0 details

  • serverless/serverless.yml,

    • for reducing the service name that it has not to have more than 64 characters

    • for upgrading the nodejs version

    • for changing the Auth0 details

In this commit, you can find an example of a change.

Saving

It is simple to use aws_saving: you only have to add some tags and deploy it!

In these commits, you can find an example of where to change: