It's not possible to generate an AWS v4 signature with the current functionality. See http://docs.aws.amazon.com/general/latest/gr/sigv4_changes.html for more information.
Is this still an open issue?
@jspronk yes
That would be awesome to have this!
@peterquirk @jspronk @serverlesspolska @jimmcslim @buggy @DJPorv @CasperSkydt @virtuoushub @rdt712 @sopel @mgresko @xBrux One of the most requested features AWS v4 Signature is finished by @sebastian-fredriksson-bernholtz. It will be released in the next release, and I will notify you then. @sebastian-fredriksson-bernholtz Thanks, good job 馃槃
One sample request looks like the following:
POST https://dynamodb.us-west-2.amazonaws.com HTTP/1.1
Authorization: AWS AKIAIHLZJJKAOE33FGEQ /EkuLOn2TEF0sAtN6c0IlgEUoaRHl/6lPy3y+K8R
Content-Type: application/json
X-Amz-Target: DynamoDB_20120810.ListTables
{
"limit": 1
}
You can check out the docs for more details https://github.com/Huachao/vscode-restclient#aws-signature-v4
That's really cool. Is it possible to refer accessKey and secretAccessKey from outside file somehow?
Having those in the source code is a bad practice as it is easy to commit them into a git repository 馃槥.
I think the best would be to refer to any profile defined in ~/.aws/credentials file.
POST https://dynamodb.us-west-2.amazonaws.com HTTP/1.1
Authorization: <profile>
@serverlesspolska my extension supports reading dynamic variables outside VSCode mainly in two ways:
$processEnv system variable, which reads exported shell environment variables like Authorization: {{$processEnv AWS_ACCESS_KEY}} {{$processEnv AWS_SECRET_KEY}}, you just need to export AWS_ACCESS_KEY and AWS_SECRET_KEY$dotenv system variable which reads the value stored in the .env file.You can check out the usage of these two variables in the README
Every day you learn something new! 馃槀
That will do it!
By the way. I really 鉂わ笍 your extension and recommend it to people who I teach how to write serverless apps.
Thanks & good luck @Huachao 馃榾馃憤
This is great news! Any word on when the next release will GA?
Thank you!
This is great news! Any word on when the next release will GA?
@jspronk maybe late this month
Hi @Huachao any word on when this will be released? Thanks.
@peterquirk @jspronk @serverlesspolska @jimmcslim @buggy @DJPorv @CasperSkydt @virtuoushub @rdt712 @sopel @mgresko @xBrux You can try this feature in the latest release 0.24.0. Again, thanks so much @sebastian-fredriksson-bernholtz for your great contribution
Thank you!
Most helpful comment
@peterquirk @jspronk @serverlesspolska @jimmcslim @buggy @DJPorv @CasperSkydt @virtuoushub @rdt712 @sopel @mgresko @xBrux One of the most requested features
AWS v4 Signatureis finished by @sebastian-fredriksson-bernholtz. It will be released in the next release, and I will notify you then. @sebastian-fredriksson-bernholtz Thanks, good job 馃槃One sample request looks like the following:
You can check out the docs for more details https://github.com/Huachao/vscode-restclient#aws-signature-v4