Lengkap

RDS Stop Stop using AWS Lambda (Python)

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:

1. start_stop_dow

2. start_stop_ignore

3. start

4. stop

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.

Kemahiran: Aws Lambda, Python

Lihat lagi: aws lambda python, aws ses python, building website using aws amazon, python, aws boto python code, generate random string using regular expression python, using aws sdk ses, using aws opencart, using aws query api net, provision server using aws, using facebook places python, cloud php mysql using aws, using aws cpanel, folder using aws, need functions coded magento bulk uploading manufacture, python stop loss order, using flash powerpoint start stop, encoding using aws, using xcode ruby python php perl development

Tentang Majikan:
( 0 ulasan ) United States

ID Projek: #16735090

Dianugerahkan kepada:

bluediscover

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 Lagi

$400 USD dalam 10 hari
(25 Ulasan)
5.6

6 pekerja bebas membida secara purata $471 untuk pekerjaan ini

$555 USD dalam 10 hari
(34 Ulasan)
6.4
shingjin

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 Lagi

$400 USD dalam 5 hari
(16 Ulasan)
4.6
$555 USD dalam 10 hari
(4 Ulasan)
3.4
vijaymelson145

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.

$250 USD dalam 5 hari
(0 Ulasan)
0.0
Shikha510

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 Lagi

$666 USD dalam 10 hari
(0 Ulasan)
0.0