1 S3 vs ebs value:
Simple storage service (S3) can store large amounts as compared to
EBS. With S3, the standard limit is of100 buckets and each bucket
has got an unlimited data capacity whereas EBS has a standard limit
of 20 volumes and each volume can hold data up to 1TB. In EBS
there occurs an upper limit on the data storage.
2 route 53:
Amazon Route 53 is a highly available and scalable Domain Name System (DNS) web service.
You can use Route 53 to perform three main functions in any combination: domain registration,
DNS routing, and health checking. Your website needs a name, such as example.com.
3 diff between spot, ondemand, reserved instances:
Spot Instances offer up to 90% discount but carry the risk of
interruption. On the other hand, Reserved Instances offer up to 72%
decreased rates with high availability, but long commitment periods. In
this article, we look the differences between Spot Instances vs.
Reserved Instances and when you should use each
4 vpc endpoint:
A VPC endpoint enables customers to privately connect to supported AWS services and VPC
endpoint services powered by AWS PrivateLink. Amazon VPC instances do not require public IP
addresses to communicate with resources of the service.
5 ec2 instance down how to maintain:
1. Create micro instance from any ami found on http://alestic.com/
2. Install nginx: sudo aptitude install nginx
3. Now you can start/stop/restart it using sudo /etc/init.d/nginx start/stop/restart
4. Edit Nginx config file sudo pico /etc/nginx/nginx.conf
5. Instead of the include /etc/... row paste the following:
server { root /var/www/nginx-default;
location / {
if (-f $document_root/error503.html) {
return 503;
} }
# error 503 redirect to error503.html
error_page 503 @maintenance;
location @maintenance {
rewrite ^(.*)$ /error503.html break;
}
6. Create the page (the folder should already exist) /var/www/nginx-default/error503.html and
remove the /var/www/nginx-default/index.html.
7. Start/Restart Nginx sudo /etc/init.d/nginx start
8. Now you are done and you could use ec2-associate-address YOUR-IP -i YOUR-INSTANCE-
ID to map your public IP between the production server and this maintenance-page
serving instance.
Rds Implement:
In the upper-right corner of the Amazon RDS console, choose the AWS Region in which you
want to create the DB instance. In the navigation pane, choose Databases. Choose Create
database, then choose Standard create. For Engine type, choose IBM Db2, MariaDB, Microsoft
SQL Server, MySQL, Oracle, or PostgreSQL.
Kubernates types of services:
ClusterIP (default): Internal clients send requests to a stable internal IP address.
NodePort: Clients send requests to the IP address of a node on one or more
nodePort values that are specified by the Service.
LoadBalancer: Clients send requests to the IP address of a network load
balancer.
There are four types of services that Kubernetes supports: ClusterIP,
NodePort, LoadBalancer, and Ingress. Each has their own set of
requirements to enable them for your application, so you must
understand which one you need before deploying.
How to build docker files:
How to create a docker file from scratch
1. Open your preferred IDE (such as VS Code) and navigate to your project
directory. Create a new file in your project directory (at the root level) and name it
Dockerfile (no file extension). ...
2. FROM. ...
3. WORKDIR. ...
4. COPY. ...
5. RUN. ...
6. CMD. ...
7. ENV. ...
8. EXPOSE: