Тёмный

PYTHON & AWS - Start Stop EC2 and RDS Instance by AWS Lambda 

Ava Tech
Подписаться 225
Просмотров 9 тыс.
50% 1

Source code:
1drv.ms/u/s!Am...
8K | Start stop EC2 and RDS instance by AWS Lambda (Node JS)
• NodeJS - Start stop EC...
AWS Instance Scheduler implementation guide:
docs.aws.amazo...

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 30   
@jacobmitchell7839
@jacobmitchell7839 4 года назад
This was very well done. Quick, to the point, and it worked! Thank you.
@ramin3809
@ramin3809 4 года назад
Awesome! You should make more videos. Thanks J
@kennynguyen6789
@kennynguyen6789 4 года назад
I added engine for mssql and it works. Thanks
@DGCruz
@DGCruz 4 года назад
Thanks !
@marian6040
@marian6040 3 года назад
Great video. Keep up the good work
@EduardoPinaCampinas
@EduardoPinaCampinas 4 года назад
video with excellent content and well explained, Tks!!!!!!!!
@rajeshSimpleton
@rajeshSimpleton 5 лет назад
Just Perfect. Thanks a mill
@poojapatil2798
@poojapatil2798 6 месяцев назад
Hi J's is there need to change in lambda function. i am confused where to changes in function. Can you please help me for this
@bernadinogaviola5142
@bernadinogaviola5142 4 года назад
Hi J's Thank you for the great tutorial quick question on how to add a SQL Server Standard Edition in the scripts?
@jvmusicph
@jvmusicph Год назад
Can I turn off/on multiple rds/ec2 in one schedule with interval???
@hemantsharma5681
@hemantsharma5681 Год назад
It's not working for MySQL. Can you help to fix this for MySQL rds.???
@vitorhugopanizzadossantos7635
@vitorhugopanizzadossantos7635 4 года назад
How about the SQLSERVER, for it work you need include the engine name into a python code, for example, print the variable 'instance_rds' to describe what the engine it is using, in my case, i m using the mssql express edition, the engine name is 'sqlserver-ex', then my code was like this: try: if instance_rds['Engine'] in ['mysql', 'mariadb', 'postgres', 'sqlserver-ex'] or 'oracle' in instance_rds['Engine']: then it is working fine. :).
@poojabhat6090
@poojabhat6090 2 года назад
Hi J's start ec2 is not working for me
@kennynguyen6789
@kennynguyen6789 4 года назад
Thank you. It works with mysql but mssql. How to fix it?
@anoop4328
@anoop4328 4 года назад
I have RDS cluster and its not working - getting this message " START RequestId: 7tytytyad88-44c4-9acf-ca424083b466 Version: $LATEST action was neither start nor stop. start_stop_rds_instances() aborted. END RequestId: 7ar104ttrt-ad88-44c4-9acf-ca424083b466 REPORT RequestId: 7a8c510rtrtrt-44c4-9acf-ca424083b466 Duration: 1.61 ms Billed Duration: 100 ms Memory Size: 128 MB Max Memory Used: 78 MB Init Duration: 311.36 ms
@shahzackry
@shahzackry 4 года назад
if i use the code you gave the enhance version, do i need to edit like the step in steps you showns on minutes 4:20 until 5:20 ? sorry, can i just copy and paste?
@cggirl7481
@cggirl7481 3 года назад
Hi J, thank you so much for your effort. I tried on it. It's working fine. But could u please tell me how can we work on the database which have read replica?
@avatech0715
@avatech0715 3 года назад
I never tried. Do you use Aurora?
@cggirl7481
@cggirl7481 3 года назад
@@avatech0715 no postgres
@cggirl7481
@cggirl7481 3 года назад
I am getting this exception. Exception type: InvalidDBInstanceStateFault; Exception message: An error occurred (InvalidDBInstanceState) when calling the StopDBInstance operation: Cannot stop or start a Read-Replica instance;
@avatech0715
@avatech0715 3 года назад
@@cggirl7481 I can take a look at my code tomorrow afternoon, and will get back to you.
@cggirl7481
@cggirl7481 3 года назад
@@avatech0715 Thank you J
@PogoThesus
@PogoThesus 5 лет назад
I got an error Exception type: ClientError; Exception message: An error occurred (AccessDenied) when calling the DescribeDBInstances operation: User: arn:aws:sts::XXXXXXXXXXXX:assumed-role/StartStopEC2Instances/StartStopEC2-RDS is not authorized to perform: rds:DescribeDBInstances; My role has policy { "Version": "2012-10-17", "Statement": [ { "Sid": "VisualEditor0", "Effect": "Allow", "Action": [ "ec2:DescribeInstances", "ec2:StartInstances", "rds:ListTagsForResource", "logs:*", "rds:DescribeDBInstances", "ec2:StopInstances", "rds:StopDBInstance", "rds:StartDBInstance" ], "Resource": "*" } ] }
@avatech0715
@avatech0715 5 лет назад
Make sure Lambda uses right IAM role, and also make sure IAM role/IAM policy has right permission.
@PogoThesus
@PogoThesus 5 лет назад
@@avatech0715 I just realised I have attached wrong role to Lambda function. My bad. Thanks
@krishnagudavalli
@krishnagudavalli 4 года назад
make more video's J
Далее
PYTHON & AWS - Clean Up EC2 Snapshots by AWS Lambda
7:32
POLI и Маша - Сигма бой
00:20
Просмотров 223 тыс.
@ItsMamix учу делать сигму😎
00:12
Просмотров 554 тыс.
Use AWS Lambda to start and stop AWS EC2 instances
13:51
PYTHON & AWS - Create EC2 Snapshots by AWS Lambda
9:59
Start Stop EC2 with Lambda Python
14:27
Просмотров 9 тыс.
Developing AWS Lambda Functions Locally in VS Code
20:22
POLI и Маша - Сигма бой
00:20
Просмотров 223 тыс.