Creating EC2 from the CLI using Python

0 votes
Is there any way of automating the creation of EC2 via commands instead of using the Web Console. We want to run an instance of EC2 between 10AM and 6PM during the office hours and I would like to automate the same.
Aug 6 in AWS by Pruthvi
27 views

1 answer to this question.

0 votes

All the AWS Resources created using the Web Console can also be created programmatically using the AWS CLI. Here are the sequence of steps

  • Install the AWS CLI for Windows or Linux
  • Execute ‘aws configure’ to provide the security credentials and the AWS Region
  • Use the examples provided in the AWS CLI Reference Guide to start and EC2.
answered Aug 6 by Harish

Related Questions In AWS

0 votes
1 answer

How to Pass the VPC ID while creating the Ec2 instance in AWS using Python Boto3

import boto3 ec2 = boto3.resource('ec2') instance = ec2.create_instances( ...READ MORE

answered Jan 29 in AWS by Priyaj
• 56,940 points
391 views
0 votes
1 answer
0 votes
1 answer

Creating a linux virtual machine from disk in azure using python

You specifically ask... Can anyone explain the answer ...READ MORE

answered Aug 30, 2018 in AWS by Priyaj
• 56,940 points
151 views
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

How to create an EC2 instance using Python?

Hey JunDevOps, Have a look these scripts: 1. ...READ MORE

answered Jun 24 in AWS by Aysha

edited Jun 25 728 views