• Docs Home
  • Get Started
    • Install Porter
    • QuickStart
    • QuickStart - Parameters
    • QuickStart - Credentials
    • Examples
  • Use Porter
    • View logs
  • Contribute
    • New Contributor Guide
    • Contributing Tutorial
    • Contributing Guide
    • Make a Proposal
  • Porter Commands
    • Overview
    • Bundles
    • Credentials
    • Parameters
    • Installations
    • Mixins
    • Plugins
  • Mixins
    • Overview
    • Develop Mixins
    • Distribute Mixins
    • Mixin Architecture
  • Plugins
    • Overview
    • Types
  • Author Bundles
    • Overview
    • Custom Dockerfile
    • Mixins
    • Dependencies
    • Templates
  • Distribute Bundles
    • Overview
    • Copy Bundles
    • Archive Bundles
    • Compatible Registries
  • Examine Bundles
    • Overview
    • Inspect Bundle Images
  • Porter Architecture
    • Overview
    • CNAB
    • Buildtime
    • Runtime
    • Invocation Images
    • Credentials
    • Parameters
  • FAQ
  • Troubleshooting
  • Best Practices
  • References
    • CNAB Spec
    • Configuration
    • Docker Images
    • Logos
    • Porter Go Library
    • Project Short Links
    • Version Strategy
Contribute to Docs

Porter | Back to home

    Version: v0.38 | v1.0.0
  • Get Started
    • Install Porter
    • QuickStart
    • QuickStart - Parameters
    • QuickStart - Credentials
    • Examples
  • Use Porter
    • View logs
  • Contribute
    • New Contributor Guide
    • Contributing Tutorial
    • Contributing Guide
    • Make a Proposal
  • Porter Commands
    • Overview
    • Bundles
    • Credentials
    • Parameters
    • Installations
    • Mixins
    • Plugins
  • Mixins
    • Overview
    • Develop Mixins
    • Distribute Mixins
    • Mixin Architecture
  • Plugins
    • Overview
    • Types
  • Author Bundles
    • Overview
    • Custom Dockerfile
    • Mixins
    • Dependencies
    • Templates
  • Distribute Bundles
    • Overview
    • Copy Bundles
    • Archive Bundles
    • Compatible Registries
  • Examine Bundles
    • Overview
    • Inspect Bundle Images
  • Porter Architecture
    • Overview
    • CNAB
    • Buildtime
    • Runtime
    • Invocation Images
    • Credentials
    • Parameters
  • FAQ
  • Troubleshooting
  • Best Practices
  • References
    • CNAB Spec
    • Configuration
    • Docker Images
    • Logos
    • Porter Go Library
    • Project Short Links
    • Version Strategy
Contribute to Docs

Porter | Back to home

  • Install
  • QuickStart
  • Blog
  • Community
  • Learning
  • Docs
  • Github
 

terraform mixin

Execute Terraform files using the terraform CLI

Source: https://github.com/getporter/terraform-mixin

Install or Upgrade

porter mixin install terraform

Examples

install:
  - terraform:
      description: "Install Azure Key Vault"
      input: false
      backendConfig:
        key: "{{ bundle.name }}.tfstate"
        storage_account_name: "{{ bundle.credentials.backend_storage_account }}"
        container_name: "{{ bundle.credentials.backend_storage_container }}"
        access_key: "{{ bundle.credentials.backend_storage_access_key }}"
      outputs:
- name: vault_uri