Your Auto Scaling policy ScaleOutPolicy could not be found at this time. Please try reselecting this alarm. If the policy does not exist you may modify this alarm to set up a valid action.
Monday, 21 August 2017
August 21, 2017
Cloud Watch Alarms- policy issue
Sunday, 20 August 2017
August 20, 2017
AWS S3 Tutorial
Amazon Simple Storage Service is also known as Amazon S3. It is highly scalable object storage in the cloud securely.
It is used to store any amount of data.
MultiPart form uploading to AWS
S3 is Object Storage with a simple web service interface to store and retrive any amount of data from anywhere on the web.
What is multi part upload ?
1. Initiate the Multi part Upload
2. Seperate the object into multiple parts.
3. Upload the parts in any order, one at a time or in the parallel.
Date transmission - Browser going to App server and going to S3.
https://s3.amazonaws.com/upload-demo-images/5e64truyt47653745tr46tr736t4rt4r3t46
Nodejs code :
Install the dependencies.
npm install s3-stream-upload
var UploadStream = require("s3-stream-upload");
var S3 = require("aws-sdk").S3;
var key = "file.mp3";
var s3 = new S3();
fs.readFileStream(__dirname + "/file.mp3")
.pipe(UploadStream(s3, { Bucket: "my-S3-bucket", Key: key }))
.on("error", function (err) {
console.error(err);
})
.on("finish", function () {
console.log("File uploaded!");
});
my sample s3 url - 'https://s3.amazonaws.com/upload-demo-images/';
It is used to store any amount of data.
MultiPart form uploading to AWS
S3 is Object Storage with a simple web service interface to store and retrive any amount of data from anywhere on the web.
What is multi part upload ?
1. Initiate the Multi part Upload
2. Seperate the object into multiple parts.
3. Upload the parts in any order, one at a time or in the parallel.
Date transmission - Browser going to App server and going to S3.
https://s3.amazonaws.com/upload-demo-images/5e64truyt47653745tr46tr736t4rt4r3t46
Nodejs code :
Install the dependencies.
npm install s3-stream-upload
var UploadStream = require("s3-stream-upload");
var S3 = require("aws-sdk").S3;
var key = "file.mp3";
var s3 = new S3();
fs.readFileStream(__dirname + "/file.mp3")
.pipe(UploadStream(s3, { Bucket: "my-S3-bucket", Key: key }))
.on("error", function (err) {
console.error(err);
})
.on("finish", function () {
console.log("File uploaded!");
});
my sample s3 url - 'https://s3.amazonaws.com/upload-demo-images/';
Saturday, 19 August 2017
August 19, 2017
Aws Security Groups
The very first thing to ensure that the unwanted or unauthorized traffic doesn't get in into the instances using Security Group.
What is a Security Group?
It is a AWS firewall solution which filters the incoming and outgoing traffic from an instance.
Filtering is done based upon the ip protocols,ports and source/destination ip addresses.
At the backend requires X.509 certificate and key to authorise changes.
How to configure security groups while creating instance.
You can configure security groups while creating instance or anytime after creating instance.
What is a Security Group?
It is a AWS firewall solution which filters the incoming and outgoing traffic from an instance.
Filtering is done based upon the ip protocols,ports and source/destination ip addresses.
At the backend requires X.509 certificate and key to authorise changes.
How to configure security groups while creating instance.
You can configure security groups while creating instance or anytime after creating instance.
Figure 1.0
Figure 1.1
Here you can configure security group.
Start configure security rules. Security rules for set of firewall rules that control the traffic. what kind of traffic can reach the instance.
The rules we are going to configure are Inbound rules.
SSH/RDP:
If we use linux based machine, configure SSH. SSH stands for secure shell. Secure access to the remote machine.It always communicates over port 22.It is static and you cannot change the port.
If it is Windows based machine, configure RDP. By default it will give root access to the machine.
If we select source anywhere, across internet can access the machine via SSH. This is quite dangerous.
You can choose custom ip for security purpose.
Web Traffic:
Web traffic can come from any source.
0.0.0.0/0 -> allows all the traffic.which is not secure.
HTTP communicates over port 80.
HTTPS always communicates over port 443.
Depends on what traffic you want to allow in, you can add rule here.
Figure 1.2
Figure 1.3
Thursday, 17 August 2017
August 17, 2017
aws instance types
General Purpose (T2, M3, M4 class):
These provides overall balance of Ram, CPU and provide burstable performance.
IOP starts from 100 and upto 3000.
Compute Optimized (C3 and C4 class):
It is meant for hude traffic.
Storage Optimized(I3 and D2 class):
It is for large datawarehouse.
Memory Optimized(X1, R3 and R4 class):
It is for Memcached and enterprise apps.
Accelerated Computing(P2, G3 and F1 class):
It is for general-purpose GPU compute applications,graphics-intensive applications and FPGAs.
These provides overall balance of Ram, CPU and provide burstable performance.
IOP starts from 100 and upto 3000.
Compute Optimized (C3 and C4 class):
It is meant for hude traffic.
Storage Optimized(I3 and D2 class):
It is for large datawarehouse.
Memory Optimized(X1, R3 and R4 class):
It is for Memcached and enterprise apps.
Accelerated Computing(P2, G3 and F1 class):
It is for general-purpose GPU compute applications,graphics-intensive applications and FPGAs.
Wednesday, 16 August 2017
August 16, 2017
Unabme to run docker without sudo
I am unable to run docker without sudo.
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.25/containers/json: dial unix /var/run/docker.sock: connect: permission denied
I added docker to user group
Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get http://%2Fvar%2Frun%2Fdocker.sock/v1.25/containers/json: dial unix /var/run/docker.sock: connect: permission denied
I added docker to user group
sudo usermod -aG docker $USER
Still i am unable to run without sudo.
Sunday, 13 August 2017
August 13, 2017
docker Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Warning: failed to get default registry endpoint from daemon (Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?). Using system default: https://index.docker.io/v1/
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
Monday, 7 August 2017
August 07, 2017
Jupyterhub is not running on ubuntu 16.04
$ jupyterhub
/home/ubuntu/jupyterhub_config.py:6: UserWarning: IPython.utils.localinterfaces has moved to jupyter_client.localinterfaces
from IPython.utils.localinterfaces import public_ips
[I 2017-08-07 18:36:18.545 JupyterHub app:724] Loading cookie_secret from /home/ubuntu/jupyterhub_cookie_secret
[W 2017-08-07 18:36:18.576 JupyterHub app:365]
Generating CONFIGPROXY_AUTH_TOKEN. Restarting the Hub will require restarting the proxy.
Set CONFIGPROXY_AUTH_TOKEN env or JupyterHub.proxy_auth_token config to avoid this message.
[W 2017-08-07 18:36:18.579 JupyterHub app:864] No admin users, admin interface will be unavailable.
[W 2017-08-07 18:36:18.580 JupyterHub app:865] Add any administrative users to `c.Authenticator.admin_users` in config.
[I 2017-08-07 18:36:18.580 JupyterHub app:892] Not using whitelist. Any authenticated user will be allowed.
[I 2017-08-07 18:36:18.593 JupyterHub app:1453] Hub API listening on http://172.31.28.236:8081/hub/
[W 2017-08-07 18:36:18.596 JupyterHub app:1174] Running JupyterHub without SSL. I hope there is SSL termination happening somewhere else...
[I 2017-08-07 18:36:18.596 JupyterHub app:1176] Starting proxy @ http://*:8000/
/usr/bin/env: ‘node’: No such file or directory
[C 2017-08-07 18:36:19.605 JupyterHub app:1459] Failed to start proxy
Traceback (most recent call last):
File "/home/ubuntu/miniconda3/lib/python3.6/site-packages/jupyterhub/app.py", line 1457, in start
yield self.start_proxy()
File "/home/ubuntu/miniconda3/lib/python3.6/site-packages/jupyterhub/app.py", line 1197, in start_proxy
_check()
File "/home/ubuntu/miniconda3/lib/python3.6/site-packages/jupyterhub/app.py", line 1193, in _check
raise e
RuntimeError: Proxy failed to start with exit code 127
solution:
sudo apt-get install npm nodejs-legacy
Labels
- Access Denied IAM (1)
- amazon ecs (1)
- amazon ecs clustor (1)
- amazon elastic beanstack (1)
- amazon elatsiccache (1)
- amazon vpc (1)
- amazon web services (1)
- amazon web services benefits (1)
- amazon web services cli (1)
- apache redirection (1)
- apache tomcat ubuntu 16.04 (1)
- application load balancing (1)
- apt get install docker (1)
- aws (1)
- aws diagram drag and drop (1)
- aws diagrams (1)
- aws diagrams creation (1)
- aws domains (1)
- aws dynamodb (1)
- Aws ebs (1)
- aws ec2 docker insufficient memory (1)
- aws eip (1)
- aws elastic beanstalk (1)
- aws elastic cache (1)
- aws elastic ip (1)
- aws lambda (1)
- aws lambda function (1)
- aws lambda pricing (1)
- aws no sql (1)
- aws online training (1)
- aws php (1)
- aws route53 (1)
- aws route53 domain issue (1)
- aws route53 Latency Based Routing queries pricing (1)
- AWS route53 strategy (1)
- aws route53 Traffic Flow pricing (1)
- aws route53 Tried to create resource record set type (1)
- aws s3 (1)
- aws s3 multi part data upload (1)
- aws s3 pricing (1)
- aws security group ip range (1)
- aws security group limits (1)
- aws security group rules (1)
- AWS SES (1)
- block vs object storage (1)
- but DryRun flag is set (1)
- centos (2)
- centos nodejs (1)
- centos npm (1)
- ChangeResourceRecordSet - Update issue (1)
- ChangeResourceRecordSets aws (1)
- ChangeResourceRecordSets nodejs (1)
- classic load balancing (1)
- cloud computing training (1)
- comodo ssl (1)
- ConfigError in aws (1)
- Connection timed out after (1)
- Could not load credentials from any providers (1)
- create database in mongodb (1)
- create database mongodb (1)
- create iam policy for route53 (1)
- creating docker image (1)
- creating subdomain api (1)
- cvc-enumeration-valid: Value 'UPDATE' is not facet-valid with respect to enumeration (1)
- Device: /dev/sda1 (1)
- digitalocean (1)
- docker hub (1)
- docker info (1)
- docker install (1)
- docker install ubuntu (1)
- docker machine (1)
- docker machine amazon linux (1)
- docker machine redhat (1)
- docker machine ubuntu (1)
- docker ubuntu (1)
- docker ubuntu 14.04 (1)
- docker version (1)
- docker-engine : Depends: libsystemd-journal0 (1)
- docker-engine issue (1)
- dynamodb (1)
- dynamodb api (1)
- dynamodb local (1)
- dynamodb pricing (1)
- ec2 image will be stored in aws s3. cheapest storage in aws (1)
- ec2 instance types (1)
- ec2 with elastic ip (1)
- eip (1)
- elastic block storage (1)
- elastic ip (1)
- elastic ip charges (1)
- Error starting instances (1)
- getting aws issues (1)
- homebrew mac osx (1)
- how to create aws diagrams (1)
- how to create dynamic subdomain (1)
- how to get docker status (1)
- how to install nodejs on ubuntu 16.04 (1)
- how to install comodo ssl (1)
- how to install mongodb on ubuntu (1)
- how to install nodejs in redhat (1)
- how to register domain aws (1)
- how to setup aws vpc (1)
- how to start docker (1)
- how to use aws vpc (1)
- how to use comodo ssl (1)
- how to use route53 (1)
- how to use vc (1)
- http to https redirection ec2 instance (1)
- iis https redirection (1)
- insalling comodo ssl (1)
- install amazon web services cli (1)
- install aws cli (1)
- install cli (1)
- install docker (2)
- install docker in aws (1)
- install docker ubuntu (2)
- install docker ubuntu 14.04 (1)
- install homebrew mac osx (1)
- install mongodb linux (1)
- install mongodb mac (1)
- install mongodb ubuntu (1)
- install mongodb ubuntu 16.04 (1)
- install mongodb windows (1)
- install nodejs (1)
- install nodejs in redhat (1)
- Invalid login: 535 Authentication Credentials Invalid (1)
- Invalid value 'i-08cbb15' for instanceId (1)
- InvalidInstanceID (1)
- lambda (1)
- lambda aws (1)
- lambda function aws (1)
- lambda lambda lambda (1)
- missing credentials in config (1)
- mongodb features (1)
- mongodb install ubuntu (1)
- mongodb scalability (1)
- mongodb server (1)
- mongodb ubuntu 16.04 (1)
- mongoose create database (1)
- mongoose mongoldb (1)
- mongoose nodes (1)
- nginx https redirection (1)
- No package httpd24 available (1)
- No package mysql55-server available (1)
- No package php56 available (1)
- No package php56-mysqlnd available (1)
- node js mongoose (1)
- node mongoose (1)
- node redhat (1)
- nodejs centos (1)
- nodejs docker image (1)
- not authorized to perform: route53:ChangeResourceRecordSets on resource: (1)
- object storage vs block storage (1)
- object store (1)
- online training amazon web services (1)
- online training ec2 (1)
- Orchestration in aws (1)
- Orchestration worrkflow (1)
- Permission denied (publickey) when SSH Access (1)
- php (1)
- pointing domain using route53 (1)
- redhat (1)
- redhat nodejs (1)
- registering subdomain (1)
- Request would have succeeded (1)
- route53 access denied (1)
- run mongodb mac (1)
- run mongodb ubuntu (1)
- run mongodb windows (1)
- run nodejs without sudo (1)
- security group best practices (1)
- security group inbound outbound (1)
- sharding features in mongod (1)
- start docker at reboot (1)
- storage area network (1)
- The pending instance AWS (1)
- tomcat admin (1)
- tomcat admin permissions (1)
- tomcat ubuntu (1)
- tomcat users (1)
- Traditional Architecture vs microservices (1)
- ubuntu 16.04 tomcat (1)
- ubuntu docker install (1)
- UnknownEndpoint: Inaccessible host aws (1)
- use of microservices (1)
- virtual private network (1)
- webservices subdomain (1)
- What are microservices (1)
- what are the domains in cloud (1)
- what is amazon vpc (2)
- what is aws diagram (1)
- what is aws ebs (1)
- what is aws ecs (1)
- what is aws route53 (1)
- what is aws s3 storage (1)
- what is block storage (1)
- what is elastic ip (1)
- what is object storage (1)
- what is Orchestration (1)
- what is sharding in mongodb (1)
- what is vpc (2)
- when to use aws ecs (1)
- when to use aws s3 (1)
- where to use ssl (1)
- why amazon elastic cache (1)
- why aws (1)
- why aws ecs (1)
- why elastic ip (1)
- why Orchestration (1)
- why route53 (1)
- why sharding (1)
- why vpc (2)
- why we need microservices (1)
- Why would i need Microservices (1)
- wordpress (1)
- ws security group ipv6 (1)
- yum (1)
- yum install httpd24 php56 mysql55-server php56-mysqlnd (1)