SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Downloaden Sie, um offline zu lesen
© 2022, Amazon Web Services, Inc. or its affiliates.
© 2022, Amazon Web Services, Inc. or its affiliates.
Deploy Golang WebApp
dengan AWS App Runner
Rio Astamal
Developer Advocate, Indonesia
Amazon Web Services
© 2022, Amazon Web Services, Inc. or its affiliates.
Agenda
• Mengenal AWS App Runner
• Deployment menggunakan App Runner
• Autoscaling pada App Runner
• Demo
§ Deploy WebApp sederhana ditulis dengan Go
§ Menggunakan custom domain
3
© 2022, Amazon Web Services, Inc. or its affiliates.
Tentang Demo
Sebuah web based 2FA token generator
sederhana yang dibuat menggunakan
HTML/CSS/Javascript sebagai Frontend
dan Go sebagai Backend.
Untuk menyimpan konfigurasi token dari
setiap prodivider digunakan Amazon
DynamoDB.
Aplikasi akan dibuild sebagai container
image dan dideploy menggunakan AWS
App Runner.
Gombok Authenticator
4
© 2022, Amazon Web Services, Inc. or its affiliates.
© 2022, Amazon Web Services, Inc. or its affiliates.
AWS App Runner
5
© 2022, Amazon Web Services, Inc. or its affiliates.
AWS App Runner adalah layanan untuk
memudahkan developer dalam menjalankan
web app (dan API) berbasis container
App Runner
© 2022, Amazon Web Services, Inc. or its affiliates.
Fitur
7
Autoscaling
Load Balancing
Logs & Metrics
Deploy Otomatis
Certificate
Manajemen Biaya
© 2022, Amazon Web Services, Inc. or its affiliates.
Tipe App untuk App Runner
Frontend dan backend
Web App
Backend untuk
Mobile Apps
Microservices
dan API
© 2022, Amazon Web Services, Inc. or its affiliates.
Deployment
Development
Teams
Source code
GitHub
Container Image
ECR
Create
Connection
Create
IAM Role
Create
Service
Clients
Authorize AWS
to access
source code
Permissions to
pull image
Build & Runtime config,
CPU & memory size,
Health check config,
Autoscaling config,
Deployment config
Secure
Service URL
HTTP Requests
© 2022, Amazon Web Services, Inc. or its affiliates.
Langkah Deployment untuk Go
10
© 2022, Amazon Web Services, Inc. or its affiliates.
Idle
Active
Contoh Autoscaling
concurrency = 30; min=3; max=5
20
Idle Idle
Application
Instances
Min Provisioned Instances
Load: 20 concurrent requests
© 2022, Amazon Web Services, Inc. or its affiliates.
25
Idle
Idle
Active
Contoh Autoscaling
concurrency = 30; min=3; max=5
Min Provisioned Instances
Application
Instances
Active Active
25 25
Launching
Load: concurrent requests
75
© 2022, Amazon Web Services, Inc. or its affiliates.
30 30 30 30
Idle
Idle
Active
Contoh Autoscaling
concurrency = 30; min=3; max=5
Min Provisioned Instances
Application
Instances
Active Active
Load: 200 concurrent requests
Active Active
30
50 queued/dropped
Max Instances
© 2022, Amazon Web Services, Inc. or its affiliates.
© 2022, Amazon Web Services, Inc. or its affiliates.
Demo
14
https://github.com/rioastamal-examples/golang-app-runner-demo
© 2022, Amazon Web Services, Inc. or its affiliates.
Arsitektur Demo
15
AWS Cloud
Client
HTTPS
AWS App Runner Amazon Dynamodb
© 2022, Amazon Web Services, Inc. or its affiliates.
Apa yang telah dipelajari?
• AWS App Runner cocok digunakan untuk membangun web app
atau API. Dengan hanya fokus pada kode developer dapat lebih agile
dalam melakukan pengembangan.
• Automatic deployments memudahkan update versi dan rollback jika
diperlukan.
16
© 2022, Amazon Web Services, Inc. or its affiliates.
Sumber Rujukan
https://aws.amazon.com/apprunner/
AWS App Runner
17
Official Developer Guide
https://docs.aws.amazon.com/apprunner/latest/dg/what-is-apprunner.html
Blue/Green Deployment
https://docs.aws.amazon.com/whitepapers/latest/overview-deployment-options/bluegreen-deployments.html
https://nathanpeck.com/concurrency-compared-lambda-fargate-app-runner/
Concurrency Compared: AWS Lambda, AWS App Runner, and AWS Fargate
© 2022, Amazon Web Services, Inc. or its affiliates.
Sumber Rujukan
Demo bagaimana melakukan deployment
Golang web app dengan AWS App
Runner.
https://github.com/rioastamal-examples/golang-
app-runner-demo
golang-app-runner-demo
18
© 2022, Amazon Web Services, Inc. or its affiliates.
Komunitas
https://t.me/AWSUserGroupID
Telegram
19
Facebook
https://www.facebook.com/groups/awsindonesia/
Youtube
https://www.youtube.com/channel/UCQDEwvZ5zSVMavHX0Aw9ElQ
Mari bergabung ke komunitas AWS User Group Indonesia.
© 2022, Amazon Web Services, Inc. or its affiliates.
Thank you!
© 2022, Amazon Web Services, Inc. or its affiliates. 20
Rio Astamal
Developer Advocate, Indonesia
Amazon Web Services
rioastamal rioastamal
https://rioastamal.net/

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Introduction to DevOps on AWS
Introduction to DevOps on AWSIntroduction to DevOps on AWS
Introduction to DevOps on AWS
 
Docker Ecosystem on Azure
Docker Ecosystem on AzureDocker Ecosystem on Azure
Docker Ecosystem on Azure
 
DevOps on AWS
DevOps on AWSDevOps on AWS
DevOps on AWS
 
(CMP201) All You Need To Know About Auto Scaling
(CMP201) All You Need To Know About Auto Scaling(CMP201) All You Need To Know About Auto Scaling
(CMP201) All You Need To Know About Auto Scaling
 
Azure kubernetes service (aks)
Azure kubernetes service (aks)Azure kubernetes service (aks)
Azure kubernetes service (aks)
 
Migrating Your AD to the Cloud with AWS Directory Services for Microsoft Acti...
Migrating Your AD to the Cloud with AWS Directory Services for Microsoft Acti...Migrating Your AD to the Cloud with AWS Directory Services for Microsoft Acti...
Migrating Your AD to the Cloud with AWS Directory Services for Microsoft Acti...
 
Modern CI/CD Pipeline Using Azure DevOps
Modern CI/CD Pipeline Using Azure DevOpsModern CI/CD Pipeline Using Azure DevOps
Modern CI/CD Pipeline Using Azure DevOps
 
K8s on AWS - Introducing Amazon EKS
K8s on AWS - Introducing Amazon EKSK8s on AWS - Introducing Amazon EKS
K8s on AWS - Introducing Amazon EKS
 
ECS to EKS 마이그레이션 경험기 - 유용환(Superb AI) :: AWS Community Day Online 2021
ECS to EKS 마이그레이션 경험기 - 유용환(Superb AI) :: AWS Community Day Online 2021ECS to EKS 마이그레이션 경험기 - 유용환(Superb AI) :: AWS Community Day Online 2021
ECS to EKS 마이그레이션 경험기 - 유용환(Superb AI) :: AWS Community Day Online 2021
 
AWS CDK Introduction
AWS CDK IntroductionAWS CDK Introduction
AWS CDK Introduction
 
Comprehensive Terraform Training
Comprehensive Terraform TrainingComprehensive Terraform Training
Comprehensive Terraform Training
 
AKS
AKSAKS
AKS
 
Local Testing and Deployment Best Practices for Serverless Applications - AWS...
Local Testing and Deployment Best Practices for Serverless Applications - AWS...Local Testing and Deployment Best Practices for Serverless Applications - AWS...
Local Testing and Deployment Best Practices for Serverless Applications - AWS...
 
Kubernetes Architecture
 Kubernetes Architecture Kubernetes Architecture
Kubernetes Architecture
 
Azure DevOps CI/CD For Beginners
Azure DevOps CI/CD  For BeginnersAzure DevOps CI/CD  For Beginners
Azure DevOps CI/CD For Beginners
 
Azure devops
Azure devopsAzure devops
Azure devops
 
GitLab과 Kubernetes를 통한 CI/CD 구축
GitLab과 Kubernetes를 통한 CI/CD 구축GitLab과 Kubernetes를 통한 CI/CD 구축
GitLab과 Kubernetes를 통한 CI/CD 구축
 
Gitops: the kubernetes way
Gitops: the kubernetes wayGitops: the kubernetes way
Gitops: the kubernetes way
 
Aks pimarox from zero to hero
Aks pimarox from zero to heroAks pimarox from zero to hero
Aks pimarox from zero to hero
 
IDC 서버 몽땅 AWS로 이전하기 위한 5가지 방법 - 윤석찬 (AWS 테크에반젤리스트)
IDC 서버 몽땅 AWS로 이전하기 위한 5가지 방법 - 윤석찬 (AWS 테크에반젤리스트) IDC 서버 몽땅 AWS로 이전하기 위한 5가지 방법 - 윤석찬 (AWS 테크에반젤리스트)
IDC 서버 몽땅 AWS로 이전하기 위한 5가지 방법 - 윤석찬 (AWS 테크에반젤리스트)
 

Ähnlich wie Deploy Golang WebApp dengan AWS App Runner

CI-CD with AWS Developer Tools and Fargate_AWSPSSummit_Singapore
CI-CD with AWS Developer Tools and Fargate_AWSPSSummit_SingaporeCI-CD with AWS Developer Tools and Fargate_AWSPSSummit_Singapore
CI-CD with AWS Developer Tools and Fargate_AWSPSSummit_Singapore
Amazon Web Services
 
20200520 - Como empezar a desarrollar aplicaciones serverless
20200520 - Como empezar a desarrollar aplicaciones serverless 20200520 - Como empezar a desarrollar aplicaciones serverless
20200520 - Como empezar a desarrollar aplicaciones serverless
Marcia Villalba
 

Ähnlich wie Deploy Golang WebApp dengan AWS App Runner (20)

20 ways event-driven architectures can improve your development - Copy.pptx
20 ways event-driven architectures can improve your development - Copy.pptx20 ways event-driven architectures can improve your development - Copy.pptx
20 ways event-driven architectures can improve your development - Copy.pptx
 
Using GitHub actions on AWS.pptx
Using GitHub actions on AWS.pptxUsing GitHub actions on AWS.pptx
Using GitHub actions on AWS.pptx
 
CI/CD with AWS Developer Tools and Fargate
CI/CD with AWS Developer Tools and FargateCI/CD with AWS Developer Tools and Fargate
CI/CD with AWS Developer Tools and Fargate
 
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...
Serverless Application Debugging and Delivery Best Practices (DEV307-R1) - AW...
 
CI-CD with AWS Developer Tools and Fargate_AWSPSSummit_Singapore
CI-CD with AWS Developer Tools and Fargate_AWSPSSummit_SingaporeCI-CD with AWS Developer Tools and Fargate_AWSPSSummit_Singapore
CI-CD with AWS Developer Tools and Fargate_AWSPSSummit_Singapore
 
CI CD using AWS Developer Tools @ AWS Community Day Bengaluru 2018
CI CD using AWS Developer Tools @ AWS Community Day Bengaluru 2018CI CD using AWS Developer Tools @ AWS Community Day Bengaluru 2018
CI CD using AWS Developer Tools @ AWS Community Day Bengaluru 2018
 
Taking serverless to the edge
Taking serverless to the edgeTaking serverless to the edge
Taking serverless to the edge
 
CI/CD using AWS developer tools
CI/CD using AWS developer toolsCI/CD using AWS developer tools
CI/CD using AWS developer tools
 
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
Scaling and Automating DevOps with CloudBees and Spot Instances (GPSTEC310) -...
 
Vue presentation
Vue presentationVue presentation
Vue presentation
 
20201012 - Serverless Architecture Conference - Deploying serverless applicat...
20201012 - Serverless Architecture Conference - Deploying serverless applicat...20201012 - Serverless Architecture Conference - Deploying serverless applicat...
20201012 - Serverless Architecture Conference - Deploying serverless applicat...
 
From Code to a Running Container | AWS Floor28
From Code to a Running Container | AWS Floor28From Code to a Running Container | AWS Floor28
From Code to a Running Container | AWS Floor28
 
Mainstream Serverless
Mainstream ServerlessMainstream Serverless
Mainstream Serverless
 
Getting started building your first serverless web application on AWS
Getting started building  your first serverless web application on AWSGetting started building  your first serverless web application on AWS
Getting started building your first serverless web application on AWS
 
High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...
High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...
High Velocity DevOps: Four Ways to Leverage CloudFront in Faster DevOps Workf...
 
CI CD using AWS Developer Tools @ AWS Community Day Chennai 2019
CI CD using AWS Developer Tools @ AWS Community Day Chennai 2019CI CD using AWS Developer Tools @ AWS Community Day Chennai 2019
CI CD using AWS Developer Tools @ AWS Community Day Chennai 2019
 
AWS SSA Webinar 12 - Getting started on AWS with Containers
AWS SSA Webinar 12 - Getting started on AWS with ContainersAWS SSA Webinar 12 - Getting started on AWS with Containers
AWS SSA Webinar 12 - Getting started on AWS with Containers
 
How Dow Jones Uses AWS to Enable Innovation and New Engineering Work (CTD316)...
How Dow Jones Uses AWS to Enable Innovation and New Engineering Work (CTD316)...How Dow Jones Uses AWS to Enable Innovation and New Engineering Work (CTD316)...
How Dow Jones Uses AWS to Enable Innovation and New Engineering Work (CTD316)...
 
20200520 - Como empezar a desarrollar aplicaciones serverless
20200520 - Como empezar a desarrollar aplicaciones serverless 20200520 - Como empezar a desarrollar aplicaciones serverless
20200520 - Como empezar a desarrollar aplicaciones serverless
 
20200803 - Serverless with AWS @ HELTECH
20200803 - Serverless with AWS @ HELTECH20200803 - Serverless with AWS @ HELTECH
20200803 - Serverless with AWS @ HELTECH
 

Kürzlich hochgeladen

( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
nilamkumrai
 
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 

Kürzlich hochgeladen (20)

20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
20240510 QFM016 Irresponsible AI Reading List April 2024.pdf
 
Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...
Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...
Call Girls Sangvi Call Me 7737669865 Budget Friendly No Advance BookingCall G...
 
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
( Pune ) VIP Baner Call Girls 🎗️ 9352988975 Sizzling | Escorts | Girls Are Re...
 
Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Russian Call Girls Pune  (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...Russian Call Girls Pune  (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
Russian Call Girls Pune (Adult Only) 8005736733 Escort Service 24x7 Cash Pay...
 
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubai
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls DubaiDubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubai
Dubai=Desi Dubai Call Girls O525547819 Outdoor Call Girls Dubai
 
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Himatnagar 7001035870 Whatsapp Number, 24/07 Booking
 
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrStory Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Story Board.pptxrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
 
Trump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts SweatshirtTrump Diapers Over Dems t shirts Sweatshirt
Trump Diapers Over Dems t shirts Sweatshirt
 
20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf20240508 QFM014 Elixir Reading List April 2024.pdf
20240508 QFM014 Elixir Reading List April 2024.pdf
 
Katraj ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For S...
Katraj ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For S...Katraj ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For S...
Katraj ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For S...
 
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
𓀤Call On 7877925207 𓀤 Ahmedguda Call Girls Hot Model With Sexy Bhabi Ready Fo...
 
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
APNIC Policy Roundup, presented by Sunny Chendi at the 5th ICANN APAC-TWNIC E...
 
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
20240509 QFM015 Engineering Leadership Reading List April 2024.pdf
 
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
VVIP Pune Call Girls Sinhagad WhatSapp Number 8005736733 With Elite Staff And...
 
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
Sarola * Female Escorts Service in Pune | 8005736733 Independent Escorts & Da...
 
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service AvailableCall Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
Call Girls Ludhiana Just Call 98765-12871 Top Class Call Girl Service Available
 
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting  High Prof...
VIP Model Call Girls Hadapsar ( Pune ) Call ON 9905417584 Starting High Prof...
 
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Prashant Vihar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
(INDIRA) Call Girl Pune Call Now 8250077686 Pune Escorts 24x7
 
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
Hire↠Young Call Girls in Tilak nagar (Delhi) ☎️ 9205541914 ☎️ Independent Esc...
 

Deploy Golang WebApp dengan AWS App Runner

  • 1. © 2022, Amazon Web Services, Inc. or its affiliates. © 2022, Amazon Web Services, Inc. or its affiliates. Deploy Golang WebApp dengan AWS App Runner Rio Astamal Developer Advocate, Indonesia Amazon Web Services
  • 2. © 2022, Amazon Web Services, Inc. or its affiliates. Agenda • Mengenal AWS App Runner • Deployment menggunakan App Runner • Autoscaling pada App Runner • Demo § Deploy WebApp sederhana ditulis dengan Go § Menggunakan custom domain 3
  • 3. © 2022, Amazon Web Services, Inc. or its affiliates. Tentang Demo Sebuah web based 2FA token generator sederhana yang dibuat menggunakan HTML/CSS/Javascript sebagai Frontend dan Go sebagai Backend. Untuk menyimpan konfigurasi token dari setiap prodivider digunakan Amazon DynamoDB. Aplikasi akan dibuild sebagai container image dan dideploy menggunakan AWS App Runner. Gombok Authenticator 4
  • 4. © 2022, Amazon Web Services, Inc. or its affiliates. © 2022, Amazon Web Services, Inc. or its affiliates. AWS App Runner 5
  • 5. © 2022, Amazon Web Services, Inc. or its affiliates. AWS App Runner adalah layanan untuk memudahkan developer dalam menjalankan web app (dan API) berbasis container App Runner
  • 6. © 2022, Amazon Web Services, Inc. or its affiliates. Fitur 7 Autoscaling Load Balancing Logs & Metrics Deploy Otomatis Certificate Manajemen Biaya
  • 7. © 2022, Amazon Web Services, Inc. or its affiliates. Tipe App untuk App Runner Frontend dan backend Web App Backend untuk Mobile Apps Microservices dan API
  • 8. © 2022, Amazon Web Services, Inc. or its affiliates. Deployment Development Teams Source code GitHub Container Image ECR Create Connection Create IAM Role Create Service Clients Authorize AWS to access source code Permissions to pull image Build & Runtime config, CPU & memory size, Health check config, Autoscaling config, Deployment config Secure Service URL HTTP Requests
  • 9. © 2022, Amazon Web Services, Inc. or its affiliates. Langkah Deployment untuk Go 10
  • 10. © 2022, Amazon Web Services, Inc. or its affiliates. Idle Active Contoh Autoscaling concurrency = 30; min=3; max=5 20 Idle Idle Application Instances Min Provisioned Instances Load: 20 concurrent requests
  • 11. © 2022, Amazon Web Services, Inc. or its affiliates. 25 Idle Idle Active Contoh Autoscaling concurrency = 30; min=3; max=5 Min Provisioned Instances Application Instances Active Active 25 25 Launching Load: concurrent requests 75
  • 12. © 2022, Amazon Web Services, Inc. or its affiliates. 30 30 30 30 Idle Idle Active Contoh Autoscaling concurrency = 30; min=3; max=5 Min Provisioned Instances Application Instances Active Active Load: 200 concurrent requests Active Active 30 50 queued/dropped Max Instances
  • 13. © 2022, Amazon Web Services, Inc. or its affiliates. © 2022, Amazon Web Services, Inc. or its affiliates. Demo 14 https://github.com/rioastamal-examples/golang-app-runner-demo
  • 14. © 2022, Amazon Web Services, Inc. or its affiliates. Arsitektur Demo 15 AWS Cloud Client HTTPS AWS App Runner Amazon Dynamodb
  • 15. © 2022, Amazon Web Services, Inc. or its affiliates. Apa yang telah dipelajari? • AWS App Runner cocok digunakan untuk membangun web app atau API. Dengan hanya fokus pada kode developer dapat lebih agile dalam melakukan pengembangan. • Automatic deployments memudahkan update versi dan rollback jika diperlukan. 16
  • 16. © 2022, Amazon Web Services, Inc. or its affiliates. Sumber Rujukan https://aws.amazon.com/apprunner/ AWS App Runner 17 Official Developer Guide https://docs.aws.amazon.com/apprunner/latest/dg/what-is-apprunner.html Blue/Green Deployment https://docs.aws.amazon.com/whitepapers/latest/overview-deployment-options/bluegreen-deployments.html https://nathanpeck.com/concurrency-compared-lambda-fargate-app-runner/ Concurrency Compared: AWS Lambda, AWS App Runner, and AWS Fargate
  • 17. © 2022, Amazon Web Services, Inc. or its affiliates. Sumber Rujukan Demo bagaimana melakukan deployment Golang web app dengan AWS App Runner. https://github.com/rioastamal-examples/golang- app-runner-demo golang-app-runner-demo 18
  • 18. © 2022, Amazon Web Services, Inc. or its affiliates. Komunitas https://t.me/AWSUserGroupID Telegram 19 Facebook https://www.facebook.com/groups/awsindonesia/ Youtube https://www.youtube.com/channel/UCQDEwvZ5zSVMavHX0Aw9ElQ Mari bergabung ke komunitas AWS User Group Indonesia.
  • 19. © 2022, Amazon Web Services, Inc. or its affiliates. Thank you! © 2022, Amazon Web Services, Inc. or its affiliates. 20 Rio Astamal Developer Advocate, Indonesia Amazon Web Services rioastamal rioastamal https://rioastamal.net/