Open kittrCZ opened 8 years ago
Could you see what happens if you change the lambda_deploy
section to the following? (I was seeing this as well and just just opened a PR about it)
lambda_deploy: {
default: {
arn: 'arn:aws:lambda:us-west-2:XXX:function:XXX-css-processor',
options: {
enableVersioning: true,
region: 'us-west-2'
}
}
}
@sonya I will check in couple of hours, I'm OOF now. Thanks for the reply!
OK @sonya, so this is working. I'm kind of baffled by that, I guess I need to review the code. But this is resolved. Anyway, it should be mentioned that the order of options matters. I'm considering review the code in order to fix that
This maybe old thread, but It seems to me that default region is hardcoded to 'us-east-1'. What would be neet if region is picked up from used AWS profile, if not explicitly set in configuration.
@toshke specify the region
in the task
:
lambda_deploy: {
default: {
arn: 'arn:aws:lambda:eu-west-1:my-account-number:function:my-function',
options: {
region: 'eu-west-1'
}
}
},
@webdevotion this works for me, but I believe if I add
options: {
profile : 'my-profile-name'
}
in Grunt configuration and I have
[profile my-profile-name]
region=ap-southeast-2
in ~/.aws/config
- I'll still get 'us-east-1' as deployment region. Doing some work on my fork anyway, so will double check and fix if this is the case.
It is a problem in 0.13.0, don't know why this is not being fixed... You have to set the region to your region in the options. My Problem was that there is misleading Information in the readme:
options.region
Type: String Default value: us-east-1
Specify the AWS region your functions will be uploaded to. Note that if an ARN is supplied this option is not required.
Please tag als bug and fix it
I just had the same problem. I assume that there is a bug in the code and not a documentation issue, because it make sense to extract the region from the arn if it's available.
Hi,
I have problems with deployment. The
grunt deploy
task is keep getting 404 and shows:I'm able to invoke the same function with aws-cli:
I'm running
Package.json
Gruntfile.js
Am I doing something wrong? I have used this library before and never head problems with this. Do you see there something wrong? I'm sure that the Lambda function is working and I'm able to test it.