You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terraform/internal/configs/testdata/valid-files/actions.tf

36 lines
635 B

action "provider_reboot" "powercycle" {
config {
method = "biggest_hammer" // drop it in the ocean, i presume
}
}
resource "aws_security_group" "firewall" {
lifecycle {
create_before_destroy = true
prevent_destroy = true
ignore_changes = [
description,
]
action_trigger {
events = [after_create, after_update]
actions = [action.provider_reboot.powercycle]
}
}
connection {
host = "127.0.0.1"
}
provisioner "local-exec" {
command = "echo hello"
connection {
host = "10.1.2.1"
}
}
provisioner "local-exec" {
command = "echo hello"
}
}