GithubHelp home page GithubHelp logo

Comments (4)

willdady avatar willdady commented on June 17, 2024

Hi @robertd. Assuming you have copied the template from the README you will need to install @aws-sdk/client-secrets-manager and any other dependencies your handler function imports.

from cdk-iam-credentials-rotator.

robertd avatar robertd commented on June 17, 2024

Howdy. I did install the dependencies... but I'm still getting that error. Do you happen to have an example repo?

{
  "name": "iam-users-factory",
  "version": "0.1.0",
  "bin": {
    "iam-keys-factory": "bin/iam-users-factory.js"
  },
  "scripts": {
    "build": "tsc",
    "watch": "tsc -w",
    "test": "jest",
    "cdk": "cdk"
  },
  "devDependencies": {
    "@types/jest": "^26.0.10",
    "@types/node": "^10.17.27",
    "aws-cdk": "2.19.0",
    "jest": "^26.4.2",
    "ts-jest": "^26.2.0",
    "ts-node": "^9.0.0",
    "typescript": "~3.9.7"
  },
  "dependencies": {
    "@aws-sdk/client-secrets-manager": "^3.58.0",
    "aws-cdk-lib": "2.19.0",
    "cdk-iam-credentials-rotator": "^1.4.0",
    "constructs": "^10.0.0",
    "source-map-support": "^0.5.16"
  }
}

from cdk-iam-credentials-rotator.

willdady avatar willdady commented on June 17, 2024

I don't have a publicly shared example but here the package.json from a repo I use to test this construct.

{
  "name": "cdk-iam-credentials-rotator-test",
  "version": "0.1.0",
  "bin": {
    "cdk-iam-credentials-rotator-test": "bin/cdk-iam-credentials-rotator-test.js"
  },
  "scripts": {
    "build": "tsc",
    "watch": "tsc -w",
    "test": "jest",
    "cdk": "cdk"
  },
  "devDependencies": {
    "@types/jest": "^26.0.10",
    "@types/node": "10.17.27",
    "aws-cdk": "2.17.0",
    "esbuild": "0",
    "jest": "^26.4.2",
    "ts-jest": "^26.2.0",
    "ts-node": "^9.0.0",
    "typescript": "~3.9.7"
  },
  "dependencies": {
    "@aws-sdk/client-secrets-manager": "^3.58.0",
    "aws-cdk-lib": "2.17.0",
    "cdk-iam-credentials-rotator": "^1.4.0",
    "constructs": "^10.0.0",
    "source-map-support": "^0.5.16"
  }
}

Closing as this sounds like an issue external to the construct.

from cdk-iam-credentials-rotator.

robertd avatar robertd commented on June 17, 2024

Hmm... I'm still stuck. IMHO having a working example would be very beneficial for the construct.

from cdk-iam-credentials-rotator.

Related Issues (2)

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.