Connect to Amazon EC2 file directory using Filezilla and SFTP

I’ve created a video tutorial for this. Just check: Connect to Amazon EC2 file directory using FileZilla and SFTP, Video Tutorial Summary of above video tutorial: Edit (Preferences) > Settings > Connection > SFTP, Click “Add key fileā€ Browse to the location of your .pem file and select it. A message box will appear asking … Read more

AWS EFS vs EBS vs S3 (differences & when to use?) [closed]

One word answer: MONEY šŸ˜€ 1 GB to store in US-East-1: (Updated at 2016.dec.20) Glacier: $0.004/Month (Note: Major price cut in 2016) S3: $0.023/Month S3-IA (announced in 2015.09): $0.0125/Month (+$0.01/gig retrieval charge) EBS: $0.045-0.1/Month (depends on speed – SSD or not) + IOPS costs EFS: $0.3/Month Further storage options, which may be used for temporary … Read more

Benefits of EBS vs. instance-store (and vice-versa) [closed]

The bottom line is you should almost always use EBS backed instances. Here’s why EBS backed instances can be set so that they cannot be (accidentally) terminated through the API. EBS backed instances can be stopped when you’re not using them and resumed when you need them again (like pausing a Virtual PC), at least … Read more

Difference between Amazon EC2 and AWS Elastic Beanstalk [closed]

First off, EC2 and Elastic Compute Cloud are the same thing. Next, AWS encompasses the range of Web Services that includes EC2 and Elastic Beanstalk. It also includes many others such as S3, RDS, DynamoDB, and all the others. EC2 EC2 is Amazon’s service that allows you to create a server (AWS calls these instances) … Read more

Can an AWS Lambda function call another

I found a way using the aws-sdk. var aws = require(‘aws-sdk’); var lambda = new aws.Lambda({ region: ‘us-west-2’ //change to your region }); lambda.invoke({ FunctionName: ‘name_of_your_lambda_function’, Payload: JSON.stringify(event, null, 2) // pass params }, function(error, data) { if (error) { context.done(‘error’, error); } if(data.Payload){ context.succeed(data.Payload) } }); You can find the doc here: http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Lambda.html

How to get the instance id from within an ec2 instance?

See the EC2 documentation on the subject. Run: wget -q -O – http://169.254.169.254/latest/meta-data/instance-id If you need programmatic access to the instance ID from within a script, die() { status=$1; shift; echo “FATAL: $*”; exit $status; } EC2_INSTANCE_ID=”`wget -q -O – http://169.254.169.254/latest/meta-data/instance-id || die \”wget instance-id has failed: $?\”`” Here is an example of a more … Read more

How to pass a querystring or route parameter to AWS Lambda from Amazon API Gateway

As of September 2017, you no longer have to configure mappings to access the request body. All you need to do is check, “Use Lambda Proxy integration”, under Integration Request, under the resource. You’ll then be able to access query parameters, path parameters and headers like so event[‘pathParameters’][‘param1’] event[“queryStringParameters”][‘queryparam1’] event[‘requestContext’][‘identity’][‘userAgent’] event[‘requestContext’][‘identity’][‘sourceIP’]

What is difference between Lightsail and EC2? [closed]

Testing¹ reveals that Lightsail instances in fact are EC2 instances, from the t2 class of burstable instances. EC2, of course, has many more instance families and classes other than the t2, almost all of which are more “powerful” (or better equipped for certain tasks) than these, but also much more expensive. But for meaningful comparisons, … Read more

What is the difference between Amazon SNS and Amazon SQS?

SNS is a distributed publish-subscribe system. Messages are pushed to subscribers as and when they are sent by publishers to SNS. SQS is distributed queuing system. Messages are not pushed to receivers. Receivers have to poll or pull messages from SQS. Messages can’t be received by multiple receivers at the same time. Any one receiver … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)