Giter VIP home page Giter VIP logo

Comments (5)

matteofigus avatar matteofigus commented on August 19, 2024

Thanks for your submission @aa2858 - we are looking into that.

from amazon-rekognition-engagement-meter.

matteofigus avatar matteofigus commented on August 19, 2024

@aa2858 we just made a change to the release pipeline that should address your issue.

Can you please try to redeploy the stack by using one of the buttons on the README?

Thanks.

from amazon-rekognition-engagement-meter.

aa2858 avatar aa2858 commented on August 19, 2024

Thank you. The issue has been resolved and I have been able to progress forward but not completely done.

I cannot directly use the readme button because I need to customize the template to work in our environment. I have limited admin rights and I have to pre-create one of the roles.

The current issue is that cfn is complaining about lambda codeuri which I have looked up and the resolution I have is to package the code with sam which generate the code location on s3 and update the template.

Just wanted to check if this is correct. The change cycle takes time because of cloudfront.

Thanks,
Adams

from amazon-rekognition-engagement-meter.

matteofigus avatar matteofigus commented on August 19, 2024

Thanks @aa2858,

In order to customise the back-end code, here is my recommendation.

If you need to change the lambda:

  1. You need a S3 bucket to do the packaging. That wasn't needed before, but we changed that to improve the reliability. The S3 bucket needs to be in the same region you'll deploy the stack.
  2. Run npm install to start
  3. Make changes to the /src/cfn/template.yaml file and the lambdas
  4. Run npm run build (this will create a file in templates/template.yaml that refers to the local lambdas)
  5. Run aws cloudformation package --template-file templates/template.yaml --s3-bucket <YOUR S3 BUCKET> --output-template-file templates/packaged.yaml (this can be done with the aws cli, the sam cli is actually not needed)
  6. Now you can deploy your packaged template aws cloudformation deploy --template-file templates/packaged.yaml --stack-name <YOUR STACK NAME>

I hope it makes sense. If you look into the packaged.yaml file after step 5, you'll see that the lambda paths switch from local paths to s3 paths.

If you don't need to change the lambda, it's a bit easier:

  1. Get the template url from one of the links in the README. For instance, the us-east-1 is https://solution-builders-us-east-1.s3.us-east-1.amazonaws.com/amazon-rekognition-engagement-meter/latest/main.template
  2. Edit that file as you wish
  3. Deploy with aws cloudformation deploy --template-file main.template --stack-name <YOUR STACK NAME>

I hope it makes sense, let me know if this solves the issue.

from amazon-rekognition-engagement-meter.

matteofigus avatar matteofigus commented on August 19, 2024

(I am closing now given you mentioned the issue may be different, but feel free to re-open if that's not the case).

from amazon-rekognition-engagement-meter.

Related Issues (8)

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.