I have been following this video on Youtube: https://www.youtube.com/watch?v=inQyZ7zFMHM1 My project so far is working fine with static files and all the files load and work properly. So, now I have to deploy the website on Heroku and for that, I uploaded the database on Amazon AWS using this video. After bucket creation, I did the configurations as mentioned in
Tag: amazon-web-services
Event Pattern rule “anything-but” using CDK
I am trying to add the following Event Pattern to specific rule on Event Bridge I tryed to use this python code but the “source” does not accept a json, only string array: So I decided to try using dumps: but does not work as expected, with result: Is there any way to add “anything-but” rule in source, or this
Not all folders returned by boto3 Bucket.objects.all()
My S3 bucket contains a bunch of files in a multilevel folder structure. I’m trying to identify the top level folders in the hierarchy, but objects.all() returns some but not all folders as distinct ObjectSummary objects. Why? Sample file structure: Desired output: [a,b] What I’m doing: This returns the following ObjectSummary objects: Notice that a/ is listed as a separate
Is there any way to get the output in aws sns to print separate lines for every item in the list
Ok, so I have this lambda function that appends return_values[whatever] list and that is sent to aws sns with the formatting below, the problem is it separates the list item with commas and not with a desired new line. Is there a method to get this formatting correct? I’ve tried the print(*results,sep=’n’) but that just comes back as None as
How do we minimize lag in aws-secretsmanager-caching-python when secrets get rotated?
We are using AWS Secrets Manager to store public/private keys to encrypt decrypt messages between services and want to rotate secrets. aws-secretsmanager-caching-python looks perfect for caching our secrets, but it has a refresh interval with a default of one hour. What happens for the 1-60 minutes that an old secret is cached and will no longer decrypt messages? We can
How to specify timeout on aws opensearch library for python
I am using https://opensearch.org/docs/latest/clients/python/ to interact with an opensearch instance but I need somehow to to extend the lifetime of the request easily. I searched the docs and I couldn’t find a timeout parameter. Is there a way to specify a timeout? Answer You can pass timeout=60 (or whatever) to the OpenSearch object when you create it. This gets passed
How to mock out AWS resources when testing flask app
I have a Flask app that uses AWS services such as dynamodb. I want to mock these out during unit tests but I’m having trouble doing so. Here is a minimal example that doesn’t work for me: I’m getting an error that the resource does not exist. This means that an AWS call is in fact being made. Why isn’t
AWS ElasticBeanstalk LoadBalancer Config Not Linking my aplication to my domain
I created an aplication but Its is not linked to my domain exp: “site.com”, “www.site.com”, when I access it I get: I need to make my ElasticBeanstalk application connect to my domain (jamelaumn.com) im the owner here’s my application loadbalancer prints: currently I have no rules on EB LB My EC2 LoadBalancer:: Answer Based on the comments and your updates.
AWS Aurora: bulk upsert of records using pre-formed SQL Statements
Is there a way of doing a batch insert/update of records into AWS Aurora using “pre-formed” Postgresql statements, using Python? My scenario: I have an AWS lambda that receives data changes (insert/modify/remove) from DynamoDB via Kinesis, which then needs to apply them to an instance of Postgres in AWS Aurora. All I’ve managed to find doing an Internet search is
Attempting to delete files in s3 folder but the command is removing the entire directory itself
I have an s3 bucket which has 4 folders now of which is input/. After the my airflow DAG Runs at the end of the py code are few lines which attempt to delete all files in the input/. Now, this sometimes deletes all files and sometimes deletes the directory itself. I am not sure why it is deleting even