Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rienafairefr/339ba31e7e30d228263c22872e1b8036 to your computer and use it in GitHub Desktop.
Save rienafairefr/339ba31e7e30d228263c22872e1b8036 to your computer and use it in GitHub Desktop.
$ terraform plan
Refreshing Terraform state in-memory prior to plan...
The refreshed state will be used to calculate this plan, but will not be
persisted to local or remote state storage.
digitalocean_loadbalancer.public: Refreshing state... [id=41e25e59-2591-4d7e-b09f-9c8baaf0b37a]
------------------------------------------------------------------------
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# digitalocean_loadbalancer.public will be updated in-place
~ resource "digitalocean_loadbalancer" "public" {
algorithm = "round_robin"
droplet_ids = []
enable_proxy_protocol = false
id = "41e25e59-2591-4d7e-b09f-9c8baaf0b37a"
ip = "206.189.242.81"
name = "loadbalancer-1"
redirect_http_to_https = false
region = "ams3"
status = "active"
urn = "do:loadbalancer:41e25e59-2591-4d7e-b09f-9c8baaf0b37a"
~ forwarding_rule {
+ certificate_id = "b178c4bd-709f-4340-b363-062c82da9ff8"
~ entry_port = 80 -> 443
~ entry_protocol = "http" -> "https"
target_port = 80
target_protocol = "http"
tls_passthrough = false
}
~ forwarding_rule {
- certificate_id = "b178c4bd-709f-4340-b363-062c82da9ff8" -> null
~ entry_port = 443 -> 80
~ entry_protocol = "https" -> "http"
target_port = 80
target_protocol = "http"
tls_passthrough = false
}
healthcheck {
check_interval_seconds = 10
healthy_threshold = 5
path = "/"
port = 80
protocol = "http"
response_timeout_seconds = 5
unhealthy_threshold = 3
}
sticky_sessions {
cookie_ttl_seconds = 0
type = "none"
}
}
Plan: 0 to add, 1 to change, 0 to destroy.
------------------------------------------------------------------------
Note: You didn't specify an "-out" parameter to save this plan, so Terraform
can't guarantee that exactly these actions will be performed if
"terraform apply" is subsequently run.
$ terraform apply
digitalocean_loadbalancer.public: Refreshing state... [id=41e25e59-2591-4d7e-b09f-9c8baaf0b37a]
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# digitalocean_loadbalancer.public will be updated in-place
~ resource "digitalocean_loadbalancer" "public" {
algorithm = "round_robin"
droplet_ids = []
enable_proxy_protocol = false
id = "41e25e59-2591-4d7e-b09f-9c8baaf0b37a"
ip = "206.189.242.81"
name = "loadbalancer-1"
redirect_http_to_https = false
region = "ams3"
status = "active"
urn = "do:loadbalancer:41e25e59-2591-4d7e-b09f-9c8baaf0b37a"
~ forwarding_rule {
+ certificate_id = "b178c4bd-709f-4340-b363-062c82da9ff8"
~ entry_port = 80 -> 443
~ entry_protocol = "http" -> "https"
target_port = 80
target_protocol = "http"
tls_passthrough = false
}
~ forwarding_rule {
- certificate_id = "b178c4bd-709f-4340-b363-062c82da9ff8" -> null
~ entry_port = 443 -> 80
~ entry_protocol = "https" -> "http"
target_port = 80
target_protocol = "http"
tls_passthrough = false
}
healthcheck {
check_interval_seconds = 10
healthy_threshold = 5
path = "/"
port = 80
protocol = "http"
response_timeout_seconds = 5
unhealthy_threshold = 3
}
sticky_sessions {
cookie_ttl_seconds = 0
type = "none"
}
}
Plan: 0 to add, 1 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
digitalocean_loadbalancer.public: Modifying... [id=41e25e59-2591-4d7e-b09f-9c8baaf0b37a]
digitalocean_loadbalancer.public: Modifications complete after 1s [id=41e25e59-2591-4d7e-b09f-9c8baaf0b37a]
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
$ terraform apply
digitalocean_loadbalancer.public: Refreshing state... [id=41e25e59-2591-4d7e-b09f-9c8baaf0b37a]
An execution plan has been generated and is shown below.
Resource actions are indicated with the following symbols:
~ update in-place
Terraform will perform the following actions:
# digitalocean_loadbalancer.public will be updated in-place
~ resource "digitalocean_loadbalancer" "public" {
algorithm = "round_robin"
droplet_ids = []
enable_proxy_protocol = false
id = "41e25e59-2591-4d7e-b09f-9c8baaf0b37a"
ip = "206.189.242.81"
name = "loadbalancer-1"
redirect_http_to_https = false
region = "ams3"
status = "active"
urn = "do:loadbalancer:41e25e59-2591-4d7e-b09f-9c8baaf0b37a"
~ forwarding_rule {
+ certificate_id = "b178c4bd-709f-4340-b363-062c82da9ff8"
~ entry_port = 80 -> 443
~ entry_protocol = "http" -> "https"
target_port = 80
target_protocol = "http"
tls_passthrough = false
}
~ forwarding_rule {
- certificate_id = "b178c4bd-709f-4340-b363-062c82da9ff8" -> null
~ entry_port = 443 -> 80
~ entry_protocol = "https" -> "http"
target_port = 80
target_protocol = "http"
tls_passthrough = false
}
healthcheck {
check_interval_seconds = 10
healthy_threshold = 5
path = "/"
port = 80
protocol = "http"
response_timeout_seconds = 5
unhealthy_threshold = 3
}
sticky_sessions {
cookie_ttl_seconds = 0
type = "none"
}
}
Plan: 0 to add, 1 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
digitalocean_loadbalancer.public: Modifying... [id=41e25e59-2591-4d7e-b09f-9c8baaf0b37a]
digitalocean_loadbalancer.public: Modifications complete after 1s [id=41e25e59-2591-4d7e-b09f-9c8baaf0b37a]
Apply complete! Resources: 0 added, 1 changed, 0 destroyed.
(whisbee-infra)matthieu@dashbox:~/Sync/whisbee-infra/repro/tf$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment