Giter Site home page Giter Site logo

xavier-thomas / aws-cfn-stack-cleanup Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 354 KB

An AWS Lambda that can be invoked as a custom resource from an AWS CloudFormation stack to clean up any left over stack resources such as S3 buckets and Log Groups

License: BSD 3-Clause "New" or "Revised" License

JavaScript 100.00%
aws aws-lambda cleanup cloudformation custom-resources s3 serverless-application-repo

aws-cfn-stack-cleanup's People

Contributors

xavier-thomas avatar

Watchers

 avatar

aws-cfn-stack-cleanup's Issues

Error using scoped aws dependency.

SUMMARY
ISSUE TYPE

Following error while using the lambda with the scoped aws s3 dependency.

2020-11-17T19:31:59.463+00:00Copy2020-11-17T19:31:59.463Z	8628727c-35b3-4963-a660-aa82557d5217	ERROR	Error during Cleanup - Error: Error Deleting Bucket: [smec244-smec-s3-contract-lifecycle-bucket] - Error Listing Objects in Bucket: [smec244-smec-s3-contract-lifecycle-bucket] - s3.listObjectsV2 is not a function | 2020-11-17T19:31:59.463Z 8628727c-35b3-4963-a660-aa82557d5217 ERROR Error during Cleanup - Error: Error Deleting Bucket: [smec244-smec-s3-contract-lifecycle-bucket] - Error Listing Objects in Bucket: [smec244-smec-s3-contract-lifecycle-bucket] - s3.listObjectsV2 is not a function

-- | --

VERSIONS
All versions using scoped dependencies
CONFIGURATION

STEPS TO REPRODUCE
EXPECTED RESULTS
ACTUAL RESULTS

Error calling emptyBucket function.

SUMMARY

When invoking the lambda against a bucket, it throws the following error
Error during Cleanup - TypeError: Cannot read property 'emptyBucket' of undefined

ISSUE TYPE
  • Bug Report
VERSIONS
v1.1.1 and v1.1.0
STEPS TO REPRODUCE
  • Deploy the lambda from SAR
  • Invoke the lambda from cloud formation
  • Bucket to delete needs to have content, so that the empty bucket function is called.

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.