SlideShare a Scribd company logo
© 2022, Amazon Web Services, Inc. or its affiliates.
© 2022, Amazon Web Services, Inc. or its affiliates.
Membangun Cloud Development
Environment dengan
Amazon EC2 Spot Instances dan
AWS Cloud9
Rio Astamal
Developer Advocate, Indonesia
Amazon Web Services
© 2022, Amazon Web Services, Inc. or its affiliates.
Agenda
• Mengapa membangun development environment di cloud?
• Mengapa menggunakan Amazon EC2 Spot Instances?
• Integrasi Amazon EC2 Spot, Amazon EFS dan AWS Cloud9
• Demo
2
© 2022, Amazon Web Services, Inc. or its affiliates.
© 2022, Amazon Web Services, Inc. or its affiliates.
Cloud Integrated
Development Environment
(IDE)
3
© 2022, Amazon Web Services, Inc. or its affiliates.
Cukup dengan
browser dan internet
Kelebihan Cloud IDE
Browser Keamanan
Tidak perlu khawatir
ketika perangkat rusak
atau hilang
4
Powerful Kolaborasi
Ganti instance atau
buat baru dengan
mudah
Berbagi lingkungan
atau kode secara
realtime
© 2022, Amazon Web Services, Inc. or its affiliates.
1
2
3
© 2022, Amazon Web Services, Inc. or its affiliates.
© 2022, Amazon Web Services, Inc. or its affiliates.
Mengapa Amazon EC2 Spot
Instances?
6
© 2022, Amazon Web Services, Inc. or its affiliates.
Amazon EC2 Spot Instances
7
Lebih murah hingga 90%
dari On-Demand
Keamanan
sesuai standar
Infrastruktur yang sama dengan On-Demand
Pilihan tipe
instance
26+ Region
© 2022, Amazon Web Services, Inc. or its affiliates.
Apa yang terjadi ketika Amazon EC2 Spot diinterupsi?
Interupsi Minimal
Alert Otomasi
Opsi interupsi
§ Terminate
§ Stop/Start
§ Hibernate
Notifikasi interupsi
*) untuk beberapa tipe instance tertentu
© 2022, Amazon Web Services, Inc. or its affiliates.
© 2022, Amazon Web Services, Inc. or its affiliates.
AWS Cloud9 sebagai
Cloud IDE
9
© 2022, Amazon Web Services, Inc. or its affiliates.
AWS Cloud9
- Cloud-based IDE
- Cukup melalui browser
- Mendukung berbagai
bahasa pemrograman
- Akses terminal ke
Amazon EC2
instance/SSH server
- Kolaborasi realtime
dengan pengguna lain
10
© 2022, Amazon Web Services, Inc. or its affiliates.
Arsitektur
11
AWS Cloud
VPC
Availability Zone 1 Availability Zone 3
Availability Zone 2
AWS Cloud9
Client
HTTPS
SSH
SSH
Spot Fleet
Elastic IP
© 2022, Amazon Web Services, Inc. or its affiliates.
Alur eksekusi
12
Developer Spot Instance GitHub
terraform apply
Membuat spot
instance
Spot instance booting:
Mount EFS, dll
user-data.sh
Instance ready
Install Cloud9 SSH
Environment
AWS Cloud9
Paket Cloud9 terinstal SSH Environment
Cloud9 Ready
Menggunakan
Cloud9
© 2022, Amazon Web Services, Inc. or its affiliates.
Apa yang dilakukan ketika proses booting?
Mount
file system
Masukkan
SSH public key Install aplikasi
Asosiasikan
Elastic IP
13
1 2 3 4
© 2022, Amazon Web Services, Inc. or its affiliates.
Amazon EFS Access Point
/data $HOME
/docker /dockerlib
POSIX user 1000:1000
POSIX user 0:0
Contoh
2 Access Point
di-mount ke
di-mount ke
© 2022, Amazon Web Services, Inc. or its affiliates.
Instance userdata
15
https://github.com/rioastamal/spot-dev-machine/scripts/user-data.sh
© 2022, Amazon Web Services, Inc. or its affiliates.
© 2022, Amazon Web Services, Inc. or its affiliates.
Demo
16
© 2022, Amazon Web Services, Inc. or its affiliates.
Apa yang telah dipelajari?
• Keuntungan Cloud IDE: mobilitas, keamanan, fleksibel,
kolaboratif
• Jika workload bertipe stateless maka Spot instance adalah pilihan
yang tepat
• Untuk menyimpan data secara permanen dapat menggunakan
Amazon EFS
17
© 2022, Amazon Web Services, Inc. or its affiliates.
Sumber Rujukan
https://aws.amazon.com/ec2/spot/
Amazon EC2 Spot Instances
18
Spot Instance advisor
https://aws.amazon.com/ec2/spot/instance-advisor/
AWS Cloud9
https://aws.amazon.com/cloud9/
Amazon EFS
https://aws.amazon.com/efs/
© 2022, Amazon Web Services, Inc. or its affiliates.
Sumber Rujukan
sebuah open source project untuk
memudahkan pembuatan Amazon EC2
Spot Instance yang dapat digunakan
sebagai development machine.
https://github.com/rioastamal/spot-dev-machine
spot-dev-machine
19
© 2022, Amazon Web Services, Inc. or its affiliates.
Komunitas
https://t.me/AWSUserGroupID
Telegram
20
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. 21
Rio Astamal
Developer Advocate, Indonesia
Amazon Web Services
rioastamal rioastamal

More Related Content

Similar to Membangun Cloud Development Environment dengan Amazon EC2 Spot Instances dan AWS Cloud9

Introduction on Android programming Tutorial
Introduction on Android programming TutorialIntroduction on Android programming Tutorial
Introduction on Android programming Tutorial
Dimas Prawira
 
Mari mengenal komputasi awan
Mari mengenal komputasi awanMari mengenal komputasi awan
Mari mengenal komputasi awanRafika Malabar
 
Building Internet Server using CentOS 7 and CentOS Web Panel (CWP)
Building Internet Server using CentOS 7 and CentOS Web Panel (CWP)Building Internet Server using CentOS 7 and CentOS Web Panel (CWP)
Building Internet Server using CentOS 7 and CentOS Web Panel (CWP)
I Putu Hariyadi
 
Microsoft Azure - Kelompok 2
Microsoft Azure - Kelompok 2Microsoft Azure - Kelompok 2
Microsoft Azure - Kelompok 2
MiftahulHuda126
 
Widyatama.lecture.applied networking.iv-week-11-cloud.computing
Widyatama.lecture.applied networking.iv-week-11-cloud.computingWidyatama.lecture.applied networking.iv-week-11-cloud.computing
Widyatama.lecture.applied networking.iv-week-11-cloud.computingDjadja Sardjana
 
Cloud computing
Cloud computingCloud computing
Cloud computing
MochamadTriyono
 
Cloud Computing Dengan VMWARE
Cloud Computing Dengan VMWARECloud Computing Dengan VMWARE
Cloud Computing Dengan VMWARE
Hary HarysMatta
 
Menciptakan Sertifikat SSL dengan OpenSSL
Menciptakan Sertifikat SSL dengan OpenSSLMenciptakan Sertifikat SSL dengan OpenSSL
Menciptakan Sertifikat SSL dengan OpenSSLMunir Putra
 
Widyatama.lecture.applied networking.iv-week-10.iptv
Widyatama.lecture.applied networking.iv-week-10.iptvWidyatama.lecture.applied networking.iv-week-10.iptv
Widyatama.lecture.applied networking.iv-week-10.iptvDjadja Sardjana
 
Workshop OSC owncloud
Workshop OSC owncloudWorkshop OSC owncloud
Workshop OSC owncloud
Agus Prasetiyo
 
Cloud Computing.pptx
Cloud Computing.pptxCloud Computing.pptx
Cloud Computing.pptx
ahmad khoiri
 
2 Instalasi dan Practice Server Management (1).pdf
2 Instalasi dan Practice Server Management (1).pdf2 Instalasi dan Practice Server Management (1).pdf
2 Instalasi dan Practice Server Management (1).pdf
arielhudaya66
 
Jenis Layanan Cloud Computing.pptx
Jenis Layanan Cloud Computing.pptxJenis Layanan Cloud Computing.pptx
Jenis Layanan Cloud Computing.pptx
AslamBahris
 
Materi kuliah Pemrograman client server.pdf
Materi kuliah Pemrograman client server.pdfMateri kuliah Pemrograman client server.pdf
Materi kuliah Pemrograman client server.pdf
AisahAisah24
 
2012-11. Installasi web server pada windows server serta aplikasinya
2012-11. Installasi web server pada windows server serta aplikasinya 2012-11. Installasi web server pada windows server serta aplikasinya
2012-11. Installasi web server pada windows server serta aplikasinya
Syiroy Uddin
 
Analis kebutuhan server
Analis kebutuhan serverAnalis kebutuhan server
Analis kebutuhan server
Bayu Dhani
 
Teknologi Aplikasi Web Berbasis Server
Teknologi Aplikasi Web Berbasis ServerTeknologi Aplikasi Web Berbasis Server
Teknologi Aplikasi Web Berbasis Server
SMK Kartika XX-1 Makassar
 
0BB0D0C3-007B-4CFD-BA81-9F3EE1929BDC.pptx
0BB0D0C3-007B-4CFD-BA81-9F3EE1929BDC.pptx0BB0D0C3-007B-4CFD-BA81-9F3EE1929BDC.pptx
0BB0D0C3-007B-4CFD-BA81-9F3EE1929BDC.pptx
ShofiyyurRohman1
 
Pengantar konsep komputasi awan 17050974022
Pengantar konsep komputasi awan   17050974022Pengantar konsep komputasi awan   17050974022
Pengantar konsep komputasi awan 17050974022
Em VQ
 
Kamatera
KamateraKamatera
Kamatera
SarifudinN
 

Similar to Membangun Cloud Development Environment dengan Amazon EC2 Spot Instances dan AWS Cloud9 (20)

Introduction on Android programming Tutorial
Introduction on Android programming TutorialIntroduction on Android programming Tutorial
Introduction on Android programming Tutorial
 
Mari mengenal komputasi awan
Mari mengenal komputasi awanMari mengenal komputasi awan
Mari mengenal komputasi awan
 
Building Internet Server using CentOS 7 and CentOS Web Panel (CWP)
Building Internet Server using CentOS 7 and CentOS Web Panel (CWP)Building Internet Server using CentOS 7 and CentOS Web Panel (CWP)
Building Internet Server using CentOS 7 and CentOS Web Panel (CWP)
 
Microsoft Azure - Kelompok 2
Microsoft Azure - Kelompok 2Microsoft Azure - Kelompok 2
Microsoft Azure - Kelompok 2
 
Widyatama.lecture.applied networking.iv-week-11-cloud.computing
Widyatama.lecture.applied networking.iv-week-11-cloud.computingWidyatama.lecture.applied networking.iv-week-11-cloud.computing
Widyatama.lecture.applied networking.iv-week-11-cloud.computing
 
Cloud computing
Cloud computingCloud computing
Cloud computing
 
Cloud Computing Dengan VMWARE
Cloud Computing Dengan VMWARECloud Computing Dengan VMWARE
Cloud Computing Dengan VMWARE
 
Menciptakan Sertifikat SSL dengan OpenSSL
Menciptakan Sertifikat SSL dengan OpenSSLMenciptakan Sertifikat SSL dengan OpenSSL
Menciptakan Sertifikat SSL dengan OpenSSL
 
Widyatama.lecture.applied networking.iv-week-10.iptv
Widyatama.lecture.applied networking.iv-week-10.iptvWidyatama.lecture.applied networking.iv-week-10.iptv
Widyatama.lecture.applied networking.iv-week-10.iptv
 
Workshop OSC owncloud
Workshop OSC owncloudWorkshop OSC owncloud
Workshop OSC owncloud
 
Cloud Computing.pptx
Cloud Computing.pptxCloud Computing.pptx
Cloud Computing.pptx
 
2 Instalasi dan Practice Server Management (1).pdf
2 Instalasi dan Practice Server Management (1).pdf2 Instalasi dan Practice Server Management (1).pdf
2 Instalasi dan Practice Server Management (1).pdf
 
Jenis Layanan Cloud Computing.pptx
Jenis Layanan Cloud Computing.pptxJenis Layanan Cloud Computing.pptx
Jenis Layanan Cloud Computing.pptx
 
Materi kuliah Pemrograman client server.pdf
Materi kuliah Pemrograman client server.pdfMateri kuliah Pemrograman client server.pdf
Materi kuliah Pemrograman client server.pdf
 
2012-11. Installasi web server pada windows server serta aplikasinya
2012-11. Installasi web server pada windows server serta aplikasinya 2012-11. Installasi web server pada windows server serta aplikasinya
2012-11. Installasi web server pada windows server serta aplikasinya
 
Analis kebutuhan server
Analis kebutuhan serverAnalis kebutuhan server
Analis kebutuhan server
 
Teknologi Aplikasi Web Berbasis Server
Teknologi Aplikasi Web Berbasis ServerTeknologi Aplikasi Web Berbasis Server
Teknologi Aplikasi Web Berbasis Server
 
0BB0D0C3-007B-4CFD-BA81-9F3EE1929BDC.pptx
0BB0D0C3-007B-4CFD-BA81-9F3EE1929BDC.pptx0BB0D0C3-007B-4CFD-BA81-9F3EE1929BDC.pptx
0BB0D0C3-007B-4CFD-BA81-9F3EE1929BDC.pptx
 
Pengantar konsep komputasi awan 17050974022
Pengantar konsep komputasi awan   17050974022Pengantar konsep komputasi awan   17050974022
Pengantar konsep komputasi awan 17050974022
 
Kamatera
KamateraKamatera
Kamatera
 

Membangun Cloud Development Environment dengan Amazon EC2 Spot Instances dan AWS Cloud9

  • 1. © 2022, Amazon Web Services, Inc. or its affiliates. © 2022, Amazon Web Services, Inc. or its affiliates. Membangun Cloud Development Environment dengan Amazon EC2 Spot Instances dan AWS Cloud9 Rio Astamal Developer Advocate, Indonesia Amazon Web Services
  • 2. © 2022, Amazon Web Services, Inc. or its affiliates. Agenda • Mengapa membangun development environment di cloud? • Mengapa menggunakan Amazon EC2 Spot Instances? • Integrasi Amazon EC2 Spot, Amazon EFS dan AWS Cloud9 • Demo 2
  • 3. © 2022, Amazon Web Services, Inc. or its affiliates. © 2022, Amazon Web Services, Inc. or its affiliates. Cloud Integrated Development Environment (IDE) 3
  • 4. © 2022, Amazon Web Services, Inc. or its affiliates. Cukup dengan browser dan internet Kelebihan Cloud IDE Browser Keamanan Tidak perlu khawatir ketika perangkat rusak atau hilang 4 Powerful Kolaborasi Ganti instance atau buat baru dengan mudah Berbagi lingkungan atau kode secara realtime
  • 5. © 2022, Amazon Web Services, Inc. or its affiliates. 1 2 3
  • 6. © 2022, Amazon Web Services, Inc. or its affiliates. © 2022, Amazon Web Services, Inc. or its affiliates. Mengapa Amazon EC2 Spot Instances? 6
  • 7. © 2022, Amazon Web Services, Inc. or its affiliates. Amazon EC2 Spot Instances 7 Lebih murah hingga 90% dari On-Demand Keamanan sesuai standar Infrastruktur yang sama dengan On-Demand Pilihan tipe instance 26+ Region
  • 8. © 2022, Amazon Web Services, Inc. or its affiliates. Apa yang terjadi ketika Amazon EC2 Spot diinterupsi? Interupsi Minimal Alert Otomasi Opsi interupsi § Terminate § Stop/Start § Hibernate Notifikasi interupsi *) untuk beberapa tipe instance tertentu
  • 9. © 2022, Amazon Web Services, Inc. or its affiliates. © 2022, Amazon Web Services, Inc. or its affiliates. AWS Cloud9 sebagai Cloud IDE 9
  • 10. © 2022, Amazon Web Services, Inc. or its affiliates. AWS Cloud9 - Cloud-based IDE - Cukup melalui browser - Mendukung berbagai bahasa pemrograman - Akses terminal ke Amazon EC2 instance/SSH server - Kolaborasi realtime dengan pengguna lain 10
  • 11. © 2022, Amazon Web Services, Inc. or its affiliates. Arsitektur 11 AWS Cloud VPC Availability Zone 1 Availability Zone 3 Availability Zone 2 AWS Cloud9 Client HTTPS SSH SSH Spot Fleet Elastic IP
  • 12. © 2022, Amazon Web Services, Inc. or its affiliates. Alur eksekusi 12 Developer Spot Instance GitHub terraform apply Membuat spot instance Spot instance booting: Mount EFS, dll user-data.sh Instance ready Install Cloud9 SSH Environment AWS Cloud9 Paket Cloud9 terinstal SSH Environment Cloud9 Ready Menggunakan Cloud9
  • 13. © 2022, Amazon Web Services, Inc. or its affiliates. Apa yang dilakukan ketika proses booting? Mount file system Masukkan SSH public key Install aplikasi Asosiasikan Elastic IP 13 1 2 3 4
  • 14. © 2022, Amazon Web Services, Inc. or its affiliates. Amazon EFS Access Point /data $HOME /docker /dockerlib POSIX user 1000:1000 POSIX user 0:0 Contoh 2 Access Point di-mount ke di-mount ke
  • 15. © 2022, Amazon Web Services, Inc. or its affiliates. Instance userdata 15 https://github.com/rioastamal/spot-dev-machine/scripts/user-data.sh
  • 16. © 2022, Amazon Web Services, Inc. or its affiliates. © 2022, Amazon Web Services, Inc. or its affiliates. Demo 16
  • 17. © 2022, Amazon Web Services, Inc. or its affiliates. Apa yang telah dipelajari? • Keuntungan Cloud IDE: mobilitas, keamanan, fleksibel, kolaboratif • Jika workload bertipe stateless maka Spot instance adalah pilihan yang tepat • Untuk menyimpan data secara permanen dapat menggunakan Amazon EFS 17
  • 18. © 2022, Amazon Web Services, Inc. or its affiliates. Sumber Rujukan https://aws.amazon.com/ec2/spot/ Amazon EC2 Spot Instances 18 Spot Instance advisor https://aws.amazon.com/ec2/spot/instance-advisor/ AWS Cloud9 https://aws.amazon.com/cloud9/ Amazon EFS https://aws.amazon.com/efs/
  • 19. © 2022, Amazon Web Services, Inc. or its affiliates. Sumber Rujukan sebuah open source project untuk memudahkan pembuatan Amazon EC2 Spot Instance yang dapat digunakan sebagai development machine. https://github.com/rioastamal/spot-dev-machine spot-dev-machine 19
  • 20. © 2022, Amazon Web Services, Inc. or its affiliates. Komunitas https://t.me/AWSUserGroupID Telegram 20 Facebook https://www.facebook.com/groups/awsindonesia/ Youtube https://www.youtube.com/channel/UCQDEwvZ5zSVMavHX0Aw9ElQ Mari bergabung ke komunitas AWS User Group Indonesia.
  • 21. © 2022, Amazon Web Services, Inc. or its affiliates. Thank you! © 2022, Amazon Web Services, Inc. or its affiliates. 21 Rio Astamal Developer Advocate, Indonesia Amazon Web Services rioastamal rioastamal