Tutorial by Examples: aws

AWS Lambda supports Transparent scalability and availability Developer friendly operations and no need to manage servers Native integration to AWS services No need to pay for idle time RESTful integration Monitoring the RESTful interface using AWS API gateway
CloudFormer template translates the existing AWS entities to a generate new CloudFormation template to accelerate the time to recreate the environment. The CloudFormer launches in a default VPC which might not be suitable in the cases where the default VPC is deleted. This code base is fork from the...
To proceed with the deployment to S3, we will install these plugins: ember-cli-deploy-s3-index: It uploads the index.html to S3 with revision information, and activates it ember-cli-deploy-s3: It uploads the assets (js, css and other media files) to S3 As they are Ember addon you can easily i...
class Functor f where fmap :: (a -> b) -> f a -> f b One way of looking at it is that fmap lifts a function of values into a function of values in a context f. A correct instance of Functor should satisfy the functor laws, though these are not enforced by the compiler: fmap id = i...
In this example, we will launch a basic EC2 Instance with Amazon Linux in the quickest manner possible via the AWS Management Console. Amazon frequently improves the user experience of the AWM Management console, so you might experience some changes to the screens below. Important: launching an in...
Note: Loading Odoo onto an AWS EC2 Container requires an AWS account Loading Odoo onto an AWS EC2 Instance can be done with one-click, simply go here or search for "Odoo AWS" in Google. This may take some time, but once it's ready you'll need to do two things: Get your password Fin...
To create a Java lambda using the GUI, first make sure you have your distribution zip ready. You will also need an AWS account that can create lambdas. Switch to the AWS Lambda, dismiss the introduction screen (or read the Get Started documentation) and press the button Create a Lambda Function. ...
Probably the most common way to invoke a Lambda is to use API Gateway, which maps a REST call to the lambda code. You can add multiple triggers to your Lambda during at any time, including when creating a new lambda. If you are familiar with API Gateway, you can associate any method with a deployed...
Follow following steps to try out a sample application on AWS ECS service as a proof of concept. Login to AWS management console and go to AWS service catalog - > Compute - > Ec2 Create a VM(EC2 instance) using amazon linux 64 bit OS, this we will use to configure docker, git, AWS ECS agen...
Right Click your project and select Publish to AWS Lambda... The Upload to AWS Lambda screen will appear. Make sure the correct region is selected. Keep all of the defaults. Then only enter the Function Name: AWSLambdaFunctionAgeInYears and then click next. On the next page, sele...
After Step 3 above, Visual Studio will open the View Function window with your function loaded. On the bottom left of this screen, enter the following json into the Sample Input box: { "month": "10", "day": "28", "year": "1979" } ...
First you disable your network card's automatic checksumming: sudo ethtool -K eth1 tx off Then send your packet, using a SOCK_RAW socket: #!/usr/bin/env python from socket import socket, AF_PACKET, SOCK_RAW s = socket(AF_PACKET, SOCK_RAW) s.bind(("eth1", 0)) # We're putting toge...
The sample command can be used to simulate classic probability problems like drawing from an urn with and without replacement, or creating random permutations. Note that throughout this example, set.seed is used to ensure that the example code is reproducible. However, sample will work without expl...
$BucketName = 'trevorrekognition' $FileName = 'kitchen.jpg' New-S3Bucket -BucketName $BucketName Write-S3Object -BucketName $BucketName -File $FileName $REKResult = Find-REKLabel -Region us-east-1 -ImageBucket $BucketName -ImageName $FileName $REKResult.Labels After running the script ab...
$BucketName = 'trevorrekognition' ### Create a new AWS S3 Bucket New-S3Bucket -BucketName $BucketName ### Upload two different photos of myself to AWS S3 Bucket Write-S3Object -BucketName $BucketName -File myphoto1.jpg Write-S3Object -BucketName $BucketName -File myphoto2.jpg ### Perform...
In following example we will create table movies with AWS Ruby SDK v2. Here, each Movie as one unique Partition Key as id, and Range Key year. Apart from this we want to be able to query movies with their name, hence we will create a Global Secondary Index (GSI) name-year-index with name as Hash Ke...

Page 2 of 2