Advanced Search
Search Results
263 total results found
Why does my container immediately exits?
Containers are not like virtual machines Each docker contain have a main process that is run via CMD / ENTRYPOINT command in the Dockerfile. Once those processes finishes and exit then the container will stop and exit as well! It will not run indefinitely. I...
exec form vs shell form
Command forms RUN, ENTRYPOINT, and CMD are all directives to run a command in your Dockerfile. All three takes two forms of command, shell form and exec form. 1. Shell formThe commands are written without the [] brackets and are run by the container's shell ...
docker stop vs docker kill
Docker stop This provides a graceful way of exiting the container. it will sent a SIGTERM to the main process (PID 1), then after a grace period of 10 seconds if the main process still doesn't exit it will sent a SIGKILL to forcefully kill the main process. ...
RUN, CMD, ENTRYPOINT Directives
RUN The RUN directive is executed in a new layer, what does it mean? It is used to install packages and applications on top of an existing image layer and create a new layer on top of it. Docker images are used to build new ones and the RUN directive allows y...
More Storage Options
SnowFamily These are secure, portable devices that allows you to college and process data at edge location, AND migrate data in and out of AWS. Two use cases. It is used to perform offline data migration since if you are going to transfer data using the netw...
SQS, SNS, Kinesis, Active MQ
Decoupling mechanism When we deploy multiple applications they will inevitably need to communicate. There is two ways of doing the application. Synchronous communication: Direct connection for direct communication between application Asynchronous / event ...
ECS, Fargate, ECR, & EKS
Amazon ECS Elastic container service. It is Amazon's own container platform. Let you launch container instance and run them. If you want to launch docker container on AWS you will be launching ECS Tasks. Task definition tells what docker image to use to run ...
Serverless, Lambdas, DynamoDB, Cognito, API Gateway
Lambda function Why is serverless good? Well if you are using EC2 instances then you have to provision them if you need more compute power. You will be paying for those servers that are continuously running. It has limited RAM and CPU. Lambda function you do...
Serverless Architecture Discussion
MyTodoList We want to make a mobile todo with REST API with HTTPS using serverless architecture. User should be able to interact with their own folder in S3. Users can write and read to-dos, but mostly read them. Database should scale and have high read throu...
Picking the Right Databases
How to pick right database Depend on the question, read-heavy, write-heavy, or balanced workload? throughput needs? How much data to store and for how long? Will it grow? Data durability? Latency requirements? Strong schema or flexibility? It depends on a ...
Data and Analytics
Athena Query service that let you analyze data stored in S3. It uses SQL language to do the query. You will be putting data into S3 then you will query it with Athena. You pay per TB of data scanned. No need to pay for any server since it is serverless. It...
Machine Learning
Rekognition A machine learning service to find object, people, text, scenes in images and videos. Facial analysis and facial search to do user verification works as well. You can use it to do labeling, content moderation, text detection, and many things. Co...
AWS Monitoring CloudWatch, CloudTrail, Config
CloudWatch CloudWatch Metrics CloudWatch provides metrics (variable that you want to monitor) for every services in AWS. A metric belong to namespaces which is per services. 10 Dimension per metrics, associated instance id, environments, ...etc. You can ev...
KMS, SSM Parameter Store, Shield, WAF
Encryption 101 Encryption in flight: Achieved via SSL, your connection to the web server is encrypted, so no one can man in the middle you and sniff the packet that you're sending to find sensitive data SSL certificates is used to established the secure conn...
IAM Advanced
Organization Let you manage multiple AWS account at the same time. There is one main account that's the management account, other account are member accounts. Billing will all be sent to the management account. You get pricing benefits from using all service...
VPC
Networking 101 IP Addresses Every host or device on a network must be addressable, meaning that they should have something that can be referenced by in order to reach it as a destination under a defined system of addresses. That thing is called IP Addresses ...
Disaster Recovery and Migration
Disaster recovery Disaster recovery is about preparing for those disaster that can happen to the data center. RPO: Recovery point objective. How often do you run backups. How far can you go back just before the data loss. "How much data did you lose just bef...
Even More Architecture Discussion
Event processing in AWS SQS + Lambda Lambda service is going to poll from SQS, however, there can be problem with the message if it cannot be processed and go into infinite loops. In that case a dead letter queue can be set up to sent problematic message aft...