Difference between revisions of "Terraform provisioner: local-exec"
Jump to navigation
Jump to search
(Created page with "* https://www.terraform.io/language/resources/provisioners/local-exec == See also == * {{Terraform}} Category:Terraform") |
Tags: Mobile web edit, Mobile edit |
||
(12 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
* https://www.terraform.io/language/resources/provisioners/local-exec | * https://www.terraform.io/language/resources/provisioners/local-exec | ||
+ | [[provisioner]] "local-exec" { | ||
+ | command = "echo your_text_goes_here" | ||
+ | } | ||
+ | {{local-exec mysql ex}} | ||
+ | |||
+ | {{Provisioner example}} | ||
+ | |||
+ | == Related == | ||
+ | * <code>[[Terraform provisioner: remote-exec]]</code> | ||
+ | * [[Python]]: <code>[[os.system]]</code> | ||
+ | * [[Terraform provider]] | ||
== See also == | == See also == | ||
− | * {{ | + | * {{tf provisioners}} |
[[Category:Terraform]] | [[Category:Terraform]] |
Latest revision as of 11:58, 31 March 2023
provisioner "local-exec" { command = "echo your_text_goes_here" }
provisioner "local-exec" { command = "mysql --host=${self.address} --port=${self.port} --user=${self.username} --password=${self.password} < ./schema.sql" } }
resource "aws_instance" "your_web" { # ... provisioner "local-exec" { command = "echo The server's IP address is ${self.private_ip}" } }
Related[edit]
See also[edit]
Advertising: