Comments (6)
@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.
@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.
@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.
Thanks for the information, I managed to make it work now.
from enhanced-document-understanding-on-aws.
@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.
@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)
- Issues deploying a custom build - cdk deploy -> Error: Failed to bundle asset DocUnderstanding/WebApp HOT 11
- Case max number of documents and processing workflow HOT 2
- Document and case deletion HOT 3
- Removal of User Authentication for custom API build - Cognito HOT 13
- Payload for upload document HOT 14
- Some documents fail entity detection due to repeating words HOT 1
- Unable to parse command line options: Unrecognized option: --no-transfer-progress HOT 3
- How to opt out The deployment to Amazon Kendra HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from enhanced-document-understanding-on-aws.