How to Deploy a simple Pokemon API in AWS ECS

How to Deploy a simple Pokemon API in AWS ECS

Dockerizing and deploying a simple API store, where you can GET and POST Pokemon seems like a fun way to learn about the basics of ECS and AWS services! How to Deploy a simple Pokemon API in AWS ECS

Dockerizing and deploying a simple API store, where you can GET and POST Pokemon seems like a fun way to learn about the basics of ECS and AWS services!

All code can be found here.

Prerequisites:

  • Basic understanding of docker
  • Install and configure the aws-cli

Let’s first create a simple DynamoDB database.

First create a new file called “create-table.json”, and paste in the json data below. We’re setting up a table with just two attributes (pokemon name, and pokemon type)

{
 “TableName”: “Pokemon”,
 “KeySchema”: [
 { “AttributeName”: “name”, “KeyType”: “HASH” },
 { “AttributeName”: “type”, “KeyType”: “RANGE” }

 ],
 “AttributeDefinitions”: [
 { “AttributeName”: “name”, “AttributeType”: “S” },
 { “AttributeName”: “type”, “AttributeType”: “S” }
 ],
 “ProvisionedThroughput”: {
 “ReadCapacityUnits”: 5,
 “WriteCapacityUnits”: 5
 }
}

We can then create this table in AWS by running:

aws dynamodb create-table --cli-input-json file://create-table.json

docker python aws dynamodb api

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Top 10 API Security Threats Every API Team Should Know

Learn what are the most important API security threats engineering leaders should be aware of and steps you can take to prevent them

Docker Explained: Docker Architecture | Docker Registries

Following the second video about Docker basics, in this video, I explain Docker architecture and explain the different building blocks of the docker engine; docker client, API, Docker Daemon. I also explain what a docker registry is and I finish the video with a demo explaining and illustrating how to use Docker hub.

Serverless Express – Easy APIs On AWS Lambda & AWS HTTP API

Serverless Express enables you to easily host Express.js APIs on AWS Lambda and AWS HTTP API. Here is how to get started and deliver a Serverless Express.js based API with a custom domain, free SSL certificate and much more!

Serverless APIs with Python, AWS Lambda & API Gateway

Serverless APIs with Python, AWS Lambda & API Gateway

An API-First Approach For Designing Restful APIs | Hacker Noon

I’ve been working with Restful APIs for some time now and one thing that I love to do is to talk about APIs.