Cloud Fundamentals: AWS Services for C# Developers - Made by Nick Chapsas
- AWS SQS -> Simple Queue Service
- AWS SNS -> Simple Notification Service
- AWS DynamoDB
- AWS S3 -> Simple Storage Service
- AWS Secrets Manager
- AWS Lambda
{
"id": "67c338ae-9556-4aea-b800-02b69f8a7592",
"fullName": "Isaac Borges",
"email": "email@email.com",
"gitHubUsername": "isaacnborges",
"dateOfBirth": "1993-01-01"
}
{
"Effect": "Allow",
"Principal": {
"Service": "sns.amazonaws.com"
},
"Action": "sqs:SendMessage",
"Resource": "arn:aws:sqs:queue-resource",
"Condition": {
"ArnEquals": {
"aws:SourceArn": "arn:aws:sns:topic-source-arn"
}
}
}
- message attributes
{
"MessageType": [
"CustomerCreated"
]
}
- message body
{
"FullName": [
"Isaac Nunes Borges"
]
}
ApiKey
Development_Weather.Api_OpenWeatherMapApi__ApiKey
- invoke example
aws lambda invoke --function-name SimpleLambda --cli-binary-format raw-in-base64-out --payload '{ "Hello": "From Console" }' response.json
Get-Content \.response.json
dotnet tool install -g Amazon.Lambda.Tools
dotnet lambda invoke-function SimpleLambda --payload '{ "Hello": "From Console" }'
- templates
dotnet new -i Amazon.Lambda.Templates
{
"Sid": "APIAccessForDynamoDBStreams",
"Effect": "Allow",
"Action": [
"dynamodb:GetRecords",
"dynamodb:GetShardIterator",
"dynamodb:DescribeStream",
"dynamodb:ListStreams"
],
"Resource": "arn:aws:dynamodb:[region]:[codeNumber]:table/customers/stream/*"
}
dotnet lambda deploy-function SimpleLambda
dotnet lambda invoke-function SimpleLambda
dotnet lambda invoke-function SimpleLambda --payload '{ "From DotNet Cli" }'
dotnet lambda deploy-serverless SimpleHttpLambda
dotnet lambda delete-serverless SimpleHttpLambda
dotnet lambda deploy-function SimpleHttpLambda
dotnet tool install -g Amazon.Lambda.TestTool-6.0
dotnet lambda-test-tool-6.0
- Attach to process -> dotnet lambda-test-tool-6.0
dotnet lambda deploy-function SimpleLambda
dotnet lambda deploy-function SimpleHttpLambda
dotnet lambda deploy-function SimpleSqsLambda
dotnet lambda deploy-function SimpleSnsLambda
dotnet lambda deploy-function SimpleDynamoDbLambda
dotnet lambda deploy-function SimpleS3Lambda
dotnet lambda deploy-function SimpleApiLambda