SlideShare une entreprise Scribd logo
1  sur  15
Télécharger pour lire hors ligne
Introduction to
AMAZON WEB
SERVICES
and
BOTO




 @chteijon
 @MindtheByte
EC2: Elastic Compute Cloud




  @chteijon
  @MindtheByte
                             2
EC2: Elastic Compute Cloud

             Boto code:
 KEY_ID='AGIAJPPYZBKTWGGX8AHS'
 KEY_SECRET='RwXTKmn7Ujfqmdsakcs/MRdf89sdSDffxU8sjRuD'
 REGION="us-west-1"

 ec2 = boto.connect_ec2( KEY_ID, KEY_SECRET, region=REGION )

 reservation = ec2.run_instances( image_id=AMI_ID,
                                  key_name=KEY_HANDLE,
                                  instance_type=INSTANCE_TYPE,
                                  security_groups = [ SGS ] )




   @chteijon
   @MindtheByte
                                                                 3
EC2: AMI (Amazon Machine Image)




  @chteijon
  @MindtheByte
                                  4
EC2: Spot instance




     On demand
          price:            t!
                      0% oun
                     9 c
                      dis

  @chteijon
  @MindtheByte
                                 5
EC2: Spot instance

            Boto code:
ec2 = boto.connect_ec2( KEY_ID, KEY_SECRET, region=REGION )

ec2_conn.request_spot_instances(
                 price=0.1,
                 image_id=AMI,
                 count=1,
                 key_name=KEY_HANDLE,
                 security_group_ids=[ SGS ] ,
                 instance_type= "m1.xlarge",
                 user_data=userdata      )

       On demand
            price:                                         t!
                                                     0% oun
                                                    9 c
                                                     dis

   @chteijon
   @MindtheByte
                                                                6
S3: Simple storage service




  @chteijon
  @MindtheByte
                             7
S3: Simple storage service
            Boto code:
# Connect to a bucket
s3conn = boto.s3.connection.S3Connection( KEY_ID, KEY_SECRET )
s3bucket = s3conn.get_bucket(“meetup_python_cloud”)

# Set a key
s3key = boto.s3.key.Key(bucketconn)
s3key.key = “data/file.txt”
s3key.set_contents_from_string(“Some info”,policy=policy)

# Get a key
s3key.key = “data/anotherfile.txt”
value=s3key.get_contents_as_string()

# Delete a key
S3bucket.delete_key(s3key)




   @chteijon
   @MindtheByte
                                                                 8
How does all this sum up?




                 Amazon S3
  @chteijon
  @MindtheByte
                             9
How does all this sum up?
                             AMI




                 Amazon S3
  @chteijon
  @MindtheByte
                                   10
How does all this sum up?




                 Amazon S3
  @chteijon
  @MindtheByte
                             11
How does all this sum up?




                 Amazon S3
  @chteijon
  @MindtheByte
                             12
How does all this sum up?




                 Amazon S3
  @chteijon
  @MindtheByte
                             13
Common alternatives to distribute jobs




                         Amazon RDS :
                  Relational Dabatase Service



                       Amazon SQS:
                    Simple Queue Service



   @chteijon
   @MindtheByte
                                                14
Key advantatges of the cloud




 ●
  (almost) Infinite computational power
 available to speed up your computations

 ●
  Pay-as-you-go, no need of initial
 investment or hardware maintenance costs.




     @chteijon
     @MindtheByte
                                             15

Contenu connexe

Similaire à Intorduction to AWS and Boto

Machine Learning in Microsoft Azure
Machine Learning in Microsoft AzureMachine Learning in Microsoft Azure
Machine Learning in Microsoft AzureDmitry Petukhov
 
Talk at NCRR P41 Director's Meeting
Talk at NCRR P41 Director's MeetingTalk at NCRR P41 Director's Meeting
Talk at NCRR P41 Director's MeetingDeepak Singh
 
A Novel Secure Cloud SAAS Integration for User Authenticated Information
A Novel Secure Cloud SAAS Integration for User Authenticated InformationA Novel Secure Cloud SAAS Integration for User Authenticated Information
A Novel Secure Cloud SAAS Integration for User Authenticated Informationijtsrd
 
Amazon2009 04 22 Amsterdam
Amazon2009 04 22 AmsterdamAmazon2009 04 22 Amsterdam
Amazon2009 04 22 Amsterdamarnoud.wijnands
 
Amazon SageMaker in Practice - Workshop at Big Data Moscow 2018 (10.10.2018)
Amazon SageMaker in Practice - Workshop at Big Data Moscow 2018 (10.10.2018)Amazon SageMaker in Practice - Workshop at Big Data Moscow 2018 (10.10.2018)
Amazon SageMaker in Practice - Workshop at Big Data Moscow 2018 (10.10.2018)Wojciech Gawroński
 
데이터 기반 의사결정을 통한 비지니스 혁신 - 윤석찬 (AWS 테크에반젤리스트)
데이터 기반 의사결정을 통한 비지니스 혁신 - 윤석찬 (AWS 테크에반젤리스트)데이터 기반 의사결정을 통한 비지니스 혁신 - 윤석찬 (AWS 테크에반젤리스트)
데이터 기반 의사결정을 통한 비지니스 혁신 - 윤석찬 (AWS 테크에반젤리스트)Amazon Web Services Korea
 
Top 23 Things Not to Do in AWS
Top 23 Things Not to Do in AWSTop 23 Things Not to Do in AWS
Top 23 Things Not to Do in AWSErvan Setiawan
 
Real Time Processing Using Twitter Heron by Karthik Ramasamy
Real Time Processing Using Twitter Heron by Karthik RamasamyReal Time Processing Using Twitter Heron by Karthik Ramasamy
Real Time Processing Using Twitter Heron by Karthik RamasamyData Con LA
 
Blockchain On Azure
Blockchain On AzureBlockchain On Azure
Blockchain On AzureJohan Zammit
 
Azure Functions, AI & Xamarin - How to use the Cloud to Your Advantage
Azure Functions, AI & Xamarin - How to use the Cloud to Your AdvantageAzure Functions, AI & Xamarin - How to use the Cloud to Your Advantage
Azure Functions, AI & Xamarin - How to use the Cloud to Your AdvantageMark Arteaga
 
(BDT210) Building Scalable Big Data Solutions: Intel & AOL
(BDT210) Building Scalable Big Data Solutions: Intel & AOL(BDT210) Building Scalable Big Data Solutions: Intel & AOL
(BDT210) Building Scalable Big Data Solutions: Intel & AOLAmazon Web Services
 
2018 05 hype lightning talk
2018 05 hype lightning talk2018 05 hype lightning talk
2018 05 hype lightning talkChris Dwan
 
Build Your Mobile App Faster with AWS Mobile Services (Part 1 - AWS)
Build Your Mobile App Faster with AWS Mobile Services (Part 1 - AWS)Build Your Mobile App Faster with AWS Mobile Services (Part 1 - AWS)
Build Your Mobile App Faster with AWS Mobile Services (Part 1 - AWS)Amazon Web Services
 
Activity Recognition project
Activity Recognition projectActivity Recognition project
Activity Recognition projectAndreaNapoletani
 
Metaverse and Digital Twins on Enterprise-Public.pdf
Metaverse and Digital Twins on Enterprise-Public.pdfMetaverse and Digital Twins on Enterprise-Public.pdf
Metaverse and Digital Twins on Enterprise-Public.pdf湯米吳 Tommy Wu
 
Smart Grid Analytics: All That Remains to be Ready is You
Smart Grid Analytics: All That Remains to be Ready is YouSmart Grid Analytics: All That Remains to be Ready is You
Smart Grid Analytics: All That Remains to be Ready is YouLauren Watters
 

Similaire à Intorduction to AWS and Boto (20)

HPC on AWS
HPC on AWSHPC on AWS
HPC on AWS
 
Machine Learning in Microsoft Azure
Machine Learning in Microsoft AzureMachine Learning in Microsoft Azure
Machine Learning in Microsoft Azure
 
HPC on AWS
HPC on AWSHPC on AWS
HPC on AWS
 
Talk at NCRR P41 Director's Meeting
Talk at NCRR P41 Director's MeetingTalk at NCRR P41 Director's Meeting
Talk at NCRR P41 Director's Meeting
 
A Novel Secure Cloud SAAS Integration for User Authenticated Information
A Novel Secure Cloud SAAS Integration for User Authenticated InformationA Novel Secure Cloud SAAS Integration for User Authenticated Information
A Novel Secure Cloud SAAS Integration for User Authenticated Information
 
Amazon2009 04 22 Amsterdam
Amazon2009 04 22 AmsterdamAmazon2009 04 22 Amsterdam
Amazon2009 04 22 Amsterdam
 
Amazon SageMaker in Practice - Workshop at Big Data Moscow 2018 (10.10.2018)
Amazon SageMaker in Practice - Workshop at Big Data Moscow 2018 (10.10.2018)Amazon SageMaker in Practice - Workshop at Big Data Moscow 2018 (10.10.2018)
Amazon SageMaker in Practice - Workshop at Big Data Moscow 2018 (10.10.2018)
 
Chapter 8
Chapter 8Chapter 8
Chapter 8
 
데이터 기반 의사결정을 통한 비지니스 혁신 - 윤석찬 (AWS 테크에반젤리스트)
데이터 기반 의사결정을 통한 비지니스 혁신 - 윤석찬 (AWS 테크에반젤리스트)데이터 기반 의사결정을 통한 비지니스 혁신 - 윤석찬 (AWS 테크에반젤리스트)
데이터 기반 의사결정을 통한 비지니스 혁신 - 윤석찬 (AWS 테크에반젤리스트)
 
Top 23 Things Not to Do in AWS
Top 23 Things Not to Do in AWSTop 23 Things Not to Do in AWS
Top 23 Things Not to Do in AWS
 
Real Time Processing Using Twitter Heron by Karthik Ramasamy
Real Time Processing Using Twitter Heron by Karthik RamasamyReal Time Processing Using Twitter Heron by Karthik Ramasamy
Real Time Processing Using Twitter Heron by Karthik Ramasamy
 
Blockchain On Azure
Blockchain On AzureBlockchain On Azure
Blockchain On Azure
 
Azure Functions, AI & Xamarin - How to use the Cloud to Your Advantage
Azure Functions, AI & Xamarin - How to use the Cloud to Your AdvantageAzure Functions, AI & Xamarin - How to use the Cloud to Your Advantage
Azure Functions, AI & Xamarin - How to use the Cloud to Your Advantage
 
(BDT210) Building Scalable Big Data Solutions: Intel & AOL
(BDT210) Building Scalable Big Data Solutions: Intel & AOL(BDT210) Building Scalable Big Data Solutions: Intel & AOL
(BDT210) Building Scalable Big Data Solutions: Intel & AOL
 
Activity Recognition
Activity RecognitionActivity Recognition
Activity Recognition
 
2018 05 hype lightning talk
2018 05 hype lightning talk2018 05 hype lightning talk
2018 05 hype lightning talk
 
Build Your Mobile App Faster with AWS Mobile Services (Part 1 - AWS)
Build Your Mobile App Faster with AWS Mobile Services (Part 1 - AWS)Build Your Mobile App Faster with AWS Mobile Services (Part 1 - AWS)
Build Your Mobile App Faster with AWS Mobile Services (Part 1 - AWS)
 
Activity Recognition project
Activity Recognition projectActivity Recognition project
Activity Recognition project
 
Metaverse and Digital Twins on Enterprise-Public.pdf
Metaverse and Digital Twins on Enterprise-Public.pdfMetaverse and Digital Twins on Enterprise-Public.pdf
Metaverse and Digital Twins on Enterprise-Public.pdf
 
Smart Grid Analytics: All That Remains to be Ready is You
Smart Grid Analytics: All That Remains to be Ready is YouSmart Grid Analytics: All That Remains to be Ready is You
Smart Grid Analytics: All That Remains to be Ready is You
 

Plus de Mind the Byte

Aleida Alcaide, European cloud partnership. Iniatives of the European Public ...
Aleida Alcaide, European cloud partnership. Iniatives of the European Public ...Aleida Alcaide, European cloud partnership. Iniatives of the European Public ...
Aleida Alcaide, European cloud partnership. Iniatives of the European Public ...Mind the Byte
 
Service and Support for Science IT -Peter Kunzst, University of Zurich
Service and Support for Science IT-Peter Kunzst, University of ZurichService and Support for Science IT-Peter Kunzst, University of Zurich
Service and Support for Science IT -Peter Kunzst, University of ZurichMind the Byte
 
Progress towards security in the Cloud-Héctor Sánchez, Microsoft
Progress towards security in the Cloud-Héctor Sánchez, MicrosoftProgress towards security in the Cloud-Héctor Sánchez, Microsoft
Progress towards security in the Cloud-Héctor Sánchez, MicrosoftMind the Byte
 
IP strategies to protect your cloud technology-Florian Michalek, Bardehele Pa...
IP strategies to protect your cloud technology-Florian Michalek, Bardehele Pa...IP strategies to protect your cloud technology-Florian Michalek, Bardehele Pa...
IP strategies to protect your cloud technology-Florian Michalek, Bardehele Pa...Mind the Byte
 
Shared Clinical History of Catalonia-Ignasi Garcia-Milà, Fundació TICSalut
Shared Clinical History of Catalonia-Ignasi Garcia-Milà, Fundació TICSalutShared Clinical History of Catalonia-Ignasi Garcia-Milà, Fundació TICSalut
Shared Clinical History of Catalonia-Ignasi Garcia-Milà, Fundació TICSalutMind the Byte
 
Introduction to cloud computing
Introduction to cloud computingIntroduction to cloud computing
Introduction to cloud computingMind the Byte
 

Plus de Mind the Byte (7)

Aleida Alcaide, European cloud partnership. Iniatives of the European Public ...
Aleida Alcaide, European cloud partnership. Iniatives of the European Public ...Aleida Alcaide, European cloud partnership. Iniatives of the European Public ...
Aleida Alcaide, European cloud partnership. Iniatives of the European Public ...
 
Service and Support for Science IT -Peter Kunzst, University of Zurich
Service and Support for Science IT-Peter Kunzst, University of ZurichService and Support for Science IT-Peter Kunzst, University of Zurich
Service and Support for Science IT -Peter Kunzst, University of Zurich
 
Progress towards security in the Cloud-Héctor Sánchez, Microsoft
Progress towards security in the Cloud-Héctor Sánchez, MicrosoftProgress towards security in the Cloud-Héctor Sánchez, Microsoft
Progress towards security in the Cloud-Héctor Sánchez, Microsoft
 
IP strategies to protect your cloud technology-Florian Michalek, Bardehele Pa...
IP strategies to protect your cloud technology-Florian Michalek, Bardehele Pa...IP strategies to protect your cloud technology-Florian Michalek, Bardehele Pa...
IP strategies to protect your cloud technology-Florian Michalek, Bardehele Pa...
 
Shared Clinical History of Catalonia-Ignasi Garcia-Milà, Fundació TICSalut
Shared Clinical History of Catalonia-Ignasi Garcia-Milà, Fundació TICSalutShared Clinical History of Catalonia-Ignasi Garcia-Milà, Fundació TICSalut
Shared Clinical History of Catalonia-Ignasi Garcia-Milà, Fundació TICSalut
 
Introduction to cloud computing
Introduction to cloud computingIntroduction to cloud computing
Introduction to cloud computing
 
Mind the Byte
Mind the ByteMind the Byte
Mind the Byte
 

Dernier

How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfAlex Barbosa Coqueiro
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningLars Bell
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxLoriGlavin3
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 

Dernier (20)

How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Unraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdfUnraveling Multimodality with Large Language Models.pdf
Unraveling Multimodality with Large Language Models.pdf
 
DSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine TuningDSPy a system for AI to Write Prompts and Do Fine Tuning
DSPy a system for AI to Write Prompts and Do Fine Tuning
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptxUse of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
Use of FIDO in the Payments and Identity Landscape: FIDO Paris Seminar.pptx
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 

Intorduction to AWS and Boto

  • 2. EC2: Elastic Compute Cloud @chteijon @MindtheByte 2
  • 3. EC2: Elastic Compute Cloud Boto code: KEY_ID='AGIAJPPYZBKTWGGX8AHS' KEY_SECRET='RwXTKmn7Ujfqmdsakcs/MRdf89sdSDffxU8sjRuD' REGION="us-west-1" ec2 = boto.connect_ec2( KEY_ID, KEY_SECRET, region=REGION ) reservation = ec2.run_instances( image_id=AMI_ID, key_name=KEY_HANDLE, instance_type=INSTANCE_TYPE, security_groups = [ SGS ] ) @chteijon @MindtheByte 3
  • 4. EC2: AMI (Amazon Machine Image) @chteijon @MindtheByte 4
  • 5. EC2: Spot instance On demand price: t! 0% oun 9 c dis @chteijon @MindtheByte 5
  • 6. EC2: Spot instance Boto code: ec2 = boto.connect_ec2( KEY_ID, KEY_SECRET, region=REGION ) ec2_conn.request_spot_instances( price=0.1, image_id=AMI, count=1, key_name=KEY_HANDLE, security_group_ids=[ SGS ] , instance_type= "m1.xlarge", user_data=userdata ) On demand price: t! 0% oun 9 c dis @chteijon @MindtheByte 6
  • 7. S3: Simple storage service @chteijon @MindtheByte 7
  • 8. S3: Simple storage service Boto code: # Connect to a bucket s3conn = boto.s3.connection.S3Connection( KEY_ID, KEY_SECRET ) s3bucket = s3conn.get_bucket(“meetup_python_cloud”) # Set a key s3key = boto.s3.key.Key(bucketconn) s3key.key = “data/file.txt” s3key.set_contents_from_string(“Some info”,policy=policy) # Get a key s3key.key = “data/anotherfile.txt” value=s3key.get_contents_as_string() # Delete a key S3bucket.delete_key(s3key) @chteijon @MindtheByte 8
  • 9. How does all this sum up? Amazon S3 @chteijon @MindtheByte 9
  • 10. How does all this sum up? AMI Amazon S3 @chteijon @MindtheByte 10
  • 11. How does all this sum up? Amazon S3 @chteijon @MindtheByte 11
  • 12. How does all this sum up? Amazon S3 @chteijon @MindtheByte 12
  • 13. How does all this sum up? Amazon S3 @chteijon @MindtheByte 13
  • 14. Common alternatives to distribute jobs Amazon RDS : Relational Dabatase Service Amazon SQS: Simple Queue Service @chteijon @MindtheByte 14
  • 15. Key advantatges of the cloud ● (almost) Infinite computational power available to speed up your computations ● Pay-as-you-go, no need of initial investment or hardware maintenance costs. @chteijon @MindtheByte 15