Skip to content

ams0/terraform-apply-for-azure-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terraform Apply for Azure Action

This Action allows you to apply Terraform manifests to Azure. It expects an Azure blob storage (to be specified in your manifests like the below) to store the shared state.

terraform {
  backend "azurerm" {
    storage_account_name = "storage_account_name"
    container_name       = "storage_container_name"
  }
}

Parameters

Parameter Type Default Description
arm_client_id string Azure Service Principal client_id
arm_client_secret string Azure Service Principal client_secret
arm_subscription_id string Azure subscription
arm_tenant_id string Azure Tenant id
arm_access_key string Azure Storage access key
variables string "" Comma-separated string of Terraform variables
path string . Path to Terraform directory, defaults to the working directory

Usage

jobs:
  provisioning:
    runs-on: ubuntu-latest
    steps:
    - uses: ams0/terraform-apply-for-azure-action@v1
      with:
        arm_client_id: ${{ secrets.ARM_CLIENT_ID }}
        arm_client_secret: ${{ secrets.ARM_CLIENT_SECRET }}
        arm_subscription_id: ${{ secrets.ARM_SUBSCRIPTION_ID }}
        arm_tenant_id: ${{ secrets.ARM_TENANT_ID }}
        variables: var=${{ rg_name=aks }}
        path: terraform/dev

License

The MIT License (MIT)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published