We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e481959 commit 6b4d3edCopy full SHA for 6b4d3ed
main.tf
@@ -20,6 +20,10 @@ resource "aws_lightsail_instance" "this" {
20
tailscale_hostname = "${var.lightsail_region}-${formatdate("YYYYMMDDhhmmss", "${time_static.this.rfc3339}")}"
21
})
22
ip_address_type = "dualstack"
23
+
24
+ lifecycle {
25
+ create_before_destroy = true
26
+ }
27
}
28
29
resource "aws_lightsail_instance_public_ports" "this" {
@@ -37,6 +41,12 @@ resource "aws_lightsail_instance_public_ports" "this" {
37
41
from_port = 41641
38
42
to_port = 41641
39
43
44
45
46
+ replace_triggered_by = [
47
+ aws_lightsail_instance.this
48
+ ]
49
40
50
51
52
resource "tailscale_tailnet_key" "this" {
0 commit comments