Git Product home page Git Product logo

Comments (6)

knihit avatar knihit commented on June 4, 2024

@JuarezCulau , sorry to hear you are facing issues when trying to deploy. Have you tried the first option: using cdk deploy to see if it works?.

For option 2, Creating a custom build, are you deploying in the same account/ region where the buckets have been created. If it is cross-account, I think making the buckets public read might solve the problem.

from enhanced-document-understanding-on-aws.

JuarezCulau avatar JuarezCulau commented on June 4, 2024

@knihit Thank you for your suggestions. Using cdk deploy works great if it's not a custom build. If I use cdk deploy with a custom build, I encounter a different error during deployment. Instead of not finding a key file in the bucket, I receive an access denied error to the bucket. I have the necessary permissions to access and retrieve data from the buckets. Additionally, I noticed a warning during deployment that I believe might be related to this issue. It essentially states that the current credentials could not be used to assume a file-publishing-role but proceeds anyway.

Regarding the account/region, it’s the same. I may have misunderstood something in the build process. Are the steps I mentioned in the "To Reproduce" topic correct?

from enhanced-document-understanding-on-aws.

knihit avatar knihit commented on June 4, 2024

@JuarezCulau , I am not sure why you say its not a custom build. You can still customize the code and perform cdk deploy. Do you have a requirement to distribute it to another team. If you are deploying in your AWS account, IMO, the cdk deploy option should work for you. Unless you require to distribute artifacts to others, you dont have to use option 2.

For the error you mentioned access denied error to the bucket, have you run cdk bootstrap. When it states current credentials could not be used to assume a file-publishing-role can you provide details on what role you are currently using. Are you using a higher privilege role to deploy. If its your own account, I would suggest assuming an Adminstrator role to deploy the template. You can also specify cdk deploy --role-arn arn:aws:iam::01234567890:role/<role-with-adminstrator-access> to supply CloudFormation with an elevated role.

Me and my team uses cdk deploy during our development and we make modifications and keep deploying updates. I have not seen this error before with cdk deploy. Hence my hunch is that is probably due to the IAM policies that are associated with the user/ role you are using. Those don't have sufficient permissions.

from enhanced-document-understanding-on-aws.

JuarezCulau avatar JuarezCulau commented on June 4, 2024

Thanks for the information, I managed to make it work now.

from enhanced-document-understanding-on-aws.

knihit avatar knihit commented on June 4, 2024

@JuarezCulau thank you for letting us know. Just so that our team builds on troubleshooting guide, if you are comfortable sharing the root cause and final resolution which made it work.

from enhanced-document-understanding-on-aws.

JuarezCulau avatar JuarezCulau commented on June 4, 2024

@knihit It is actually very simple, I just didn’t know I had to bootstrap before deploying in CDK. Thanks for the info. I still can’t use the second option to use CloudFormation templates, but there is no need for me anymore since deploying with CDK is working.

from enhanced-document-understanding-on-aws.

Related Issues (9)

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.