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

Azure ユーザに捧げる Terraform Cloud 101 / Terraform Cloud 101 for Azure Users

ののし
February 02, 2024
350

Azure ユーザに捧げる Terraform Cloud 101 / Terraform Cloud 101 for Azure Users

ののし

February 02, 2024
Tweet

More Decks by ののし

Transcript

  1. Free 500 Free/Standard Plus Terraform Cloud 2023/5 Terraform Cloud updates

    plans with an enhanced Free tier and more flexibility
  2. Organization Project Workspace Project Workspace VCS Workspace Workspace Organization /

    Project / Workspace Organization Project Workspace Project Workspace Workspace
  3. Version Control Workflow GitHub Azure DevOps CLI-Driven Workflow terraform API-Driven

    Workflow Terraform Cloud API Terraform Cloud Workflow Version Control Workflow
  4. Terraform Cloud Dynamic Provider Credentials OIDC Terraform Cloud Terraform Cloud

    ID Key Value ARM_TENANT_ID Microsoft Entra ID ARM_SUBSCRIPTION_ID ID TFC_AZURE_RUN_CLIENT_ID ID TFC_AZURE_PROVIDER_AUTH true
  5. Workspace 10 ID 20 Workspace 2 ID organization:<Org >:project:<Project >:workspace:<workspace

    >:run_phase:plan organization:<Org >:project:<Project >:workspace:<workspace >:run_phase:apply Dynamic Provider Credentials
  6. Terraform Sentinel Open Policy Agent (OPA) Terraform Registry Sentinel Policy

    as Code Free https://registry.terraform.io/browse/policies
  7. Terraform Sentinel Azure VM, VMSS, App Service Plan, SQL Database,

    Cosmos DB, Managed Disk, Firewall, etc. Cost Estimation Free
  8. Local Terraform Cloud main .tf Plan Apply dev .tf .tf

    Cost Estimation Policy check Terraform Terraform Private Registry
  9. check check Terraform v1.5.0 Plan/Apply Terraform Registry AzureRM check App

    Service 30 Continuous Validation Plus check precondition postcondition Apply Apply