DevOps-Automation with Python 1

Module Overview

ZONGRU Li
Jun 6, 2023

前面課程學到基本的Python的程式寫法

接著就是要透過Python來執行DevOps相關的工作自動化

以下就先列出後面課程的主題對應的PythonModule會用到哪些

Module Overview

1.Cloud Automation — Automating tasks on AWS(使用Boto Library)

  • Introduction to Boto(AWS SDK for Python)
  • Install Boto and connect to AWS
  • Create VPC and Subnets
  • Difference of Terraform and Python(When to use which?)
  • 第一個將會練習EC2 instance相關的自動化任務,並確認EC2狀態,設定Server,加tags,備份或清除EC2的Volume甚至從備份中還原
  • Write Scheduled tasks
  • Get EKS Cluster Information
  • (以上都會透過Boto Library實現)
  • 也許未來會碰到的Cloud可能是GCP或Azure,但是課程上各種概念與文件查找都會是類似的過程

2.Website Monitoring — linod Server上運行Nginx Container

  • Monitor Application(可能是簡單http請求並得到回應)
  • Email Notification
  • Recover:Restart application

以上內容撰寫的腳本會更多,但是比起手動來說一定更好

參考課程reference

--

--

ZONGRU Li
ZONGRU Li

Written by ZONGRU Li

2022/11/17 開源部分個人筆記給LINE "Java程式語言討論區"社群,希望能對社群的技術學習做一點點貢獻.(掩面....記得退訂閱!

No responses yet