- uses: labrats-work/action-terraform@main
with:
chdir: /tests/default
varsFile: default.tfvars
action: plan
env:
keyfile: ${ secrets.sshkey }| Variable | Type | Required | Default |
|---|---|---|---|
| chdir | input | false | |
| init | input | false | yes |
| varsFile | input | false | |
| planFile | input | true | tfplan |
| backendConfigFile | input | false | |
| verb | input | false | apply |
| sshKey | env | false |
| Variable | Type |
|---|---|
| terraformVersion | string |
- Ability to specify working directory
- Ability to optionally run terraform init
- Ability to exec and output terraform verbs ['plan', 'apply', 'destroy']
- Ability to specify vars file
- Ability to specify and load sshkey
- Ability to specify backend config file
- Outputs the terraform version
- Tests to validate passing scenarios
- Tests to validate failing scenarios