Skip to content

Instantly share code, notes, and snippets.

@OksanaH
Last active June 14, 2021 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save OksanaH/96e1a52937e7ec1753783c1c8dfe406b to your computer and use it in GitHub Desktop.
Save OksanaH/96e1a52937e7ec1753783c1c8dfe406b to your computer and use it in GitHub Desktop.
S3ObjectLambdaStack.cs
var policy = new PolicyStatement(new PolicyStatementProps
{
Effect = Effect.ALLOW,
Actions = new[] { "s3-object-lambda:WriteGetObjectResponse" },
Resources = new[] { "*" }
});
function.AddToRolePolicy(policy);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment