Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Devopsdays2024 Infrastructure from Code - Rich Lee

Devopsdays2024 Infrastructure from Code - Rich Lee

Introducing the concept of Infrastructure from Code and related tools at the 2024 Taiwan DevOpsDays.
https://devopsdays.tw/2024/session-page/3016

Avatar for Rich Lee

Rich Lee

July 19, 2024
Tweet

More Decks by Rich Lee

Other Decks in Programming

Transcript

  1. [email protected] RICH0423 @rich04230 李琦 Rich Architect @ Cathay Holdings •

    Cloud Native Development • Microservices • Event-driven
  2. IaC帶來的好處 • 自動化和效率 • 一致性與可重復性 • 版本控制(sing source of truth)

    • 模組化與可移植性 IaC (main.tf) Version Control CI/CD Infra Provision Project-prod Project-sit
  3. IaC面臨的問題 • Configuration Drift • 部分設定是依賴應用需求 • Application Code與IaC版本控管 •

    安全與合規 IaC (main.tf) Version Control CI/CD Infra Provision Project-prod Project-sit
  4. About Application Architecture Resource Hierarchy - Layered Application Topology- Interwoven

    雲端自動化重點不再於如何建置服務,而是如何 關聯與整合應用服務
  5. Infrastructure from Application Code Instead of writing low-level, control-plane specific

    instructions, IfC infers requirements from application logic and provisions the optimal cloud infrastructure automatically.
  6. Infrastructure from Application Code Instead of writing low-level, control-plane specific

    instructions, IfC infers requirements from application logic and provisions the optimal cloud infrastructure automatically.
  7. Klotho develop for local, deploy for the cloud • Klotho

    is an open source tool that transforms plain code into cloud native code. • is based only on in-code annotation with minimal modification to your code https://klo.dev/
  8. Winglang Run locally or deploy to any cloud Use any

    cloud service and compile to multiple cloud providers and provisioning engines • Cloud-agnostic SDK for maximum portability • Customizable infrastructure through plugins • Supports any provider in the Terraform ecosystem
  9. runs once, at compile time, to generate the infrastructure configuration

    of your cloud application runs at runtime to handle your application logic.
  10. Winglang – AWS Provision AWS Lambda Amazon S3 bucket AWS

    IAM Policy AWS IAM Role CloudWatch upload file logs Execution role > wing compile --platform tf-aws
  11. Winglang – GCP Provision > wing compile --platform tf-gcp Cloud

    Functions Cloud Storage Service Account Custom Role upload file connect Service Account role binding