Skip to content

philipmw/aws-synthetics-local

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-synthetics-local

NOT TEST YET

This a simple alternative library to develop AWS Synthetics Canary (syn-1.0) locally, since aws hasn't release the syn-1.0 library.

This repository use puppeteer rather than puppeteer-core for better debug experience, so you will download Chromium while npm install.

Cooperate with aws-synthetics-logger

For no code change replacement, add following two develop dependencies to your package.json

{
    "devDependencies": {
        "Synthetics": "npm:@sixleaveakkm/[email protected]",
        "SyntheticsLogger": "npm:@sixleaveakkm/[email protected]"
    }
}

then run npm install

Run Locally

Install the script

npm i -g @sixleaveakkm/[email protected]

It will install a command named canary-run in your global node environment.

Run

Run with default, headlessMode: false, screenShot dir: .screenshot

canary-run yourScriptName.handler

or with parameters

canary-run --headless false --screenshotDir .screenshot yourScriptName.handler

which will execute your canary script

example

example

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 96.6%
  • Shell 3.4%