Coder Social home page Coder Social logo

laurrentt / amazon-aurora-labs-for-mysql Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aws-samples/amazon-aurora-labs-for-mysql

0.0 0.0 0.0 158.44 MB

Workshop and lab content for Amazon Aurora MySQL compatible databases. This code will contain a series of templates, instructional guides and sample code to educate users on how to use Amazon Aurora features. The AWS CloudFormation templates will create the relevant resources in a user's account, the Bash and Python scripts will support the lab, by automating tasks, generating load or execute changes on resources created using AWS CloudFormation.

License: MIT No Attribution

JavaScript 10.87% Python 89.13%

amazon-aurora-labs-for-mysql's Introduction

Amazon Aurora Labs for MySQL

Workshop and lab content for Amazon Aurora MySQL compatible databases. This code will contain a series of templates, instructional guides and sample code to educate users on how to use Amazon Aurora features. The AWS CloudFormation templates will create the relevant resources in a user's account, the Bash and Python scripts will support the lab, by automating tasks, generating load or execute changes on resources created using AWS CloudFormation.

To run and use the labs, visit the website at: https://awsauroralabsmy.com

The instructional guides are packaged into a website that can be deployed using AWS CloudFormantion, Amazon CloudFront, Amazon S3 and AWS Lambda. If you wish to contribute to the project follow the installation and deployment steps below.

NOTE: This project is currently under active development. If you encounter any inaccuracies in the instructions below, please report them to us via Issues

Installation

The website is built using the mkdocs project and supporting libraries. We use node.js, grunt and Python 3 throughout the project, therefore these dependencies also need to be installed. The AWS CloudFormation templates are tested using taskcat.

Get Started on MacOS with Homebrew

Install dependencies:

brew install python3
brew install node
pip3 install virtualenv
virtualenv venv
source venv/bin/activate
pip3 install -r requirements.txt

npm install -g npm --registry=https://registry.npmjs.org/
npm install -g grunt-cli --registry=https://registry.npmjs.org/

Install project dependencies (from [project root] folder):

npm install --registry=https://registry.npmjs.org/

Build and Deploy the Project

To build the website only, locally, from the root folder of the project run:

mkdocs serve

To build the project assets and deploy them in AWS, run the following commands from the root of the project folder.

NOTE: The website has to be deployed in the us-east-1 region due to dependencies on AWS Lambda@Edge.

Build the full project for development:

grunt deploy-all --region-us-east-1 --bucket=<your_bucket> --cfnstack=<your_name_letters_and_dashes_only>

Build the project but skip changing (or redeploying the website infrastructure):

grunt deploy-skipinfra --region-us-east-1 --bucket=<your_bucket> --cfnstack=<your_name_letters_and_dashes_only>

Testing the AWS CloudFormation Lab Templates

The AWS CloudFormation templates for the labs are located in the [project root]/templates/ folder. They contain placeholder expressions (such as [[website]]) that are replaced by the build process above, with the final URIs of the website you deploy in AWS. Final build versions of these templates are placed in the folder: [project root]/build/templates/

Taskcat assets are located in [project root]/taskcat/ci. Because the templates have hardcoded resource names to satisfy requirements with external tools, you cannot test more than one template at a time via taskcat. It is therefore necessary to customize the [project root]/taskcat/ci/taskcat.yml config file to indicate which template to test.

Once the config file is changed appropriately, from the root of the project folder run:

grunt run-taskcat --region-us-east-1 --bucket=<your_bucket> --cfnstack=<your_name_letters_and_dashes_only>

License Summary

This sample code is made available under the MIT-0 license. See the LICENSE file.

Additionally, this project installs the following software for the purposes of deploying and running the labs into the lab environment:

  • mysql-client package. MySQL open source software is provided under the GPL License.
  • sysbench available using the GPL License.
  • test_db available using the Creative Commons Attribution-Share Alike 3.0 Unported License.
  • weather_data available using the Creative Commons Attribution-ShareAlike 4.0 International.
  • Percona's sysbench-tpcc available using the Apache License 2.0.
  • Percona Toolkit available using the Apache License 2.0.
  • Apache Superset available using the Apache License 2.0.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.