• Skip to main content
  • Skip to primary sidebar
  • Skip to footer

securitywing

Menu
  • About
  • Must Read
      • IIS Performance Boost
      • RFID Security
      • Web App Security Testing
      • How to Secure Home Network
      • Prevent Cross-Site Scripting Attacks
      • Renew Self-Signed Certificates
      • Penetration Testing Tools
      • VPN Concentrator
      • Forensic Investigation Tools
      • Digital Certificates
      • Cloud Security Issues
      • Advanced Evasion Prevention
      • Firewall Types
      • Tips to Prevent Data Exfiltration
      • Classified Info Handling
      • MySQL Security
      • Definition of 7 Types of Malware
      • VOIP Security
      • Why Antivirus Software Fails
      • 15 Network Security Vulnerabilities
      • Web App Security
      • IT Security Standards
      • Types of Virtualization
      • Android Security
      • Digital Signature
      • Advanced Malware Protection
    • Close
  • Consultancy
  • Contact

How to Install Boto3 for AWS SDK using Anaconda in Windows

by wing

Boto3 allows the python developers to create and manage AWS services such as EC2. You may need to install boto3 in your windows machine for AWS cloud based services development and automation. The easiest way to configure boto on your machine is to install anacond at first. You can download anaconda at https://www.anaconda.com/distribution/.

Once you complete downloading and installation anacond, you need to run the following commands in the anaconda command prompt.

#conda install pip

#pip install pipenv

Next, you need to setup AWS CLI. You can download the msi file from https://docs.aws.amazon.com/cli/latest/userguide/install-windows.html#install-msi-on-windows.

Once you complete installing AWS CLI, you need to configure aws credentials. You can generate the secret keys from the AWS console and take a note of the aws region.  Next, type the command below on the Anaconda prompt. Remember that you need to use anaconda prompt, not windows command prompt.

# aws configure  – -profile mypython

Note: here ‘mypython’ is the aws profile name I will use later to export in boto.

Type the secret keys and the region.

 

Now that you have completed setting the environment and the aws cli, you can start writing python codes using boto3. To get started, you can configure python virtual environment using python 3.

# pipenv –three

Next install boto3,

# pipenv install boto3

#pipenv install -d ipython

To run ipyton inside pipenv run:

# pipenv run ipython

#import boto3

# session = boto3.Session(profile_name=’mypyhthon’)

To print all ec2 instances in your account, type:

 

#ec2=session.resource(‘ec2’)

# for i in ec2.instances.all():

            print(i)

boto3 in windows 10

If you want to run a python script inside the pip environemnt, you can run:

# pipenv run python mycode.py

To run python code interactively inside a shell:

# pipen shell

#pyton mycode.py

Related Posts:

  • Pasted into
    3 Easy Steps to Create EKS(kubernetes) Cluster in AWS
  • minikube environmental variable path in windows 10
    3 Steps to Install Minikube on Windows 10
  • How to Install AWS CLI and Terraform in Jenkins Docker Container
    How to Install AWS CLI and Terraform in Jenkins…
  • exchange server 2010 installation
    12 Steps to Install Exchange Server 2010
  • 3 Steps to Install Kubectl, Helm 3 and S3 Plugin in Ubuntu to Store Charts in S3 Bucket
    3 Steps to Install Kubectl, Helm 3 and S3 Plugin in…
  • create a helm chart manually for minikube
    How to Create a Helm Chart in Windows for Minikube

Filed Under: AWS Tagged With: AWS, boto3

Primary Sidebar

Categories

  • AWS
  • containers
  • Internet Security and Safety
  • IS Audit
  • IT Security Exams
  • Network Security Tips
  • Off Track
  • Telecom
  • Tutorial

Related Posts

  • Pasted into
    3 Easy Steps to Create EKS(kubernetes) Cluster in AWS
    One of the most easy to use tool for the…
  • minikube environmental variable path in windows 10
    3 Steps to Install Minikube on Windows 10
    Minikube helps to create the Kubernetes environment on a personal…
  • How to Install AWS CLI and Terraform in Jenkins Docker Container
    How to Install AWS CLI and Terraform in Jenkins…
    To install a AWS CLI in a Jenkins running on…
  • exchange server 2010 installation
    12 Steps to Install Exchange Server 2010
    Among all Microsoft’s solution Exchange is considered a bit tough…
  • 3 Steps to Install Kubectl, Helm 3 and S3 Plugin in Ubuntu to Store Charts in S3 Bucket
    3 Steps to Install Kubectl, Helm 3 and S3 Plugin in…
    This post aims to show you how to install Kubectl,…
  • create a helm chart manually for minikube
    How to Create a Helm Chart in Windows for Minikube
    Helm package manager is used to deploy applications in the…
  • ec2 instance start with lambda function
    How to Schedule AWS EC2 Start and stop time using…
    To save your AWS cloud  operational cost, you can schedule…
  • direct access windows server 2012
    Steps to Configure Direct Access in Windows Server 2012
    Direct access is the commercial name of Windows 2012 server’s…
  • certificate signing request godaddy
    How to install a new Godaddy SSL Wildcard Certificate
    This post has been intended for the first time users…
  • windows 2008 r2 security checking tools
    Windows 2008 Server Security Hardening with Automated Tools
    One of the quickest and easiest ways to hardening your…
  • routing and remote access
    How to Configure VPN,RAS and IPSec Policy in Windows Server
    VPN is a trusted and secure network, which use tunneling…
  • cname record in namecheap for cloudfront
    How to Setup AWS CloudFront for Externally…
    The domain that you set up in the AWS CloudFront…

CISSP Sample Test

Take a CISSP Sample Test

CISA IT governance Sample test



Twitter Follow @securitywing

Footer

Copyrights

Protected by Copyscape Duplicate Content Detection Software

Securitywing.com reserves the copyrights of all of its published articles.No contents of this site is permitted to be published to anywhere else in the Internet.If any contents are found in any other websites, securitywing reserves the rights to file a DMCA complaint. But you have the right to use the link of any relevant article of this site to point from your website if you consider that it might improve the quality of your article.

Tags

antivirus audit AWS backup browser check cisco cloud computer cyber data database encryption firewall home hsrp ids informaiton internet intrusion it kubernetes linux load balancing malware network protection putty risk router security security tips server ssh SSL switch tools virus vpn vulnerability web webserver website windows wordpress

Copyright © 2010-2023 ·All Rights Reserved · SecurityWing.com