Skip to content
This repository has been archived by the owner on May 8, 2023. It is now read-only.

speee/terraform-plan-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

speee/terraform-plan-action

The speee/terraform-plan-action action is a CI action that runs terraform plan beside your pull requests and gives result summaries.

Usage

- uses: speee/terraform-plan-action@v1
  with:
    working-directory: terraform/dir/

Inputs

This action supports the following inputs.

working-directory

Required. Relative path from repository root to your terraform root module. Default is ..

enable-lock

Optional. Flag to determine whether state lock will be enabled. Default is true.

Outputs

plan-stdout

stdout of plan execution.

plan-stderr

stderr of plan execution.

plan-result

stdout of plan execution without logs during plan.

resources-to-be-replaced

JSON strings of resources to be replaced.

An example output format is like below.

["aws_iam_user.foo","aws_iam_user.bar"]

resources-to-be-created

JSON strings of resources to be created. An example output format is same as resources-to-be-created.

resources-to-be-deleted

JSON strings of resources to be deleted. An example output format is same as resources-to-be-created.

resources-to-be-updated

JSON strings of resources to be updated. An example output format is same as resources-to-be-created.

plan-has-changes

A flag that indicates whether the plan has changes.