Usage
The AWS static GUI resources contains the scripts for deploying all you need for CI / CD management.
this repo inherits all scripts of aws_simple_pipeline
it works with aws_static_website
and it takes advantage of aws_saving
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
created your ID client OAuth 2.0 on API credentials section,
and configured your Auth0 connection,
You can configure your Auth0 application with the names of your buckets used on Allowed Callback URLs:
for your local tests when you run your static website by
run start
(see its README.md), http://localhost:3000/callbackfor your environment named sample that you run by app_pipeline.py
-c stage=sample
(see Getting started), you have to add the domain name of your buckets, in this example they arefor your production environment that you run without stage, in this example, the domain names are
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:
on pipeline and website resources by AWS CDK
on application resources by Serverless framework