© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
.
DevOps Specialist Solutions Architect
Atsushi Fukui
2018.03.10
. 8
1 1 188 1 20 2 8
C A
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
v
v
v ro C@ A
v
v D g gp h
v sut imfW Sda Obgm
v 9 O d Sda Obg D
v
v g F D dL Obg l g e g
v
v Od
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
• 22 00 .2
•
•
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
/ C : /- 0 L
• MhPR
. W Sed
I 2 2 T LI /- 0
- W Sca N L
i b N 2E 2 2 A / C N
. Sg N L
AA A 2D 2D :2 2
A A : 2 A 2 2E 2 2
A / C .
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
. . . . TP
• . . . G
E I a
B
• . . IE
S N G Eot
• . CA I N Ed I N
E . I e I N r
• . G A P A N NE
. N N r
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
•
GA F
• ) ( ) I
• .
• GA
• . . I I
•
I I P
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
ocei
• l s ps J PtI Tocei
• > A CHS I T . Ed . < O
oceiN m N s E
F > > < O v G
• sadsaO nr
F >> > > > GO y
J be
• > >> > > > N > A CHSOq a
> > Rx
• > A C. < < >
wu
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
using System.IO;
using Amazon.Lambda.AspNetCoreServer;
using Microsoft.AspNetCore.Hosting;
namespace TestWebApp {
public class LambdaFunction : APIGatewayProxyFunction
{
protected override void Init(IWebHostBuilder builder)
{
builder.UseStartup<Startup>();
}
}
}
// Lambda TestWebApp.LambdaFunction.FunctionHandlerAsync
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
client
Amazon API
Gateway*
Lambda
function
Internet
C
API Gateway
C
API Gateway Lambda
Lambda
N
FunctionHandlerAsync
A C
C ASP.NET
Core A N
ASP.NET Core
A S
ASP.NET Core A
JSON
Lambda
C
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
S
• . eh jW d i u
C
• . 0 l V W t C
• 1 7 E N 1 2 T C
• . P 0 . n ehT
• uoN s h bP m NA 1/
b d P ja j b C
T
• 1rxP t
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
https://meguro-dev.connpass.com/event/81804/
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
© 2017, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Serverless ASP.NET Core 2.0 Applicationsを作ってみた

  • 1.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. . DevOps Specialist Solutions Architect Atsushi Fukui 2018.03.10 . 8 1 1 188 1 20 2 8 C A
  • 2.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. v v v ro C@ A v v D g gp h v sut imfW Sda Obgm v 9 O d Sda Obg D v v g F D dL Obg l g e g v v Od
  • 3.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. • 22 00 .2 • •
  • 4.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 5.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. / C : /- 0 L • MhPR . W Sed I 2 2 T LI /- 0 - W Sca N L i b N 2E 2 2 A / C N . Sg N L AA A 2D 2D :2 2 A A : 2 A 2 2E 2 2 A / C .
  • 6.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. . . . . TP • . . . G E I a B • . . IE S N G Eot • . CA I N Ed I N E . I e I N r • . G A P A N NE . N N r
  • 7.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. • GA F • ) ( ) I • . • GA • . . I I • I I P
  • 8.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. ocei • l s ps J PtI Tocei • > A CHS I T . Ed . < O oceiN m N s E F > > < O v G • sadsaO nr F >> > > > GO y J be • > >> > > > N > A CHSOq a > > Rx • > A C. < < > wu
  • 9.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. using System.IO; using Amazon.Lambda.AspNetCoreServer; using Microsoft.AspNetCore.Hosting; namespace TestWebApp { public class LambdaFunction : APIGatewayProxyFunction { protected override void Init(IWebHostBuilder builder) { builder.UseStartup<Startup>(); } } } // Lambda TestWebApp.LambdaFunction.FunctionHandlerAsync
  • 10.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. client Amazon API Gateway* Lambda function Internet C API Gateway C API Gateway Lambda Lambda N FunctionHandlerAsync A C C ASP.NET Core A N ASP.NET Core A S ASP.NET Core A JSON Lambda C
  • 11.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. S • . eh jW d i u C • . 0 l V W t C • 1 7 E N 1 2 T C • . P 0 . n ehT • uoN s h bP m NA 1/ b d P ja j b C T • 1rxP t
  • 12.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved. https://meguro-dev.connpass.com/event/81804/
  • 13.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.
  • 14.
    © 2017, AmazonWeb Services, Inc. or its Affiliates. All rights reserved.