mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Add PowerShell note to file provisioner page
This commit is contained in:
parent
20e9d8e28c
commit
881fbd1971
@ -8,8 +8,8 @@ description: >-
|
||||
|
||||
# File Provisioner
|
||||
|
||||
The `file` provisioner is used to copy files or directories from the machine
|
||||
executing Terraform to the newly created resource. The `file` provisioner
|
||||
The `file` provisioner copies files or directories from the machine
|
||||
running Terraform to the newly created resource. The `file` provisioner
|
||||
supports both `ssh` and `winrm` type [connections](/language/resources/provisioners/connection).
|
||||
|
||||
~> **Important:** Use provisioners as a last resort. There are better alternatives for most situations. Refer to
|
||||
@ -47,6 +47,8 @@ resource "aws_instance" "web" {
|
||||
}
|
||||
```
|
||||
|
||||
-> **Note:** When the `file` provisioner is talking to a Windows system over SSH, you must configure OpenSSH to run the commands with `cmd.exe` and not by PowerShell.
|
||||
|
||||
## Argument Reference
|
||||
|
||||
The following arguments are supported:
|
||||
|
Loading…
Reference in New Issue
Block a user