RDS Start Stop Requirements
AWS Lambda Function (PYTHON):
Need a Lambda function in Python to stop and start the RDS instances by looking at the tags of that RDS instance. The Lambda Function should look for the RDS Instance that are in Single AZ and look for the following tags in the RDS instance:
Accepted values for RDS instance keys are:
1. start_stop_dow: days of week during which start/stop operations can occur: values can be 5 (for Mon-Fri) or 7 (all days of the week)
2. start_stop_ignore: whether to ignore start/stop schedules set on EC2 tags; values can be: true or false
3. start: the start schedule, of format HH:MM. Please specify the time expressed in the 24-hour form; in the Ec2StartStop Lambda function, you will be able to configure the time zone to e.g. ‘America/New_York’ instead of using GMT. If you do so, then specify the start schedule value in the ‘America/New_York’ time zone as well, and not in GMT. The function will look for schedules in range between now (the time when the function runs), and now PLUS 15 minutes
4. stop: the stop schedule, of format HH:MM. Please specify the time expressed in the 24-hour form; in the Ec2StartStop Lambda function, you will be able to configure the time zone to e.g. ‘America/New_York’ instead of using GMT. If you do so, then specify the stop schedule value in the ‘America/New_York’ time zone as well, and not in GMT. The function will look for schedules in range between now (the time when the function runs) and now MINUS 15 minutes
The Lambda should run every 15 minutes “cron(0/15 * * * ? *) this should be added as the scheduled expression in the Cloudformation template.
The Lambda Function should run in one account and assume the role in all the other accounts
CloudFormation Template Part:
Need 3 cloudformation templates,
One to deploy the Lambda Function
The main account role (This is role assumed by the lambda function in the account where the Lambda is running)
Other account role (This role is for every other accounts that lambda performs its actions)
I already have a solution EC2 Start Stop, you can reuse all the code used for ec2, I have all the file such as Lambda Function and all the required Cloudformation templates, I’m attaching those below you can reuse them if you need.
I’m assuming that by reusing the attached code it’s going to be lot easier to develop the solution, please let me know if you have any doubts in the requirements.
Hi, I have developed several Lambda functions in python. For getting status of AWS resources with boto3 it is no problem. The cron jobs will be executed using cloudwatch service. I appreciate the detailed job Daha Fazla
Bu iş için 6 freelancer ortalamada $471 teklif veriyor
Hello. I would like to thank you for considering me to participate in this interview about your project. After reviewing your post, I am very interested in that due to my experience. I'd like to be considered for yo Daha Fazla
I am working on aws from previous four years. And I can do almost anything with it. But I worked in java. I don't have much experience of java, let me know if I can help you. We can discuss more in chats.
Hello, Hope you are doing well. I have analyzed your job requirements for a Python developer. I have rich skills with Python and worked on several python packages like numpy, scipy, pytables etc. I am an in Daha Fazla