Weitere ähnliche Inhalte Ähnlich wie Infrastructure is code with the AWS CDK - MAD312 - New York AWS Summit (20) Mehr von Amazon Web Services (20) Infrastructure is code with the AWS CDK - MAD312 - New York AWS Summit1. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Infrastructure is code with the
AWS Cloud Development Kit (AWS CDK)
Elad Ben-Israel
Principal Engineer
Developer Tools
AWS
M A D 3 1 2
Jason Fulghum
Software Development Manager
Developer Tools
AWS
2. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Agenda
Intro and concepts
Demo (Part 1): Build an app
Demo (Part 2): Test & monitor
Wrap-up
3. S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
4. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
AWS Cloud Development Kit (AWS CDK)
A multi-language software development framework for modeling cloud infrastructure as
reusable components
AWS CloudFormation
5. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
AWS Cloud Development Kit (AWS CDK)
The big picture—from AWS CDK app to provisioned infrastructure
6. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
AWS Cloud Development Kit (AWS CDK)
AWS Construct Library
Framework CLI
CDK Application
Stack(s)
ConstructConstruct
Core Framework AWS CDK CLI
Serverless
Containers CI/ CD
Application Integration / Foundational
Autoscaling
Main components
7. S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
8. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
UrlShortenerStack
URL shortener architecture
Amazon API Gateway AWS Lambda Amazon DynamoDB
HTTP GET ?targetUrl=
HTTP GET /<id>
AWS CDK App
9. S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
10. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
UrlShortenerStack
Demo recap
Amazon API Gateway AWS Lambda Amazon DynamoDB
AWS CDK App
• init, diff, synth, deploy
• Exploring the API Reference
• Granting permissions
WaltersCoStack
Amazon Route 53 AWS Certificate
Manager
extends
HTTP GET ?targetUrl=
HTTP GET /<id>
11. S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
12. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Demo goals
• Generate some traffic
• See what’s up with our service
AWS CDK App
url-shortener-stack
Amazon API Gateway AWS Lambda Amazon DynamoDB
13. S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
14. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Demo recap
• Traffic generator
• AWS Fargate is awesome!
• Reusable constructs
• APIs, encapsulation, mental models
• Monitoring
• 3rd-party construct libraries
• PyPI, npm, Maven Central, NuGet
• “Cloud in a Library”
• jsii
AWS CDK App
url-shortener-stack
Amazon API Gateway AWS Lambda Amazon DynamoDB
AWS
Fargate
Amazon
CloudWatch
15. S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
16. © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.S U M M I T
Next steps
Get started!
https://cdkworkshop.com
https://aws.amazon.com/cdk
Engage with us!
https://github.com/awslabs/aws-cdk
https://gitter.im/awslabs/aws-cdk
Contribute!
Publish construct libraries!
17. Thank you!
S U M M I T © 2019, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Elad Ben-Israel
@emeshbi
Jason Fulghum
@jason_fulghum