Skip to content

Instantly share code, notes, and snippets.

View Dreamescaper's full-sized avatar

Oleksandr Liakhevych Dreamescaper

View GitHub Profile
@Dreamescaper
Dreamescaper / dotnet-lambda-cdk-asset-hash.cs
Created March 1, 2023 13:17
dotnet lambda CDK Custom AssetHash
public static Code GetLambdaCode(string zipPath)
{
return Code.FromAsset(zipPath, new AssetOptions
{
AssetHash = HashForZipContent(zipPath),
AssetHashType = Amazon.CDK.AssetHashType.CUSTOM
});
}
{title} (pull request #{id})
{approvedByList}