Skip to content

Commit

Permalink
v1.17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dflook committed Oct 4, 2021
1 parent 5abc49d commit aecfe55
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 30 deletions.
62 changes: 33 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,35 +74,7 @@ These input values must be the same as any `terraform-plan` for the same configu
```
Variables set here override any given in `var_file`s.

- Type: string
- Optional

* ~~`var`~~

> :warning: **Deprecated**: Use the `variables` input instead.

Comma separated list of terraform vars to set.

This is deprecated due to the following limitations:
- Only primitive types can be set with `var` - number, bool and string.
- String values may not contain a comma.
- Values set with `var` will be overridden by values contained in `var_file`s

You can change from `var` to `variables` by putting each variable on a separate line and ensuring each string value is quoted.

For example:
```yaml
with:
var: instance_type=m5.xlarge,nat_type=instance
```
Becomes:
```yaml
with:
variables: |
instance_type="m5.xlarge"
nat_type="instance"
```
This **can** be used with remote backends such as Terraform Cloud/Enterprise, with variables set in the remote workspace having precedence.

- Type: string
- Optional
Expand All @@ -119,6 +91,8 @@ These input values must be the same as any `terraform-plan` for the same configu
prod.tfvars
```

This **can** be used with remote backends such as Terraform Cloud/Enterprise, with variables set in the remote workspace having precedence.

- Type: string
- Optional

Expand Down Expand Up @@ -181,6 +155,36 @@ These input values must be the same as any `terraform-plan` for the same configu
- Optional
- Default: false

* ~~`var`~~

> :warning: **Deprecated**: Use the `variables` input instead.

Comma separated list of terraform vars to set.

This is deprecated due to the following limitations:
- Only primitive types can be set with `var` - number, bool and string.
- String values may not contain a comma.
- Values set with `var` will be overridden by values contained in `var_file`s
- Does not work with the `remote` backend

You can change from `var` to `variables` by putting each variable on a separate line and ensuring each string value is quoted.

For example:
```yaml
with:
var: instance_type=m5.xlarge,nat_type=instance
```
Becomes:
```yaml
with:
variables: |
instance_type="m5.xlarge"
nat_type="instance"
```

- Type: string
- Optional

## Outputs

* Terraform Outputs
Expand Down
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ inputs:

runs:
using: docker
image: docker://danielflook/terraform-github-actions@sha256:987dcf3c288a803f37a3fb177d95d9d549d37beff8a5bd23c26390e4bae439e2
image: docker://danielflook/terraform-github-actions@sha256:07cd443fbd4fc64bddf6901cfb1e6daff9f4b3935e68324bf40d395fb2ad6a7f
entrypoint: /entrypoints/apply.sh

branding:
Expand Down

0 comments on commit aecfe55

Please sign in to comment.