Coder Social home page Coder Social logo

cloudconformity / auto-remediate Goto Github PK

View Code? Open in Web Editor NEW
152.0 23.0 57.0 1.51 MB

Cloud Conformity Auto Remediate

Home Page: https://www.cloudconformity.com/conformity-rules/

License: MIT License

JavaScript 100.00%
auto-remediation aws lambda cloudconformity serverless aws-security-automation

auto-remediate's People

Contributors

binli0114 avatar bret-mechanicalrock avatar brianlam38 avatar brianlamcc avatar chuck-mai avatar chuckmai avatar cloud2ynamo avatar cpuccino avatar ctjioman avatar dependabot[bot] avatar edmundcong avatar ericsopa avatar functionalworm avatar henry-chao-hh avatar iaindurham avatar jay-motwani-trend avatar keinu avatar mikerahmati avatar phil-tao avatar plllmg avatar shreda avatar sjahandideh avatar temyers avatar tenz-dd avatar trend-adam-kinnell avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

auto-remediate's Issues

Deployment failure with InvalidParameterValueException

Hello,

We are facing issue while doing the deployment of the auto-remediation server less application with the following error.

[root@ip-172-16-1-146 auto-remediate]# serverless deploy --region ap-south-1

Serverless: Deprecation warning: Starting with next major version, default value of provider.lambdaHashingVersion will be equal to "20201221"

            More Info: https://www.serverless.com/framework/docs/deprecations/#LAMBDA_HASHING_VERSION_V2

Serverless: Packaging service...

Serverless: Excluding development dependencies...

Serverless: [serverless-plugin-split-stacks]: Summary: 49 resources migrated in to 3 nested stacks

Serverless: [serverless-plugin-split-stacks]:    Resources per stack:

Serverless: [serverless-plugin-split-stacks]:    - (root): 154

Serverless: [serverless-plugin-split-stacks]:    - PoliciesNestedStack: 1

Serverless: [serverless-plugin-split-stacks]:    - SubscriptionsNestedStack: 1

Serverless: [serverless-plugin-split-stacks]:    - VersionsNestedStack: 47

Serverless: Uploading CloudFormation file to S3...

Serverless: Uploading artifacts...

Serverless: Uploading service auto-remediate.zip file to S3 (589.11 KB)...

Serverless: Validating template...

Serverless: Updating Stack...

Serverless: Checking Stack update progress...

................................................................................................................................................................................................................................................................................................................

Serverless: Operation failed!

Serverless: View the full error output: https://ap-south-1.console.aws.amazon.com/cloudformation/home?region=ap-south-1#/stack/detail?stackId=arn%3Aaws%3Acloudformation%3Aap-south-1%3A204563052588%3Astack%2Fauto-remediate-v1%2F01f571b0-6215-11eb-a609-0aa75203767c

 

  Serverless Error ---------------------------------------

 

  An error occurred: AutoRemediateS3Dash009LambdaFunction - Uploaded file must be a non-empty zip (Service: AWSLambdaInternal; Status Code: 400; Error Code: InvalidParameterValueException; Request ID: a7fa64b1-457a-4930-af06-a41c06cae393; Proxy: null).

 

  Get Support --------------------------------------------

     Docs:          docs.serverless.com

     Bugs:          github.com/serverless/serverless/issues

     Issues:        forum.serverless.com

 

  Your Environment Information ---------------------------

     Operating System:          linux

     Node Version:              15.7.0

     Framework Version:         2.21.1

     Plugin Version:            4.4.2

     SDK Version:               2.3.2

     Components Version:        3.6.0

 

Uploaded file must be a non-empty zip

Hello,

Getting the following issue:

% serverless deploy --region us-west-2
Serverless: Running "serverless" installed locally (in service node_modules)
Serverless: Packaging service...
Serverless: Excluding development dependencies...
Serverless: [serverless-plugin-split-stacks]: Summary: 51 resources migrated in to 3 nested stacks
Serverless: [serverless-plugin-split-stacks]: Resources per stack:
Serverless: [serverless-plugin-split-stacks]: - (root): 155
Serverless: [serverless-plugin-split-stacks]: - PoliciesNestedStack: 2
Serverless: [serverless-plugin-split-stacks]: - SubscriptionsNestedStack: 1
Serverless: [serverless-plugin-split-stacks]: - VersionsNestedStack: 48
Serverless: Creating Stack...
Serverless: Checking Stack create progress...
........
Serverless: Stack create finished...
Serverless: Uploading CloudFormation file to S3...
Serverless: Uploading artifacts...
Serverless: Uploading service auto-remediate.zip file to S3 (64.85 MB)...
Serverless: Validating template...
Serverless: Updating Stack...
Serverless: Checking Stack update progress...
...........................................................................................................................................................................................................................
Serverless: Operation failed!
Serverless: View the full error output: h

Serverless Error ---------------------------------------

An error occurred: AutoRemediateConfigDash001LambdaFunction - Resource handler returned message: "Uploaded file must be a non-empty zip (Service: Lambda, Status Code: 400, Request ID: ---, Extended Request ID: null)" (RequestToken: ---, HandlerErrorCode: InvalidRequest).

Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Issues: forum.serverless.com

Your Environment Information ---------------------------
Operating System: darwin
Node Version: 16.2.0
Framework Version: 1.83.3 (local)
Plugin Version: 3.8.4
SDK Version: 2.3.2
Components Version: 2.34.9

Further to this, this is the error found in the CloudFormation console:

AutoRemediateConfigDash001LambdaFunction: Resource handler returned message: "Uploaded file must be a non-empty zip (Service: Lambda, Status Code: 400, Request ID: ---, Extended Request ID: null)" (RequestToken: --, HandlerErrorCode: InvalidRequest)

AutoRemediateS3Dash009LambdaFunction: Resource handler returned message: "Uploaded file must be a non-empty zip (Service: Lambda, Status Code: 400, Request ID: ---, Extended Request ID: null)" (RequestToken: ---, HandlerErrorCode: InvalidRequest)

Support json-asff as the input

Can we support jsnon-asff as the input format? This way the framework could be integrated to AWS security hub and can be used for both auto and manual remediation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.