Comments (12)
Thank you @rayjanoka The issue is resolved and the auto tag is working fine with Node 18.x version.
from auto-tag.
I'm also seeing this when switching the runtime from nodejs:14 to nodejs:18.
No issues using nodejs:16.v18
from auto-tag.
Facing the issue @northern @humblelistener
Getting error:
errorType": "Runtime.UnhandledPromiseRejection, errorMessage": "Error: Cannot find module 'aws-sdk'\nRequire stack:
from auto-tag.
I see, let me try to just include the v2 aws-sdk with the release zip
from auto-tag.
I've updated the v0.5.5 release package to include the aws-sdk
v2 library for NodeJS 18 in Lambda.
Let us know if the new package is working.
from auto-tag.
hello there, just tested and got this error msg:
2023-09-06T18:20:21.370Z undefined ERROR Uncaught Exception {
"errorType": "Runtime.UserCodeSyntaxError",
"errorMessage": "SyntaxError: Cannot use import statement outside a module",
"stack": [
"Runtime.UserCodeSyntaxError: SyntaxError: Cannot use import statement outside a module",
" at _loadUserApp (file:///var/runtime/index.mjs:1058:17)",
" at async UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1093:21)",
" at async start (file:///var/runtime/index.mjs:1256:23)",
" at async file:///var/runtime/index.mjs:1262:1"
]
}
thank you
from auto-tag.
thanks @estanqueiroa, I think I got the errors cleared if you could try again.
from auto-tag.
Hello @rayjanoka I think the issue is not resolved yet, Facing same error again.
While using ./deploy_autotag.sh -r region -s3bu bucket-name --release-version latest update-release
this command the runtime version remains on 14.x only.
The version is updated when ./deploy_autotag.sh -r region -s3bu bucket-name update-master
command is ran
from auto-tag.
@vishaliamops ok I uploaded the code, you can try update-master
or the 0.5.6
release.
from auto-tag.
Good Morning @rayjanoka
I think the SDK issue is resolved but now we are getting new error,
{
"errorType": "Runtime.UnhandledPromiseRejection",
"errorMessage": "SyntaxError: Cannot use import statement outside a module",
"reason": {
"errorType": "SyntaxError",
"errorMessage": "Cannot use import statement outside a module",
"stack": [
"/var/task/autotag_event.js:1",
"import AwsCloudTrailEventListener from './aws_cloud_trail_event_listener.js';",
"^^^^^^",
"",
"SyntaxError: Cannot use import statement outside a module",
" at internalCompileFunction (node:internal/vm:73:18)",
" at wrapSafe (node:internal/modules/cjs/loader:1178:20)",
" at Module._compile (node:internal/modules/cjs/loader:1220:27)",
" at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)",
" at Module.load (node:internal/modules/cjs/loader:1119:32)",
" at Module._load (node:internal/modules/cjs/loader:960:12)",
" at Module.require (node:internal/modules/cjs/loader:1143:19)",
" at require (node:internal/modules/cjs/helpers:121:18)",
" at _tryImportOrRequire (/opt/nodejs/node_modules/lumigo-auto-instrument/aws/aws-user-function.js:211:14)",
" at _loadUserAppAsync (/opt/nodejs/node_modules/lumigo-auto-instrument/aws/aws-user-function.js:133:12)"
]
},
"promise": {},
"stack": [
"Runtime.UnhandledPromiseRejection: SyntaxError: Cannot use import statement outside a module",
" at process. (file:///var/runtime/index.mjs:1250:17)",
" at process.emit (node:events:514:28)",
" at emit (node:internal/process/promises:149:20)",
" at processPromiseRejections (node:internal/process/promises:283:27)",
" at process.processTicksAndRejections (node:internal/process/task_queues:96:32)"
]
}
And Yes also need to mention that while upgrading using Update Master Command
ReferenceError: module is not defined at file:///tmp/tmp.MyEnoNeQOL/auto-tag/babelrc-node.js:1:1 at ModuleJob.run (internal/modules/esm/module_job.js:145:37) at async Loader.import (internal/modules/esm/loader.js:182:24)
Following error is triggred.
from auto-tag.
ok, I fully tested this one in my account. Should be good to go with aws-sdk v3
!
https://github.com/GorillaStack/auto-tag/releases/tag/0.5.7
from auto-tag.
from auto-tag.
Related Issues (20)
- Support for SageMaker Notebook Instances
- Support for KMS and secrets manager
- Support for ECS and EKS
- Custom Tags - Ability to filter array
- Support for EFS
- Wanted: Repo Maintainer
- custom tags not working HOT 2
- Deployed using deploy_autotag.sh no tagging is happening HOT 1
- S3 Bucket tagging fails with a NoSuchTagSet error HOT 6
- support EKS/ECS HOT 1
- How to not show default tag AutoTag_Creator on AWS resources HOT 1
- no assets available for 0.5.10 HOT 2
- deploy_autotag.sh should not error when run more than once HOT 1
- Auto tagging for Amazon Aurora clusters
- run time error in latest release; npm test failures HOT 4
- Auto tag for CreateBucket Failed HOT 2
- Support for new enabled region in account
- Lambda function tagging error
- Issue with updating Lambda Function with new node version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auto-tag.