Skip to content

Welcome to the Web3 on AWS workshop repository. In this repo you find all code artifacts required to build a fully functioning Web3 webapp on top of AWS

License

Notifications You must be signed in to change notification settings

aws-samples/web3-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

web3-workshop

This repository contains all artifacts for the Build Web3 on AWS workshop.

Deployment

The detailed deployment instructions can be found in the workshop Build Web3 on AWS.

Development

Module 1

To run e2e integration tests for module 1, execute the following steps:

  1. Clone the repository and change into the directory:

    git clone https://github.com/aws-samples/web3-workshop.git
    cd web3-workshop
  2. Add the required credentials to ./tests/module1/run_e2e_pipeline.sh.

  3. Ensure that you have your aws cli configured correctly and have it pointing to the right AWS account.

  4. Export the required CDK environment variables to configure the AWS region and account used for the deployment.

    export CDK_DEPLOY_REGION=us-east-1
    export CDK_DEPLOY_ACCOUNT=$(aws sts get-caller-identity | jq -r '.Account')
  5. Run the e2e script:

    ./tests/module1/run_e2e_pipeline.sh

Module 2

Module 2 requires module 1 to be fully configured and deployed in the same AWS account and region. Please ensure that all steps defined in Module 1 have been executed successfully.

The deployment script requires yq to modify YAML files on your local machine. It also assumes that you're working on a local machine (instead of a Cloud9 instance). If you don't have yq installed, the easiest way on a Mac is using homebrew: brew install yq. For other architectures, see the installation guide.

  1. Run the e2e script:
    ./tests/module2/run_e2e_pipeline.sh

Cleanup

Separate cleanup scripts have been provided for module 1 and module 2. If you have deployed module 2 and module 1, trigger the scripts in the following order

./tests/module2/cleanup.sh && \
./tests/module1/cleanup.sh

If only module 1 has been deployed run the following command:

./tests/module1/cleanup.sh

Security

See CONTRIBUTING for more information.

License

This library is licensed under the MIT-0 License. See the LICENSE file.