How to Automatically Start and Stop a Tencent Cloud Virtual Machine (CVM)?
Introduction If you have an operation that you know that will only be operating for a set period of time within a week. If you could schedule the Cloud Virtual Machine (CVM) to start and stop automatically, this could result in tremendous cost savings for you. I will be writing this guide using Tencent Cloud's Python API. The other languages should more or less be the same. What will you need? 1. Your target CVM ID. You can get it by clicking on the small copy icon beside the ID column of your CVM listings as shown in the picture below. 2. Your Tencent SecretId and SecretKey. You can create it through your manage API key page or the steps shown in the picture below. Step by step Creating the start instance serverless cloud function Creating the serverless cloud function 1. Go to the Function Service of your Serverless Cloud Function. 2. Click create 3. Choose your template. I generally create mine from scratch. 4. Fill in the basic configurations. Since we want to start a