Publish-AWSPowerShellLambda missing credential parameter
All other PowerShell cmdlet support -credential parameter (https://docs.aws.amazon.com/powershell/latest/reference/Index.html) I don't see a reason for this to not do this as well.
Describe the Feature
Add -credential parameter
-Credential
| Required? | False |
|---|---|
| Position? | Named |
| Accept pipeline input? | True (ByValue, ByPropertyName) |
Is your Feature Request related to a problem?
No
Describe alternatives you've considered
Manually setting and managing Credentials using Set-AWSCredential
Additional Context
Environment
This is a :rocket: Feature Request
This is impacting me, too. My only PS Profile is to our AWS Org's parent Account, then I am accustomed to using Switch Role to get an ephemeral Credential for the child Account I am targeting. Without the ability to specify Credential I am limited to only deploying to the parent ... or creating new IAM Users (with associated access-keys) for every child Account, then creating lots of add'l PS Profiles on my workstation ...
Also, a better URL to demonstrate that this cmd is owned by AWS, https://docs.aws.amazon.com/lambda/latest/dg/powershell-devenv.html
Appears to be a valid feature request. This CmdLet resides in aws-lambda-dotnet repository, hence might be the reason for different design and missing parameter. Needs review with the team.