I am currently working on a project to connect to IBM Informix from AWS Lambda Python Environment. But so far I have not been able to find any packages or lambda layers that allows me to connect to IBM Informix DB. Is there anyone who have been able to do so? Or is there any lambda layers which is something
Tag: amazon-web-services
Am I able to use AWS EventBridge (or alternative) in order to re-run a lambda after an hour if the past one fails?
I have written a lambda using Python which is dependent upon external APIs which can occasionally go down. This is triggered once a day using EventBridge to gather data from yesterday, and updates a file in S3 at the same time every day. I was wondering how I would be able to re-run the Lambda, which includes a check as
The secret value can’t be converted to key name and value pairs
I already have a secret created by cloudformation template with the following key/value format: And i’ve created a rotation lambda, but when i rotate the secret i get only plain text format without key/value pair as the following error: The secret value can’t be converted to key name and value pairs. here’s my lambda code: Answer You will need to
AWS ECS – Using Boto3 to update a task definition
Using boto3, we can create a new task definition: How do we update an existing task definition? Is it just another call with changes and the same family name? Answer update an existing task definition You can’t do this. You have to create a new revision of an existing task definition. Then you will also have to update your ECS
Using Pandas-Profiling in AWS Glue
I am trying to use pandas profiling in AWS Glue. I downloaded the wheel file and used it in the Glue Library Path. BUt whenever I am trying to run a pandas profiling, module missing error is coming up(like multimethod, visions, networkx, pillow and more). What should I do? Answer Please make sure you’ve installed all dependencies from requirements.txt: https://github.com/pandas-profiling/pandas-profiling/blob/develop/requirements.txt
List the number of running instances in an AWS region
I want to list the number of all running ec2 instances in the us-west-2 region and I was able to list the instances but actually, I want the number of instance names is not nessosry. please see that below code Output is here Output type Answer You can store those names in a list, and check the list length:
Sorting a list of ec2 instances python
I have a python script which prints out a list of ec2 instances as follows : [‘i-06db4eb158ad0bdfd,2021-05-12 12:04:19+00:00,False’, ‘i-0f67cf99fb4536c3f,2020-10-14 13:32:23+00:00,asg-elk-‘, ‘i-0539c8dfc839cbfda,2020-10-26 07:38:01+00:00,asg-standalone’, ‘i-0f285277529543462,2018-05-18 16:47:00+00:00,False’, ‘i-0d649cebdf54bd2f4,2020-03-12 10:07:07+00:00,asg-ddf’, ‘i-01734dfef0159c5c8,2020-10-20 13:05:27+00:00,asg-pro’, ‘i-0ff596f1dc01b61d8,2021-03-17 11:21:21+00:00,asg-base-test’] I want to be able to sort the list out based on CreationDateTime. I have used the python built-in function sorted() but that doesn’t seem to be giving me the
Unable to connect to AWS ElastiCache form python client
I have an AWS ElastiCache instance of 2 replicated nodes (cluster-mode disabled). I am able to connect through my java client using redisson (a service running in the same cluster). However, when I’m using the python redis client, it does not seem to connect. Or it seems to connect but doesn’t subscribe. I don’t see any errors for connection, but
Incorrect Access-Control-Allow-Origin being added automatically to POST & DELETE endpoints [closed]
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 1 year ago. Improve this question
How to upload multiple images from a folder to S3 Bucket?
I’m trying to implement code in python for uploading multiple images into an S3 bucket. With only one image I can do it normally, but when I implemented this for loop, the following error started to appear: And this is the function I’ve been able to develop so far with the help of AWS documentation: If anyone has any ideas