Level Up Your CF Apps With Amazon Web Services - Brian Klaas

1y ago
16 Views
2 Downloads
2.64 MB
71 Pages
Last View : 2d ago
Last Download : 3m ago
Upload by : Ellie Forte
Transcription

Level Up Your CF Appswith Amazon Web ServicesBrian Klaasbklaas@jhu.edu@brian klaas

Level Up Your CF Appswith Amazon Web ServicesBrian Klaasbklaas@jhu.edu@brian klaas

Hello

Hello

Hello

Hello

Hello

moDBElastiCacheRDSElastic loud SearchElasticTranscoderSESSNSSQSSWFFPS d DocsWorkSpacesAWS ConfigVPCIAMCoud HSMRoute 53DirectConnectCloud BatchLightsailXrayCode eDeploy

Hello

Things you have to do on your own:1. Go play in the console2. Learn about IAM roles and permissionsHello

AWS Playboxgithub.com/brianklaas/awsplaybox

S3

Store all the things.S3

99.999999999% durabilityS3

0.023 per GB stored 0.004 per 10,000 GET 0.005 per 1,000 PUT 0.10 per GB out after 1GBS3

Bucketmyfiles.s3.amazonaws.comS3

3

C:/s3://S3

cffile( variable "fileData", file "s3://somebucket/somefile.txt", action "read" );cfdirectory( directory "s3://somebucket/someDirectory", action "list" );S3

if ( ") ) {perms [ {group "all", permission "read"},{id "canonicalIDofYourAWSAccount",permission “full control"} ];cfdirectory( directory "s3://somebucket.s3.amazonaws.com", storeacl perms,action "create" ile.txt", "#someOutput#");S3files directoryList("s3://somebucket.s3.amazonaws.com");

IAM Credentials RequiredS3

Inline:cffile( variable "fileData", file ,action "read" );Or, in application.cfc:this.s3.accessKeyId "accessKey";this.s3.awsSecretKey "secretKey";S3

๏Expire URLs๏Change properties on a perrequest basis๏Upload to S3 from browserRequires request signing.S3

S3 Request Signing Utilsgithub.com/brianklaas/ctlS3utilsS3

S3 is storage, not a file system.Can get basic file info withcfhttp( url "http://bucket.s3.amazonaws.com/filename",method "head" );S3

CF only supports V2 signaturesCan’t use built-in CF support for S3 in new regions since 2014(Frankfurt, Seoul, Mumbai, Ohio, Canada, London)S3

Store all the things.S3

DynamoDB

Hugely scalable,high-write throughputdocument data storeDynamoDB

DynamoDB1. Set read/write capacity2. Set primary and sort keys3. Set secondary indexes4. Write

Logging and Monitoring Third–Party ServicesAlertCustomer uploadsEmits event with file infoProcesses eventFile detailsDynamoDB

Exam Activity AnalyticsElasticSearch?Capture learner actionDynamoDBWrites batch dataStores batch dataQuickSightAthena

DemoList, Put, Scan, Filter from CFgithub.com/brianklaas/awsplayboxDynamoDB

Lambda

Lambda

Lambda

No server is easier to managethan no server.Lambda

Event–driven computingLambda

1.5 GB RAM 5 minutesLambda

Lambda1. Write a handler function2. Upload ZIP3. Invoke an event4. Handler runs

Microservices infrastructure withouthaving to worry about running containersor scaling your infrastructure!Lambda

Logging and Monitoring Third–Party ServicesLambda

Logging and Monitoring Third–Party Services?Lambda

Logging and Monitoring Third–Party ServicesAlertCustomer uploadsEmits event with file infoProcesses eventFile detailsLambda

Async Image ResizingMultiple sizes written to S3Handle customer upload,posts to S3cffile ( action “write”file “s3://somebucket/images.zip” )LambdaEmits event with file infoProcesses eventCalls “done” http endpoint

Video Production WorkflowUpload to ingest bucketLambdaLaunches ElasticTranscoder jobPuts encoded filesPosts to S3Processes eventProcesses event

Video Production Workflow (v2)Upload to ingest bucketPuts encoded filesPosts to S3Processes eventProcesses eventCalls http endpointLambdaLaunches ElasticTranscoder jobGrabs source videoCalls transcription APICalls http endpointPosts to S3

DemoInvoking Lambda functions from CFgithub.com/brianklaas/awsplayboxLambda

Focus on building apps,not infrastructureLambda

Step Functions(with some Rekognition)

Visual serverless orchestrationStepFunctions

Automated, multi-step, asynchronous,serverless workflows in AWSStepFunctions

Avoid rebuilding the monolith(Or the microlith)StepFunctions

Step Functions “state machine”Amazon States Language ctions

StepFunctions

TaskSequenceParallelBranchingWaitingError HandlingRetriesStepFunctions

DemoInvoking Step Functions from CFgithub.com/brianklaas/awsplayboxStepFunctions

More on Rekognition in the awsPlayboxStepFunctions

Automated, multi-step, asynchronous,serverless workflows in AWSStepFunctions

Use statelint to validate your ASL ons

Preparing for Outages

The Great S3 Outage of 2017Outages

Plan for outages.(Blame Amazon)Outages

Batch upload from your serversOutages

Use multiple regionsOutages

Shut off servicesOutages

Have a plan.Outages

Go Do!

AWS Playboxgithub.com/brianklaas/awsplaybox

Please fill outthe session survey!brian.klaas@gmail.com@brian klaas

Brian Klaas bklaas@jhu.edu @brian_klaas. Level Up Your CF Apps with Amazon Web Services Brian Klaas bklaas@jhu.edu @brian_klaas. Hello. Hello. Hello. Hello. Hello. Hello EC2 Lambda Step Functions OpsWorks Cloud Watch Data Pipeline VPC IAM Direct Connect Cloud Search Elastic Transcoder SES SNS SQS SWF Dynamo DB Elasti Cache RDS Redshift Cloud

Related Documents:

Facebook Apps We define app engagement on Facebook as adding apps shared by friends, playing game apps with friends, and sug-gesting apps to friends. Even though some Facebook apps are only for personal use, our definition emphasizes app engagement with friends. As with tagging, most of the research on apps has primarily emphasized the negative

Include Mobile Apps in Risk Analysis Identify where PHI is located on mobile devices C - What apps Create PHI (e.g., diagnostic apps) R - What apps Receive PHI (e.g., EHR portal, e-mail, iBlueButton) M - What apps Maintain PHI (e.g., e-mail, secure container) T - What apps Transmit PHI (e.g., secure texting) 12

stair pressurization fan condensing units, typ. of (3) elevator overrun stair pressurization fan november 2, 2016. nadaaa perkins will ]mit ]] ]site 4 october 21 2016 10 7'-3" hayward level 1 level 2 level 3 level 4 level 5 level 6 level 7 level 1 level 2 level 3 level 4 level 5 level 6 level 7 level 8 level 9 level 10 level 11 level 12

Public Safety Apps Prior to AppComm, public safety professionals largely had to learn about helpful apps by word of mouth. AppComm is a one-stop, trusted site for APCO members, the general public, and app developers to: rate and comment on apps, submit ideas for new apps, and make the community at large aware of other apps that are

10k apps and generated network profiles for those apps. The techniques presented in this paper can be used along with an infrastructure, that monitors an app market and downloads new apps, to generate network profiles for newer apps and maintain a periodically updated database of the network profiles of all Android apps.

Search: Type text in the Google Search box at the top of your home screen, or touch to search by voice. Open app list: To see your apps, touch Apps . Google Play Store 11:35 Search by typing or saying "OK, Google". Touch Apps to see all your apps. Swipe down to see notifications, profiles and settings. Touch & hold an empty

learn about best practices after you set up your computer, fun things to do with your computer, and where to find additional HP resources. Visit the HP Apps Store The HP Apps Store offers a wide choice of popular games, entertainment and music apps, productivity apps, and apps exclusive to

In the Apps view, tap the plus sign ( ) and tap Log Off. If apps are still running, when prompted, select Log off to force the apps to close. Exit Receiver, but keep apps available for smooth roaming. Leave your apps running. If not on your Receiver home page, from the too