Skip to content

Terraform All-In-One

Actions

About

Apply Terraform Configuration
v1.2.0
Latest
Star (2)

terraform-all-in-one

Release

Run common Terraform commands in a single GitHub action

Description

Apply Terraform Configuration

Inputs

name description required default
directory

The directory where the Terraform configuration files are located

false .
test-directory

The directory where the Terraform test configuration files are located

false .
terraform-version

The version of Terraform to use

false latest
plan-file

The path to the plan file

false plan.json
common-args

The arguments to pass to all terraform commands

false ""
init-args

The arguments to pass to terraform init

false ""
validate-args

The arguments to pass to terraform validate

false ""
fmt-args

The arguments to pass to terraform fmt

false -check
test-args

The arguments to pass to terraform test

false ""
plan-args

The arguments to pass to terraform plan

false ""
apply-args

The arguments to pass to terraform apply

false ""
destroy-args

The arguments to pass to terraform destroy

false ""
setup

Whether to setup

false true
init

Whether to init

false true
format

Whether to format

false true
validate

Whether to validate

false true
test

Whether to test

false false
plan

Whether to plan

false true
apply

WHether to apply

false false
destroy

Whether to destroy

false false

Outputs

name description
output-json

JSON formatted terraform output

Runs

This action is a composite action.

Usage

- uses: infinite-automations/terraform-all-in-one@0.0.0
  with:
    directory:
    # The directory where the Terraform configuration files are located
    #
    # Required: false
    # Default: .

    test-directory:
    # The directory where the Terraform test configuration files are located
    #
    # Required: false
    # Default: .

    terraform-version:
    # The version of Terraform to use
    #
    # Required: false
    # Default: latest

    plan-file:
    # The path to the plan file
    #
    # Required: false
    # Default: plan.json

    common-args:
    # The arguments to pass to all terraform commands
    #
    # Required: false
    # Default: ""

    init-args:
    # The arguments to pass to terraform init
    #
    # Required: false
    # Default: ""

    validate-args:
    # The arguments to pass to terraform validate
    #
    # Required: false
    # Default: ""

    fmt-args:
    # The arguments to pass to terraform fmt
    #
    # Required: false
    # Default: -check

    test-args:
    # The arguments to pass to terraform test
    #
    # Required: false
    # Default: ""

    plan-args:
    # The arguments to pass to terraform plan
    #
    # Required: false
    # Default: ""

    apply-args:
    # The arguments to pass to terraform apply
    #
    # Required: false
    # Default: ""

    destroy-args:
    # The arguments to pass to terraform destroy
    #
    # Required: false
    # Default: ""

    setup:
    # Whether to setup
    #
    # Required: false
    # Default: true

    init:
    # Whether to init
    #
    # Required: false
    # Default: true

    format:
    # Whether to format
    #
    # Required: false
    # Default: true

    validate:
    # Whether to validate
    #
    # Required: false
    # Default: true

    test:
    # Whether to test
    #
    # Required: false
    # Default: false

    plan:
    # Whether to plan
    #
    # Required: false
    # Default: true

    apply:
    # WHether to apply
    #
    # Required: false
    # Default: false

    destroy:
    # Whether to destroy
    #
    # Required: false
    # Default: false

Changelog

See the Changelog file for details

Terraform All-In-One is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Apply Terraform Configuration
v1.2.0
Latest

Terraform All-In-One is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.