[aws-lambda] CurrentVersion not available for imported Lambda@Edge function
See original GitHub issue❓ General Issue
The Question
I’m only able to get .currentVersion
on the new lambda function, but not on the imported one.
Is it possible to get .currentVersion
property of the imported Lambda@Edge function?
Environment
- CDK CLI Version: 1.60.0
- Node.js Version: v14.8.0
- OS: OSX Mojave
- Language (Version): TypeScript (3.8.3)
Other information
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
class EdgeFunction (construct) · AWS CDK
A Lambda@Edge function added to default behavior of a Distribution // and ... For valid values, see the Runtime property in the AWS...
Read more >Using Lambda@Edge with CloudFront to configure redirect ...
I'm a big fan of cool URLs and not breaking the internet and so over the years I've ... import * as lambda...
Read more >Lambda@Edge Archives - Jayendra's Cloud Certification Blog
AWS Lambda functions must complete execution within 300 900 seconds. ... Each function has a single, current version of the code and there...
Read more >Ask question - AWS re:Post
I tried creating a demo for VueJS SSR using Lambda@Edge and using AWS CDK v2. ... Function, Runtime } from 'aws-cdk-lib/aws-lambda'; import {...
Read more >Dynamically Configure Your Lambda@Edge Functions
With Lambda@Edge we not allow to use environment variables. At all. Period. Origin-Request Example. For origin-request event functions there is ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@robertd like I proposed in #9892 with
fromVersionArn()
:@nija-at I’m trying to import an existing L@E function. As you know, Lambda@Edge functions can only be created in
us-east-1
; the default region we use isus-west-2
. This function (it’s current version) is used as a parameter for the CloudFront distribution construct.