Comparing version 0.0.14 to 0.0.15
@@ -17,2 +17,3 @@ const { program } = require("commander"); | ||
.option("--lambda-update-publish-s3", "update and publish new lambda version from s3 object") | ||
.option("--lambda-update-publish-local", "update and publish new lambda version from local file") | ||
.option("--ecr-ecs-ephemeral-create", "creates an ephemeral ecr/ecs combination") | ||
@@ -29,2 +30,3 @@ .option("--ecr-ecs-ephemeral-destroy", "destroys an ephemeral ecr/ecs combination") | ||
.option("--local-image-name <local-image-name>", "local image name") | ||
.option("--zip-file <file-name>", "file name") | ||
.option("--s3-bucket <s3-bucket>", "s3 bucket") | ||
@@ -92,2 +94,5 @@ .option("--s3-key <s3-key>", "s3 key") | ||
if (options["lambdaUpdatePublishLocal"]) | ||
Lib.lambdaUpdatePublishLocal(options["lambdaFunction"], options["zipFile"], resultFunc); | ||
if (options["ecrEcsEphemeralCreate"]) | ||
@@ -94,0 +99,0 @@ Lib.ecrEcsEphemeralCreate(options["executionRoleArn"], options["taskRoleArn"], options["cpuUnits"], options["memoryUnits"], resultFunc); |
{ | ||
"name": "awsass", | ||
"description": "AWSASS is an assistant to AWS, mostly for running better scripts.", | ||
"version": "0.0.14", | ||
"version": "0.0.15", | ||
"author": "Jsonize", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/jsonize/awsass", |
const AWS = require("aws-sdk"); | ||
const Docker = require(__dirname + "/docker.js"); | ||
const OS = require("os"); | ||
const FS = require("fs"); | ||
@@ -396,2 +397,8 @@ const nameValueArrayToObject = function (arr) { | ||
lambdaUpdatePublishLocal: function (lambdaFunction, fileName, callback) { | ||
Module.resilientUpdateFunctionCodePublishLambdaVersion(lambdaFunction, { | ||
ZipFile: FS.readFileSync(fileName) | ||
}, callback); | ||
}, | ||
apiGatewayAddLambdaPermission: function (restApiId, apiGatewaySubPath, lambdaFunction, lambdaFunctionVersion, callback) { | ||
@@ -398,0 +405,0 @@ const sts = new AWS.STS({apiVersion: "2011-06-15"});; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31677
633
4