diff --git a/Create EC2 Instance using boto3 b/Create EC2 Instance using boto3 new file mode 100644 index 00000000..a0ee857b --- /dev/null +++ b/Create EC2 Instance using boto3 @@ -0,0 +1,14 @@ + +import boto3 + +client =boto3.client('ec2') +response =client.run_instances( ImageId = 'ami-0c7217cdde317cfec', + InstanceType = 't2.micro', + MinCount = 1, + MaxCount = 1, + KeyName = 'mykeypair1111', + SecurityGroupIds =['sg-0cbc74f2553fec703'], + SubnetId ='subnet-0662a9feadf274655') + +for instance in response['Instances']: + print(instance['InstanceId']) diff --git a/Day-02/test.py b/Day-02/test.py new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/Day-02/test.py @@ -0,0 +1 @@ + diff --git a/README.md b/README.md index f32309c8..531282ce 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ - AWS automation with Boto3. - Managing EC2 instances, S3 buckets, and more. - Practice exercises and examples: - - Example: Creating a aws script for deploying applications to remote servers. + - Example: Creating a python script using boto3 to implement serverless functions. ## Day 14: Github-JIRA intergration Project - (Project-4) - Introduction to RESTful APIs.