SlideShare uma empresa Scribd logo
1 de 18
Shell
using Amazon;
using Amazon.S3.Model;
using Amazon.S3;
...
       if (FileUpload1.HasFile)
       {
           try
           {
              filename = Path.GetFileName(FileUpload1.FileName);
              FileUpload1.SaveAs(System.Web.HttpContext.Current.Server.MapPath("~/") + filename);

             //Upload to S3
             string bucketName = "SharePointTomRizzo";
             string keyName = filename;
             AmazonS3 client = Amazon.AWSClientFactory.CreateAmazonS3Client(accessKey, secretAccessKey);
             PutObjectRequest request = new PutObjectRequest();
             request.WithInputStream(FileUpload1.FileContent);
             request.WithBucketName(bucketName);
             request.WithKey(keyName);
             request.StorageClass = S3StorageClass.ReducedRedundancy; //set storage to reduced redundancy
             client.PutObject(request);


             Label1.Text = "Upload status: File uploaded!";
             LoadS3ListBox();
           }
           catch (Exception ex)
           {
             Label1.Text = "Upload status: The file could not be uploaded. The following error occured: " + ex.Message;
           }
       }
protected void LoadS3ListBox()
{
  ListBox1.Items.Clear();
  //Load the S3 Contents
  string bucketName = "SharePointTomRizzo";
  AmazonS3 client = Amazon.AWSClientFactory.CreateAmazonS3Client(accessKey, secretAccessKey);
  ListObjectsRequest listRequest = new ListObjectsRequest();
  listRequest.WithBucketName(bucketName);
  ListObjectsResponse listResponse = client.ListObjects(listRequest);

  foreach (S3Object obj in listResponse.S3Objects)
  {
     ListBox1.Items.Add(obj.Key);
  }
}
protected void Page_Load(object sender, EventArgs e)
{
  LoadS3ListBox();
aws.amazon.com/microsoft
          aws.amazon.com/windows
          aws.amazon.com/windows/sharepoint

docs.amazonwebservices.com/AWSEC2/latest/WindowsGuide/
Q&A
tomrizzo@amazon.com
We are sincerely eager to
hear your FEEDBACK on this
presentation and on re:Invent.

 Please fill out an evaluation
   form when you have a
            chance.

Mais conteúdo relacionado

Mais procurados (9)

Lucene InputFormat (lightning talk) - TriHUG December 10, 2013
Lucene InputFormat (lightning talk) - TriHUG December 10, 2013Lucene InputFormat (lightning talk) - TriHUG December 10, 2013
Lucene InputFormat (lightning talk) - TriHUG December 10, 2013
 
Web_Crawler
Web_CrawlerWeb_Crawler
Web_Crawler
 
Meta dataservice design
Meta dataservice design Meta dataservice design
Meta dataservice design
 
Building a Cloud API Server using Play(SCALA) & Riak
Building a Cloud API Server using  Play(SCALA) & Riak Building a Cloud API Server using  Play(SCALA) & Riak
Building a Cloud API Server using Play(SCALA) & Riak
 
MongoDB Quick Reference Card
MongoDB Quick Reference CardMongoDB Quick Reference Card
MongoDB Quick Reference Card
 
Fetch data from form
Fetch data from formFetch data from form
Fetch data from form
 
ASP.NET WEB API
ASP.NET WEB APIASP.NET WEB API
ASP.NET WEB API
 
Codigo java
Codigo javaCodigo java
Codigo java
 
Working with large archives in AtoM in National Library of Wales
Working with large archives in AtoM in National Library of WalesWorking with large archives in AtoM in National Library of Wales
Working with large archives in AtoM in National Library of Wales
 

Destaque

AWS Total Cost of Ownership Hong Kong and Taiwan
AWS Total Cost of Ownership Hong Kong and TaiwanAWS Total Cost of Ownership Hong Kong and Taiwan
AWS Total Cost of Ownership Hong Kong and Taiwan
Amazon Web Services
 
AWS Enterprise Summit London 2013 - Ian Page - funkypigeon.com
AWS Enterprise Summit London 2013 - Ian Page - funkypigeon.com AWS Enterprise Summit London 2013 - Ian Page - funkypigeon.com
AWS Enterprise Summit London 2013 - Ian Page - funkypigeon.com
Amazon Web Services
 
AWS Summit Paris - Keynote Slides
AWS Summit Paris - Keynote SlidesAWS Summit Paris - Keynote Slides
AWS Summit Paris - Keynote Slides
Amazon Web Services
 

Destaque (20)

AWS Total Cost of Ownership Hong Kong and Taiwan
AWS Total Cost of Ownership Hong Kong and TaiwanAWS Total Cost of Ownership Hong Kong and Taiwan
AWS Total Cost of Ownership Hong Kong and Taiwan
 
Journey Through the AWS Cloud; Disaster Recovery
 Journey Through the AWS Cloud; Disaster Recovery Journey Through the AWS Cloud; Disaster Recovery
Journey Through the AWS Cloud; Disaster Recovery
 
AWS Cloud Kata 2013 | Singapore - Building your 'Minimum Viable Product' (MVP...
AWS Cloud Kata 2013 | Singapore - Building your 'Minimum Viable Product' (MVP...AWS Cloud Kata 2013 | Singapore - Building your 'Minimum Viable Product' (MVP...
AWS Cloud Kata 2013 | Singapore - Building your 'Minimum Viable Product' (MVP...
 
AWS Summit 2013 | India - Running Lean with Optimized Architecture, Pieter Kemps
AWS Summit 2013 | India - Running Lean with Optimized Architecture, Pieter KempsAWS Summit 2013 | India - Running Lean with Optimized Architecture, Pieter Kemps
AWS Summit 2013 | India - Running Lean with Optimized Architecture, Pieter Kemps
 
AWS Canberra WWPS Summit 2013 - Big Data with AWS
AWS Canberra WWPS Summit 2013 - Big Data with AWSAWS Canberra WWPS Summit 2013 - Big Data with AWS
AWS Canberra WWPS Summit 2013 - Big Data with AWS
 
AWS Customer Case Study - Tellybug
AWS Customer Case Study - TellybugAWS Customer Case Study - Tellybug
AWS Customer Case Study - Tellybug
 
AWS Sydney Summit 2013 - Your First Week with Amazon EC2
AWS Sydney Summit 2013 - Your First Week with Amazon EC2AWS Sydney Summit 2013 - Your First Week with Amazon EC2
AWS Sydney Summit 2013 - Your First Week with Amazon EC2
 
AWS Sydney Summit 2013 - Scalable Media Processing on the Cloud
AWS Sydney Summit 2013 - Scalable Media Processing on the CloudAWS Sydney Summit 2013 - Scalable Media Processing on the Cloud
AWS Sydney Summit 2013 - Scalable Media Processing on the Cloud
 
Improving your Time to Market with AWS
Improving your Time to Market with AWSImproving your Time to Market with AWS
Improving your Time to Market with AWS
 
AWS Enterprise Summit London 2013 - Ian Page - funkypigeon.com
AWS Enterprise Summit London 2013 - Ian Page - funkypigeon.com AWS Enterprise Summit London 2013 - Ian Page - funkypigeon.com
AWS Enterprise Summit London 2013 - Ian Page - funkypigeon.com
 
AWS Webcast - Introducing Amazon Redshift
AWS Webcast - Introducing Amazon RedshiftAWS Webcast - Introducing Amazon Redshift
AWS Webcast - Introducing Amazon Redshift
 
Aws webcast - Scaling on AWS 13 08-20
Aws webcast - Scaling on AWS 13 08-20Aws webcast - Scaling on AWS 13 08-20
Aws webcast - Scaling on AWS 13 08-20
 
City of Melbourne Keynote Sydney Customer Appreciation Day
City of Melbourne Keynote Sydney Customer Appreciation DayCity of Melbourne Keynote Sydney Customer Appreciation Day
City of Melbourne Keynote Sydney Customer Appreciation Day
 
AWS 201 - A Walk through the AWS Cloud: What's New with AWS
AWS 201 - A Walk through the AWS Cloud: What's New with AWSAWS 201 - A Walk through the AWS Cloud: What's New with AWS
AWS 201 - A Walk through the AWS Cloud: What's New with AWS
 
AWS Summit 2013 | Singapore - Understanding Databases Options
AWS Summit 2013 | Singapore - Understanding Databases OptionsAWS Summit 2013 | Singapore - Understanding Databases Options
AWS Summit 2013 | Singapore - Understanding Databases Options
 
AWS Partner Day London - June 11th 2013
AWS Partner Day London -  June 11th 2013  AWS Partner Day London -  June 11th 2013
AWS Partner Day London - June 11th 2013
 
ENT205 Drinking Our Own Champagne - How Amazon uses AWS - AWS re: Invent 2012
ENT205 Drinking Our Own Champagne - How Amazon uses AWS - AWS re: Invent 2012ENT205 Drinking Our Own Champagne - How Amazon uses AWS - AWS re: Invent 2012
ENT205 Drinking Our Own Champagne - How Amazon uses AWS - AWS re: Invent 2012
 
AWS Summit 2013 | Auckland - Building Web Scale Applications with AWS
AWS Summit 2013 | Auckland - Building Web Scale Applications with AWSAWS Summit 2013 | Auckland - Building Web Scale Applications with AWS
AWS Summit 2013 | Auckland - Building Web Scale Applications with AWS
 
AWS Summit Paris - Keynote Slides
AWS Summit Paris - Keynote SlidesAWS Summit Paris - Keynote Slides
AWS Summit Paris - Keynote Slides
 
AWS Summit 2013 | India - Running Enterprise Applications like SAP, Oracle an...
AWS Summit 2013 | India - Running Enterprise Applications like SAP, Oracle an...AWS Summit 2013 | India - Running Enterprise Applications like SAP, Oracle an...
AWS Summit 2013 | India - Running Enterprise Applications like SAP, Oracle an...
 

Semelhante a ENT302 Deploying Microsoft Exchange and SharePoint on AWS - AWS re: Invent 2012

Deep Dive on S3 Storage Management Covering New Feature Announcements - Decem...
Deep Dive on S3 Storage Management Covering New Feature Announcements - Decem...Deep Dive on S3 Storage Management Covering New Feature Announcements - Decem...
Deep Dive on S3 Storage Management Covering New Feature Announcements - Decem...
Amazon Web Services
 
Additional action script 3.0
Additional action script 3.0Additional action script 3.0
Additional action script 3.0
Brian Kelly
 
Additional action script 3.0
Additional action script 3.0Additional action script 3.0
Additional action script 3.0
Brian Kelly
 
Sharepoint Saturday India Online best practice for developing share point sol...
Sharepoint Saturday India Online best practice for developing share point sol...Sharepoint Saturday India Online best practice for developing share point sol...
Sharepoint Saturday India Online best practice for developing share point sol...
Shakir Majeed Khan
 

Semelhante a ENT302 Deploying Microsoft Exchange and SharePoint on AWS - AWS re: Invent 2012 (20)

Coding using jscript test complete
Coding using jscript test completeCoding using jscript test complete
Coding using jscript test complete
 
Whitepaper To Study Filestream Option In Sql Server
Whitepaper To Study Filestream Option In Sql ServerWhitepaper To Study Filestream Option In Sql Server
Whitepaper To Study Filestream Option In Sql Server
 
10 sharing files and data in windows phone 8
10   sharing files and data in windows phone 810   sharing files and data in windows phone 8
10 sharing files and data in windows phone 8
 
Amazon s3
Amazon s3Amazon s3
Amazon s3
 
jQuery - Chapter 5 - Ajax
jQuery - Chapter 5 -  AjaxjQuery - Chapter 5 -  Ajax
jQuery - Chapter 5 - Ajax
 
Building Your First Big Data Application on AWS
Building Your First Big Data Application on AWSBuilding Your First Big Data Application on AWS
Building Your First Big Data Application on AWS
 
Windows 8 metro applications
Windows 8 metro applicationsWindows 8 metro applications
Windows 8 metro applications
 
Codes
CodesCodes
Codes
 
Amazon S3 Masterclass
Amazon S3 MasterclassAmazon S3 Masterclass
Amazon S3 Masterclass
 
Amazon S3 Masterclass
Amazon S3 MasterclassAmazon S3 Masterclass
Amazon S3 Masterclass
 
Deep Dive on S3 Storage Management Covering New Feature Announcements - Decem...
Deep Dive on S3 Storage Management Covering New Feature Announcements - Decem...Deep Dive on S3 Storage Management Covering New Feature Announcements - Decem...
Deep Dive on S3 Storage Management Covering New Feature Announcements - Decem...
 
09.Local Database Files and Storage on WP
09.Local Database Files and Storage on WP09.Local Database Files and Storage on WP
09.Local Database Files and Storage on WP
 
SWT Lecture Session 4 - Sesame
SWT Lecture Session 4 - SesameSWT Lecture Session 4 - Sesame
SWT Lecture Session 4 - Sesame
 
4 sesame
4 sesame4 sesame
4 sesame
 
Additional action script 3.0
Additional action script 3.0Additional action script 3.0
Additional action script 3.0
 
Additional action script 3.0
Additional action script 3.0Additional action script 3.0
Additional action script 3.0
 
Sharepoint Saturday India Online best practice for developing share point sol...
Sharepoint Saturday India Online best practice for developing share point sol...Sharepoint Saturday India Online best practice for developing share point sol...
Sharepoint Saturday India Online best practice for developing share point sol...
 
Asynchonicity: concurrency. A tale of
Asynchonicity: concurrency. A tale ofAsynchonicity: concurrency. A tale of
Asynchonicity: concurrency. A tale of
 
【AWS Developers Meetup】RESTful APIをChaliceで紐解く
【AWS Developers Meetup】RESTful APIをChaliceで紐解く【AWS Developers Meetup】RESTful APIをChaliceで紐解く
【AWS Developers Meetup】RESTful APIをChaliceで紐解く
 
Building Your First Big Data Application on AWS
Building Your First Big Data Application on AWSBuilding Your First Big Data Application on AWS
Building Your First Big Data Application on AWS
 

Mais de Amazon Web Services

Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
Amazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
Amazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
Amazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
Amazon Web Services
 

Mais de Amazon Web Services (20)

Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
Come costruire servizi di Forecasting sfruttando algoritmi di ML e deep learn...
 
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
Big Data per le Startup: come creare applicazioni Big Data in modalità Server...
 
Esegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS FargateEsegui pod serverless con Amazon EKS e AWS Fargate
Esegui pod serverless con Amazon EKS e AWS Fargate
 
Costruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWSCostruire Applicazioni Moderne con AWS
Costruire Applicazioni Moderne con AWS
 
Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot Come spendere fino al 90% in meno con i container e le istanze spot
Come spendere fino al 90% in meno con i container e le istanze spot
 
Open banking as a service
Open banking as a serviceOpen banking as a service
Open banking as a service
 
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
Rendi unica l’offerta della tua startup sul mercato con i servizi Machine Lea...
 
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...OpsWorks Configuration Management: automatizza la gestione e i deployment del...
OpsWorks Configuration Management: automatizza la gestione e i deployment del...
 
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 

ENT302 Deploying Microsoft Exchange and SharePoint on AWS - AWS re: Invent 2012

  • 1.
  • 3.
  • 4.
  • 5.
  • 6. using Amazon; using Amazon.S3.Model; using Amazon.S3; ... if (FileUpload1.HasFile) { try { filename = Path.GetFileName(FileUpload1.FileName); FileUpload1.SaveAs(System.Web.HttpContext.Current.Server.MapPath("~/") + filename); //Upload to S3 string bucketName = "SharePointTomRizzo"; string keyName = filename; AmazonS3 client = Amazon.AWSClientFactory.CreateAmazonS3Client(accessKey, secretAccessKey); PutObjectRequest request = new PutObjectRequest(); request.WithInputStream(FileUpload1.FileContent); request.WithBucketName(bucketName); request.WithKey(keyName); request.StorageClass = S3StorageClass.ReducedRedundancy; //set storage to reduced redundancy client.PutObject(request); Label1.Text = "Upload status: File uploaded!"; LoadS3ListBox(); } catch (Exception ex) { Label1.Text = "Upload status: The file could not be uploaded. The following error occured: " + ex.Message; } }
  • 7. protected void LoadS3ListBox() { ListBox1.Items.Clear(); //Load the S3 Contents string bucketName = "SharePointTomRizzo"; AmazonS3 client = Amazon.AWSClientFactory.CreateAmazonS3Client(accessKey, secretAccessKey); ListObjectsRequest listRequest = new ListObjectsRequest(); listRequest.WithBucketName(bucketName); ListObjectsResponse listResponse = client.ListObjects(listRequest); foreach (S3Object obj in listResponse.S3Objects) { ListBox1.Items.Add(obj.Key); } } protected void Page_Load(object sender, EventArgs e) { LoadS3ListBox();
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16. aws.amazon.com/microsoft aws.amazon.com/windows aws.amazon.com/windows/sharepoint docs.amazonwebservices.com/AWSEC2/latest/WindowsGuide/
  • 18. We are sincerely eager to hear your FEEDBACK on this presentation and on re:Invent. Please fill out an evaluation form when you have a chance.