Skip to content

Commit c7972a0

Browse files
committed
chore: allow to provision a new server without hardcoded and outdated Ubuntu version
[skip ci]
1 parent 713690d commit c7972a0

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

infra/terraform/my-stamps.tf

+5-2
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,14 @@ provider "digitalocean" {
2525

2626
# Droplet docs: https://registry.terraform.io/providers/digitalocean/digitalocean/2.28.1/docs/resources/droplet.html
2727
resource "digitalocean_droplet" "web" {
28-
# "ubuntu-16-04-x64" resolves into Ubuntu 16.04.6 while our server is based on Ubuntu 16.04.1
29-
image = "18572320"
28+
image = "ubuntu-24-04-x64"
3029
name = "my-stamps.ru"
3130
region = "fra1"
3231
size = "s-1vcpu-1gb"
32+
# https://developer.hashicorp.com/terraform/language/meta-arguments/lifecycle
33+
lifecycle {
34+
ignore_changes = [image]
35+
}
3336
}
3437

3538
# Domain docs: https://registry.terraform.io/providers/digitalocean/digitalocean/2.28.1/docs/resources/domain.html

0 commit comments

Comments
 (0)