Git Product home page Git Product logo

aws-tutorial-code's Introduction

AWS Tutorial

The code in the repository is reference to the AWS tutorial on the YouTube channel.

The text version of the video tutorial can be found here

Refer AWS-CloudFormation-Template repository for CloudFormation templates here

Feel free to request the tutorial via comments on the channel.

If you appreciate my time that goes into to creating videos and maintaining the repository, please consider donating. Thank you.

Other References

aws-tutorial-code's People

Contributors

dependabot[bot] avatar srcecde avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aws-tutorial-code's Issues

KeyError at line 18, Changed 'Content-Type' to 'content-type'

CloudWatchLog is showing KeyError, as follows:

[ERROR] KeyError: 'Content-Type'Traceback (most recent call last):  File "/var/task/lambda_function.py", line 13, in lambda_handler    content_type = event["headers"]['Content-Type']

After print(event) , I noticed that it should be 'content-type' not 'Content-Type'.

Great tutorial on API Gateway on Youtube. Love it.

lambda_textract_detect_text.py has recursion with S3

This file has the below code which attempts to put the text into a .txt file and sends to the same bucketName which will cause another object to be placed into the same bucket which in turn invokes Lambda again.
This bucket name should be changed to a separate bucket to avoid recursion if you want to view the text in .txt file in S3.

           s3.put_object(
                Bucket=bucketname,
                Key=f"output/{filename.split('/')[-1]}_{uuid.uuid4().hex}.txt",
                Body=str("\n".join(raw_text)),
            )

Issue on sending payload via postman

Hi,
please let me know how to resolve this issue.I followed your youtube tutorial "How to upload file with metadata - Amazon API Gateway p13" but while running API through postman it is getting error --->{
"message": "Could not parse request body into json: Could not parse payload into json: Unrecognized token 'LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLTg5NTE2NzMyNDY5NzM4ODUwNDgxNzA1NA0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJmaWxlIjsgZmlsZW5hbWU9IldvcmtzcGFjZSAtIEF6dXJlIE1GQSBTZXR1cC5wZGYiDQpDb250ZW50LVR5cGU6IGFwcGxpY2F0aW9uL3BkZg0KDQolUERGLTEuNAol4uPP0woz...': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false')\n at [Source: (byte[])"LS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLTg5NTE2NzMyNDY5NzM4ODUwNDgxNzA1NA0KQ29udGVudC1EaXNwb3NpdGlvbjogZm9ybS1kYXRhOyBuYW1lPSJmaWxlIjsgZmlsZW5hbWU9IldvcmtzcGFjZSAtIEF6dXJlIE1GQSBTZXR1cC5wZGYiDQpDb250ZW50LVR5cGU6IGFwcGxpY2F0aW9uL3BkZg0KDQolUERGLTEuNAol4uPP0wozIDAgb2JqCjw8L0NvbG9yU3BhY2UvRGV2aWNlUkdCL1N1YnR5cGUvSW1hZ2UvSGVpZ2h0IDcyMC9GaWx0ZXIvRmxhdGVEZWNvZGUvVHlwZS9YT2JqZWN0L1dpZHRoIDU0MC9MZW5ndGggODA0NzAvQml0c1BlckNvbXBvbmVudCA4Pj5zdHJlYW0KeJzsXQd4FdXW9f0KpAPie88GBFJIpYUOISG990YIIYUkgg2xgZWiIqCCCFKk"[truncated 475584 bytes]; line: 1, column: 257]"
}
image

The pdf uploaded to the S3 bucket is blank

The pdf that is uploaded to the S3 bucket is blank i.e. the pdf is formed of the same name as given in metadata and also the no of pages is also preserved but every page is blank without any content.

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.