Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FeatureRequest: Allow InvocationType argument to InvokeFunction() #802

Closed
kbalk opened this issue Mar 4, 2021 · 2 comments
Closed

FeatureRequest: Allow InvocationType argument to InvokeFunction() #802

kbalk opened this issue Mar 4, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@kbalk
Copy link
Contributor

kbalk commented Mar 4, 2021

What I would like to do:

Add an argument to InvokeFunction() that can be used as the InvocationType argument to AWS SDK's Invoke().

From the AWS CLI command reference (https://docs.aws.amazon.com/cli/latest/reference/lambda/invoke.html):

invoke
--function-name
[--invocation-type ] <-----
[--log-type ]
[--client-context ]
[--payload ]
[--qualifier ]
<outfile>

func InvokeFunction(t testing.TestingT, region, functionName string, payload interface{}) []byte {

Why?

An InvocationType argument of "DryRun" provides a simple verification of a Lambda's installation. It's also useful where it's difficult to generate the appropriate payload to test a lambda's invocation.

@brikis98 brikis98 added enhancement New feature or request help wanted labels Mar 9, 2021
@brikis98
Copy link
Member

brikis98 commented Mar 9, 2021

PR to add this, perhaps in a new function, is welcome!

@brikis98
Copy link
Member

brikis98 commented Apr 6, 2021

@brikis98 brikis98 closed this as completed Apr 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants