How can I connect my database of Wordpress with lambda? - amazon-web-services

I am not able to solve a problem:
I want to run a python script which is scraping information from the web according to an input.
This input will come from Wordpress (Either from the frontend or database of Wordpress)
After getting input from, I figured out that AWS Lambda can do the scraping automatically.
Now the problem is, how can I connect my database of Wordpress with Lambda. API Getaway would get information from that Wordpress frontend, save it in DynamoDB and Lambda could then run the Python code. BUT, the input is user specific. So the user should be able to change that input when he wants it.

Related

Django admin command equivalent for gin golang

I want to write a script a to migrate data from one table to another using gin golang. The dataset is quite big so I can't create an API endpoint and do it as it will get timed out. I am looking an equivalent of django admin commands for golang that can help me to connect to the database easily and perform these task.

How to connect my amazon seller with django website

hey is it easy to connect amazon seller with my django, i try to fix every things inside my aws amazon like documentations and i register with Developer Central, but really i'm lost because and want some help like a easy step to follow for fixing it and inside django what i need to do it's my first time to connect api with django.
Thank you

Can I use AWS Lambda for my requirements?

I recently visited "AWS Free Tier". Under that in "serverless" option is "AWS Lambda". I am trying to develop an application. I want to know what will be the best resource to use.
USAGE: I need to connect to server through mobile app using HTTP POST. 1st it will register the bus number. Then it will add the corresponding bus stops and the fare between each bus stop. The app will next time send bus number and get all bus stops. Then it will select 2 bus stops and send to server. It will pay the required fare. Server will generate the bus ticket and store in database. It will send 1 copy to the mobile.
I need an web server for development and testing purpose. I had started with JSP. But due to some reasons I was not able to access the JSP page through android app. However I was able to access the JSP through browser. In android app, I can access other websites. I think the url was the problem. So, I decided to use AWS server. Please let me know where I can use JSP. If you have any other server and database, please let me know. Currently I will be using it for development and testing purpose. So, 1-5 users may use it. But later I will run it as a business. Then more users will be using it. (So, please let me know about the payments for business use also, if you have idea about that) I will need database also.
You could write a service which recieves an HTTP request and accesses a database as part of the logic it performs to generate a response and host that service with AWS Lambda.
You would need a database in addition to AWS Lambda (there are many database services available from AWS and other providers).
You can't just drop your JSP files onto Lambda. It does not support JSP (although it does support programs written in Java).

OAuth 2 - Authenticate with JSON file without directory

So im trying to set up un lambda from amazon web services a javascript that consults data from google analytics and drops it on a S3 Bucket, so far the script works fine since im authenticating with a client_secrets.json from my computer but now that im trying to do it from lambda i cant figure out how can i copy&paste the JSON content into the script and use it in order to authenticate? The main issue is that is should be able to authenticate itself without human intervention.
In the code i show above if you remove the from_json() and just leave the json_data it would work just fine, hope it helps.

Update Django server after creating thumbnail with AWS Lambda

I have a Django web project that is using Amazon S3 for media files. The file upload is happening async direct from the browser.
I need to create some thumbnail images for each file that is uploaded. I found a tutorial for how to do this using AWS Lambda (which I've never used before) but seems like the future of web.
The only issue I am trying to figure out in my head is: how I will update my database back on the django web server with the information for the newly created thumbnail images? I intend to create a new database model (thumbnails) that will store the URL and tie the thumbmail to the main image information.
The only thing I have come up with is to expose a url on my web app to accept HTTP requests (assuming lambda can send HTTP requests). So when the lambda function completes a thumbnail image, it will send the request to my web app with the information for the newly created thumbnail image using POST or PUT.
The thing I don't like about this approach is that it won't work when developing locally. Does anyone have any experience using Lambda to create thumbnails and then communicating back with your web server which differs from my proposed plan?