Terraform `autoApply` key not recognized.
# 🌱|help-and-getting-started
f
This example from the documentation does not validate:
Copy code
kind: Deploy
type: terraform
name: tf
autoApply: true
The exception thrown is:
Copy code
Error validating terraform Deploy pubsub-tf 'pubsub-tf' (pubsub-utility):

/Users/jackhall/projects/kraken/pubsub-utility/garden.yaml:5
...
4  | name: pubsub-tf
5  | autoApply: true
----------------^
key "autoApply" is not allowed at path [autoApply]. Available keys: apiVersion, type, name, description, internal, source, dependencies, disabled, environments, include, exclude, variables, varfiles, spec, build, kind, timeout)
b
Hey @fresh-yak-35965 Thanks a lot for reaching out! The correct config looks like this:
Copy code
kind: Deploy
type: terraform
name: tf
spec:
  autoApply: true
Thanks to your message, we managed to find a place in our docs, where you might have copied this from: https://docs.garden.io/using-garden-with/terraform/actions This was a mistake, and is being corrected as we speak ✅ See also: https://github.com/garden-io/garden/pull/7293/files Hope this helps and works for you