AWS Developer Tools Blog
Category: Programing Language
AWS SSM ASP.NET Core Data Protection Provider
The antiforgery framework is a critical part of ASP.NET Core. It ensures web forms and login pages haven’t been tampered with by storing crypto data with the form and then validating the form with a key created by the Data Protection framework. An ASP.NET Core Data Protection Provider is the building block that provides encryption […]
Read MoreAWS Serverless applications with multiple .NET Core projects
When building a serverless application on AWS, AWS CloudFormation is incredibly important for deploying your AWS Lambda functions and the AWS resources that your application will interact with. With our AWS .NET Core Lambda tooling, when you create a serverless application an AWS CloudFormation template is added to your project. The template enables you to […]
Read MoreDebugging .NET Core AWS Lambda functions using the AWS .NET Mock Lambda Test Tool
How to debug AWS Lambda functions is one of the most common questions we get from developers creating Lambda functions for .NET Core. The best practice is to write repeatable and automated tests to ensure that your functions stay correct as you make changes to them using frameworks like xUnit.net. The programming model for Lambda […]
Read MoreNew AWS SDK for JavaScript – Developer Preview
We’re happy to announce the developer preview of the AWS SDK for JavaScript, version 3. This version of the SDK is a major rewrite of the 2.x code base. It’s written in TypeScript and adds frequently requested features, like modularized packages. Many aspects of the SDK have been refactored and cleaned up in addition to […]
Read MoreWorking with dependency injection in .NET Standard: inject your AWS clients – part 2
In part 1 of this blog post, we explored using the lightweight dependency injection (DI) provided by Microsoft.Extensions.DependencyInjection. By itself, this is great for libraries and small programs, but if you’re building a nontrivial application, you have other problems to contend with: You might have complex configuration needs (development versus production, multiple sources, etc.) How […]
Read MoreWorking with dependency injection in .NET Standard: inject your AWS clients – part 1
Dependency injection (DI) is a central part of any nontrivial application today. .NET has libraries like Ninject for implementing inversion of control (IOC) in their development and, as of .NET Core 1.0 (specifically, .NET Standard 1.1), lightweight DI can be provided by Microsoft.Extensions.DependencyInjection. This was used primarily in the context of developing .NET Core web applications, but it can be […]
Read MoreDateTime serialization changes in the AWS SDK for .NET and AWSPowerShell modules
Summary: This blog post describes best practices for using DateTime values in distributed .NET programming. It also highlights some of the recent, related changes in the AWS SDK for .NET and the AWSPowerShell modules. Today, it’s increasingly common to write code that interacts with external systems, and it’s very likely that these systems won’t share the […]
Read MoreCreating a PowerShell REST API
With the recent AWS Lambda support for PowerShell, it’s now easy to make web APIs with Amazon API Gateway that execute your PowerShell scripts. In the previous blog post, we showed how to deploy PowerShell-based Lambda functions with AWS CloudFormation. We are going to reuse that technique in this post because using AWS CloudFormation is […]
Read MoreUpgrade AWS SDK for .NET for latest TLS Protocols
If your application is using .NET Framework 3.5 or 4.5 you should update to version 3.3.22.0 or later of AWSSDK.Core. This ensures you are using the latest HTTPS protocols and can communicate with newer AWS services. Background A growing trend across the internet is for HTTPS services to only accept connections using newer encryption protocols […]
Read MoreDeploying PowerShell-based Lambda with AWS CloudFormation
We recently announced AWS Lambda support for PowerShell. In our initial blog post, we showed how you can use the new AWSLambdaPSCore module to deploy PowerShell scripts to Lambda. In this blog post, we talk about how you can integrate PowerShell-based Lambda functions with AWS CloudFormation. It’s common to want to deploy a collection of […]
Read More