Cloudgnosis collection
F# language articles:
F# for the cloud worker
Part 1 - Hello Cloud!
Part 2 - AWS SDK for .NET
Part 3 - AWS Lambda
Part 4 - AWS SAM
Part 5 - AWS Cloud Development Kit (CDK)
Contact
Do you have questions or comments?
Cloudgnosis collection
»
F# for the cloud worker
View page source
F# for the cloud worker
ΒΆ
Part 1 - Hello Cloud!
Installation
Running some F# code
The REPL
Script file
Command line arguments
Connecting to AWS
Access S3
Closing remarks for part 1
Source code
Finding F# information
Development environment
TTP - Time to print
Does it spark joy?
Next steps
Part 2 - AWS SDK for .NET
Developer workflow
IDE integration with F# Interactive REPL
Using F# 5 features
AWS credentials handling
ShowServers.fsx
EC2 instances created
Extracting instance information
Finding the
Name
tag
Show the result
The trouble with types
Final remarks
Source code
Part 3 - AWS Lambda
Set-up for AWS Lambda
Setting up Lambda function with a template
Sorting out dependencies
Examining the function itself
Preparing for the deployment of Lambda function
Setting default for deployment
Running our Lambda function
Useless Lambda
Summary
Source code
Part 4 - AWS SAM
Cloudformation and SAM
Creating a SAM project
The Detect Image Labels code
Dependencies and structure
Function class definition
The handler function
The helper functions
The Cloudformation piece
Solution deployment
Testing our Lambda function
Picture 1
Pictures 2-5
Picture 6
Cold starts
Summary
Source code
Part 5 - AWS Cloud Development Kit (CDK)
AWS CDK concepts
Set-up of AWS CDK
Creating a CDK project for F#
Working with CDK code
Build and deploy CDK app
Adding more infrastructure
A backend Lambda function
Check the Cloudformation
First actual deploy
Expose Lambda as HTTP API
Storing hit counts in DynamoDB
The infrastructure
The backend lambda
Summary and final thoughts
Source code