GithubHelp home page GithubHelp logo

academic-fyp-ddb-load-tester's Introduction

academic-fyp-ddb-load-tester

A small fragment of my University final year project, which involved making a globally replicated DynamoDB table, in a time before DynamoDB Global Tables existed.

This service is a small DynamoDB load tester, which spins up a Fargate container and performs read and write activity on the table.

Issues

  • The task definition is specified inline with the CloudFormation Lambda function, this needs updating after each deployment
  • Subnet and security groups used in the Lambda Function code should be parameters
  • Code is inline, you should probably be using SAM

Building the Docker Image and pushing to ECR

docker build -t fyp-ddb-stress-test .
docker tag fyp-ddb-stress-test AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/fyp-ddb-stress-test

aws ecr get-login --no-include-email --region us-east-1
docker push AWS_ACCOUNT_ID.dkr.ecr.us-east-1.amazonaws.com/fyp-ddb-stress-test:latest

Updating Cloudformation from CLI

aws cloudformation update-stack --stack-name fargate-test-2 --template-body file://ec2-fargate-deployment.yaml --region us-east-1  --capabilities CAPABILITY_IAM --parameters ParameterKey="TaskSubnet",UsePreviousValue=true ParameterKey="TaskSg",UsePreviousValue=true 

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.