Difference between revisions of "Terraform provisioner: local-exec"
Jump to navigation
Jump to search
Tags: Mobile web edit, Mobile edit |
Tags: Mobile web edit, Mobile edit |
||
Line 13: | Line 13: | ||
== Related == | == Related == | ||
* <code>[[Terraform provisioner: remote-exec]]</code> | * <code>[[Terraform provisioner: remote-exec]]</code> | ||
− | * <code>[[os.system]]</code> | + | * [[Python]]: <code>[[os.system]]</code> |
* [[Terraform provider]] | * [[Terraform provider]] | ||
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
See also
Advertising: