This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const sleep = async (milliseconds) => { | |
| await new Promise((resolve) => setTimeout(resolve, milliseconds)); | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const axios = require("axios"); | |
| const AWS = require("aws-sdk"); | |
| AWS.config.region = "us-east-1"; | |
| const bucket_id = "BK-1"; | |
| module.exports.main = async (event) => { | |
| const s3 = new AWS.S3(); | |
| await s3 | |
| .putObject({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import AWS from "aws-sdk"; | |
| AWS.config.region = "us-east-1"; | |
| (async () => { | |
| const lambda = new AWS.Lambda(); | |
| const params = { | |
| FunctionName: "FN-1", | |
| InvocationType: "RequestResponse", | |
| LogType: "Tail", | |
| Payload: |
NewerOlder