-
-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
testing dev data on dev deployments #599
base: main
Are you sure you want to change the base?
Conversation
Terraform plan in terraform/dev in the hushline-dev-dev-data workspace With variablesbranch = "dev-data"
name = "dev-dev-data" Plan: 3 to add, 0 to change, 0 to destroy. Changes to Outputs.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# digitalocean_project.hush_line_dev will be created
+ resource "digitalocean_project" "hush_line_dev" {
+ created_at = (known after apply)
+ description = "Development instance based on the dev-data branch"
+ environment = "Development"
+ id = (known after apply)
+ is_default = false
+ name = "dev-dev-data"
+ owner_id = (known after apply)
+ owner_uuid = (known after apply)
+ purpose = "Web Application"
+ resources = (known after apply)
+ updated_at = (known after apply)
}
# module.app.digitalocean_app.app will be created
+ resource "digitalocean_app" "app" {
+ active_deployment_id = (known after apply)
+ created_at = (known after apply)
+ default_ingress = (known after apply)
+ id = (known after apply)
+ live_url = (known after apply)
+ project_id = (known after apply)
+ updated_at = (known after apply)
+ urn = (known after apply)
+ dedicated_ips (known after apply)
+ spec {
+ domains = (known after apply)
+ features = [
+ "buildpack-stack=ubuntu-22",
]
+ name = "dev-dev-data"
+ region = "sfo"
+ alert {
+ disabled = false
+ rule = "DEPLOYMENT_FAILED"
}
+ domain (known after apply)
+ ingress (known after apply)
+ service {
+ dockerfile_path = "Dockerfile"
+ http_port = 8080
+ instance_count = 1
+ instance_size_slug = "apps-s-1vcpu-0.5gb"
+ internal_ports = (known after apply)
+ name = "app"
+ run_command = (known after apply)
+ github {
+ branch = "dev-data"
+ deploy_on_push = true
+ repo = "scidsg/hushline"
}
+ health_check {
+ http_path = "/health.json"
}
+ routes (known after apply)
}
+ service {
+ http_port = (known after apply)
+ instance_count = 1
+ instance_size_slug = "apps-s-1vcpu-0.5gb"
+ internal_ports = [
+ 5432,
]
+ name = "db"
+ run_command = (known after apply)
+ image {
+ registry = "library"
+ registry_type = "DOCKER_HUB"
+ repository = "postgres"
+ tag = "16.4-alpine3.20"
+ deploy_on_push (known after apply)
}
+ routes (known after apply)
}
+ worker {
+ dockerfile_path = "./Dockerfile"
+ instance_count = 1
+ instance_size_slug = "apps-s-1vcpu-0.5gb"
+ name = "dev-data"
+ run_command = "./dev_data.sh"
+ github {
+ branch = "dev-data"
+ deploy_on_push = true
+ repo = "scidsg/hushline"
}
}
}
}
# module.app.random_password.local_db_password will be created
+ resource "random_password" "local_db_password" {
+ bcrypt_hash = (sensitive value)
+ id = (known after apply)
+ length = 16
+ lower = true
+ min_lower = 0
+ min_numeric = 0
+ min_special = 0
+ min_upper = 0
+ number = true
+ numeric = true
+ override_special = "!#$%&*()-_=+[]{}<>:?"
+ result = (sensitive value)
+ special = true
+ upper = true
}
Plan: 3 to add, 0 to change, 0 to destroy.
Changes to Outputs:
+ app_live_url = (known after apply) ❌ Error applying plan in Deploy/Destroy Branch Dev Environment #287 |
Terraform plan in terraform/dev in the hushline-dev-dev-data workspace With variablesbranch = "dev-data"
name = "dev-dev-data" Plan: 1 to add, 0 to change, 1 to destroy. Changes to Outputs.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
-/+ destroy and then create replacement
Terraform will perform the following actions:
# module.app.digitalocean_app.app must be replaced
-/+ resource "digitalocean_app" "app" {
+ active_deployment_id = (known after apply)
!~ created_at = "2024-09-19 15:25:40 +0000 UTC" -> (known after apply)
+ default_ingress = (known after apply)
!~ id = "************************************" -> (known after apply)
+ live_url = (known after apply)
!~ updated_at = "2024-09-19 15:34:14 +0000 UTC" -> (known after apply)
!~ urn = "do:app:897f2638-9530-401a-b52e-7cf92a467fa5" -> (known after apply)
# (1 unchanged attribute hidden)
!~ dedicated_ips (known after apply)
!~ spec {
!~ domains = [] -> (known after apply)
name = "dev-dev-data"
# (2 unchanged attributes hidden)
!~ domain (known after apply)
!~ ingress (known after apply)
- ingress {
- rule {
- component {
- name = "app" -> null
- preserve_path_prefix = false -> null
# (1 unchanged attribute hidden)
}
- match {
- path {
- prefix = "/" -> null
}
}
}
}
!~ service {
!~ internal_ports = [] -> (known after apply)
name = "app"
+ run_command = (known after apply)
# (7 unchanged attributes hidden)
!~ health_check {
- failure_threshold = 0 -> null
- initial_delay_seconds = 0 -> null
- period_seconds = 0 -> null
- port = 0 -> null
- success_threshold = 0 -> null
- timeout_seconds = 0 -> null
# (1 unchanged attribute hidden)
}
!~ routes (known after apply)
# (1 unchanged block hidden)
}
!~ service {
!~ http_port = 0 -> (known after apply)
name = "db"
+ run_command = (known after apply)
# (7 unchanged attributes hidden)
!~ image {
- registry_credentials = (sensitive value) -> null
# (4 unchanged attributes hidden)
!~ deploy_on_push (known after apply)
}
!~ routes (known after apply)
}
!~ worker {
name = "dev-data"
!~ run_command = "./dev_data.sh" -> "./scripts/dev_data.sh"
# (6 unchanged attributes hidden)
# (1 unchanged block hidden)
}
# (1 unchanged block hidden)
}
}
Plan: 1 to add, 0 to change, 1 to destroy.
Changes to Outputs:
+ app_live_url = (known after apply) ❌ Error applying plan in Deploy/Destroy Branch Dev Environment #287 |
Terraform plan in terraform/dev in the hushline-dev-dev-data workspace With variablesbranch = "dev-data"
name = "dev-dev-data" Plan: 1 to add, 0 to change, 1 to destroy. Changes to Outputs.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
-/+ destroy and then create replacement
Terraform will perform the following actions:
# module.app.digitalocean_app.app must be replaced
-/+ resource "digitalocean_app" "app" {
+ active_deployment_id = (known after apply)
!~ created_at = "2024-09-19 16:43:02 +0000 UTC" -> (known after apply)
+ default_ingress = (known after apply)
!~ id = "************************************" -> (known after apply)
+ live_url = (known after apply)
!~ updated_at = "2024-09-19 16:46:44 +0000 UTC" -> (known after apply)
!~ urn = "do:app:be3b8038-4905-4ada-abaf-b93b4413a045" -> (known after apply)
# (1 unchanged attribute hidden)
!~ dedicated_ips (known after apply)
!~ spec {
!~ domains = [] -> (known after apply)
name = "dev-dev-data"
# (2 unchanged attributes hidden)
!~ domain (known after apply)
!~ ingress (known after apply)
- ingress {
- rule {
- component {
- name = "app" -> null
- preserve_path_prefix = false -> null
# (1 unchanged attribute hidden)
}
- match {
- path {
- prefix = "/" -> null
}
}
}
}
!~ service {
!~ internal_ports = [] -> (known after apply)
name = "app"
+ run_command = (known after apply)
# (7 unchanged attributes hidden)
!~ health_check {
- failure_threshold = 0 -> null
- initial_delay_seconds = 0 -> null
- period_seconds = 0 -> null
- port = 0 -> null
- success_threshold = 0 -> null
- timeout_seconds = 0 -> null
# (1 unchanged attribute hidden)
}
!~ routes (known after apply)
# (1 unchanged block hidden)
}
!~ service {
!~ http_port = 0 -> (known after apply)
name = "db"
+ run_command = (known after apply)
# (7 unchanged attributes hidden)
!~ image {
- registry_credentials = (sensitive value) -> null
# (4 unchanged attributes hidden)
!~ deploy_on_push (known after apply)
}
!~ routes (known after apply)
}
!~ worker {
name = "dev-data"
!~ run_command = "./scripts/dev_data.sh" -> "./scripts/dev_data.py"
# (6 unchanged attributes hidden)
# (1 unchanged block hidden)
}
# (1 unchanged block hidden)
}
}
Plan: 1 to add, 0 to change, 1 to destroy.
Changes to Outputs:
+ app_live_url = (known after apply) ❌ Error applying plan in Deploy/Destroy Branch Dev Environment #287 |
Terraform plan in terraform/dev in the hushline-dev-dev-data workspace With variablesbranch = "dev-data"
name = "dev-dev-data" Plan: 1 to add, 0 to change, 1 to destroy. Changes to Outputs.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
-/+ destroy and then create replacement
Terraform will perform the following actions:
# module.app.digitalocean_app.app must be replaced
-/+ resource "digitalocean_app" "app" {
+ active_deployment_id = (known after apply)
!~ created_at = "2024-09-19 17:02:30 +0000 UTC" -> (known after apply)
+ default_ingress = (known after apply)
!~ id = "************************************" -> (known after apply)
+ live_url = (known after apply)
!~ updated_at = "2024-09-19 17:06:48 +0000 UTC" -> (known after apply)
!~ urn = "do:app:3e93ed92-ef3b-4b6c-91c0-8b89404168d9" -> (known after apply)
# (1 unchanged attribute hidden)
!~ dedicated_ips (known after apply)
!~ spec {
!~ domains = [] -> (known after apply)
name = "dev-dev-data"
# (2 unchanged attributes hidden)
!~ domain (known after apply)
!~ ingress (known after apply)
- ingress {
- rule {
- component {
- name = "app" -> null
- preserve_path_prefix = false -> null
# (1 unchanged attribute hidden)
}
- match {
- path {
- prefix = "/" -> null
}
}
}
}
!~ service {
!~ internal_ports = [] -> (known after apply)
name = "app"
+ run_command = (known after apply)
# (7 unchanged attributes hidden)
!~ health_check {
- failure_threshold = 0 -> null
- initial_delay_seconds = 0 -> null
- period_seconds = 0 -> null
- port = 0 -> null
- success_threshold = 0 -> null
- timeout_seconds = 0 -> null
# (1 unchanged attribute hidden)
}
!~ routes (known after apply)
# (1 unchanged block hidden)
}
!~ service {
!~ http_port = 0 -> (known after apply)
name = "db"
+ run_command = (known after apply)
# (7 unchanged attributes hidden)
!~ image {
- registry_credentials = (sensitive value) -> null
# (4 unchanged attributes hidden)
!~ deploy_on_push (known after apply)
}
!~ routes (known after apply)
}
!~ worker {
name = "dev-data"
!~ run_command = "./scripts/dev_data.py" -> "poetry run ./scripts/dev_data.py"
# (6 unchanged attributes hidden)
# (1 unchanged block hidden)
}
# (1 unchanged block hidden)
}
}
Plan: 1 to add, 0 to change, 1 to destroy.
Changes to Outputs:
+ app_live_url = (known after apply) ✅ Plan applied in Deploy/Destroy Branch Dev Environment #287 Outputsapp_live_url = "https://dev-dev-data-8tyrw.ondigitalocean.app" |
🚀 App successfully deployed to https://dev-dev-data-8tyrw.ondigitalocean.app! |
Terraform plan in terraform/dev in the hushline-dev-dev-data workspace With variablesbranch = "dev-data"
name = "dev-dev-data" Plan: 0 to add, 1 to change, 0 to destroy.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
!~ update in-place
Terraform will perform the following actions:
# module.app.digitalocean_app.app will be updated in-place
!~ resource "digitalocean_app" "app" {
id = "a7c3bf7e-6005-4241-823c-3429ab8630d8"
# (7 unchanged attributes hidden)
!~ spec {
name = "dev-dev-data"
# (3 unchanged attributes hidden)
!~ worker {
name = "dev-data"
!~ run_command = "poetry run ./scripts/dev_data.py" -> "cp scripts/dev_data . && poetry run ./scripts/dev_data.py"
# (6 unchanged attributes hidden)
# (1 unchanged block hidden)
}
# (4 unchanged blocks hidden)
}
}
Plan: 0 to add, 1 to change, 0 to destroy. ❌ Error applying plan in Deploy/Destroy Branch Dev Environment #288 |
Terraform plan in terraform/dev in the hushline-dev-dev-data workspace With variablesbranch = "dev-data"
name = "dev-dev-data" Plan: 0 to add, 1 to change, 0 to destroy.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
!~ update in-place
Terraform will perform the following actions:
# module.app.digitalocean_app.app will be updated in-place
!~ resource "digitalocean_app" "app" {
id = "a7c3bf7e-6005-4241-823c-3429ab8630d8"
# (7 unchanged attributes hidden)
!~ spec {
name = "dev-dev-data"
# (3 unchanged attributes hidden)
!~ worker {
name = "dev-data"
!~ run_command = "cp scripts/dev_data . && poetry run ./scripts/dev_data.py" -> "cp scripts/dev_data.py ./dev_data.py && poetry run ./dev_data.py"
# (6 unchanged attributes hidden)
# (1 unchanged block hidden)
}
# (4 unchanged blocks hidden)
}
}
Plan: 0 to add, 1 to change, 0 to destroy. ❌ Error applying plan in Deploy/Destroy Branch Dev Environment #289 |
Terraform plan in terraform/dev in the hushline-dev-dev-data workspace With variablesbranch = "dev-data"
name = "dev-dev-data" Plan: 1 to add, 0 to change, 0 to destroy. Changes to Outputs.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# module.app.digitalocean_app.app will be created
+ resource "digitalocean_app" "app" {
+ active_deployment_id = (known after apply)
+ created_at = (known after apply)
+ default_ingress = (known after apply)
+ id = (known after apply)
+ live_url = (known after apply)
+ project_id = "************************************"
+ updated_at = (known after apply)
+ urn = (known after apply)
+ dedicated_ips (known after apply)
+ spec {
+ domains = (known after apply)
+ features = [
+ "buildpack-stack=ubuntu-22",
]
+ name = "dev-dev-data"
+ region = "sfo"
+ alert {
+ disabled = false
+ rule = "DEPLOYMENT_FAILED"
}
+ domain (known after apply)
+ ingress (known after apply)
+ service {
+ dockerfile_path = "Dockerfile"
+ http_port = 8080
+ instance_count = 1
+ instance_size_slug = "apps-s-1vcpu-0.5gb"
+ internal_ports = (known after apply)
+ name = "app"
+ run_command = (known after apply)
+ github {
+ branch = "dev-data"
+ deploy_on_push = true
+ repo = "scidsg/hushline"
}
+ health_check {
+ http_path = "/health.json"
}
+ routes (known after apply)
}
+ service {
+ http_port = (known after apply)
+ instance_count = 1
+ instance_size_slug = "apps-s-1vcpu-0.5gb"
+ internal_ports = [
+ 5432,
]
+ name = "db"
+ run_command = (known after apply)
+ image {
+ registry = "library"
+ registry_type = "DOCKER_HUB"
+ repository = "postgres"
+ tag = "16.4-alpine3.20"
+ deploy_on_push (known after apply)
}
+ routes (known after apply)
}
+ worker {
+ dockerfile_path = "./Dockerfile"
+ instance_count = 1
+ instance_size_slug = "apps-s-1vcpu-0.5gb"
+ name = "dev-data"
+ run_command = "cp scripts/dev_data.py /app/dev_data.py && poetry run ./dev_data.py"
+ github {
+ branch = "dev-data"
+ deploy_on_push = true
+ repo = "scidsg/hushline"
}
}
}
}
Plan: 1 to add, 0 to change, 0 to destroy.
Changes to Outputs:
!~ app_live_url = "https://dev-dev-data-8tyrw.ondigitalocean.app" -> (known after apply) ❌ Error applying plan in Deploy/Destroy Branch Dev Environment #289 |
Terraform plan in terraform/dev in the hushline-dev-dev-data workspace With variablesbranch = "dev-data"
name = "dev-dev-data" Plan: 1 to add, 0 to change, 1 to destroy. Changes to Outputs.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
-/+ destroy and then create replacement
Terraform will perform the following actions:
# module.app.digitalocean_app.app must be replaced
-/+ resource "digitalocean_app" "app" {
+ active_deployment_id = (known after apply)
!~ created_at = "2024-09-19 18:57:11 +0000 UTC" -> (known after apply)
+ default_ingress = (known after apply)
!~ id = "************************************" -> (known after apply)
+ live_url = (known after apply)
!~ updated_at = "2024-09-19 19:01:18 +0000 UTC" -> (known after apply)
!~ urn = "do:app:5db184c4-f4c8-4d72-b9dc-35dba455e85a" -> (known after apply)
# (1 unchanged attribute hidden)
!~ dedicated_ips (known after apply)
!~ spec {
!~ domains = [] -> (known after apply)
name = "dev-dev-data"
# (2 unchanged attributes hidden)
!~ domain (known after apply)
!~ ingress (known after apply)
- ingress {
- rule {
- component {
- name = "app" -> null
- preserve_path_prefix = false -> null
# (1 unchanged attribute hidden)
}
- match {
- path {
- prefix = "/" -> null
}
}
}
}
!~ service {
!~ internal_ports = [] -> (known after apply)
name = "app"
+ run_command = (known after apply)
# (7 unchanged attributes hidden)
!~ health_check {
- failure_threshold = 0 -> null
- initial_delay_seconds = 0 -> null
- period_seconds = 0 -> null
- port = 0 -> null
- success_threshold = 0 -> null
- timeout_seconds = 0 -> null
# (1 unchanged attribute hidden)
}
!~ routes (known after apply)
# (1 unchanged block hidden)
}
!~ service {
!~ http_port = 0 -> (known after apply)
name = "db"
+ run_command = (known after apply)
# (7 unchanged attributes hidden)
!~ image {
- registry_credentials = (sensitive value) -> null
# (4 unchanged attributes hidden)
!~ deploy_on_push (known after apply)
}
!~ routes (known after apply)
}
!~ worker {
name = "dev-data"
!~ run_command = "cp scripts/dev_data.py /app/dev_data.py && poetry run ./dev_data.py" -> "sh -c \"cp scripts/dev_data.py /app/dev_data.py && poetry run ./dev_data.py\""
# (6 unchanged attributes hidden)
# (1 unchanged block hidden)
}
# (1 unchanged block hidden)
}
}
Plan: 1 to add, 0 to change, 1 to destroy.
Changes to Outputs:
!~ app_live_url = "https://dev-dev-data-8tyrw.ondigitalocean.app" -> (known after apply) ✅ Plan applied in Deploy/Destroy Branch Dev Environment #289 Outputsapp_live_url = "https://dev-dev-data-2iihm.ondigitalocean.app" |
🚀 App successfully deployed to https://dev-dev-data-2iihm.ondigitalocean.app! |
63955b4
to
3ff94ea
Compare
Terraform plan in terraform/dev in the hushline-dev-dev-data workspace With variablesbranch = "dev-data"
name = "dev-dev-data" Plan: 0 to add, 1 to change, 0 to destroy.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
!~ update in-place
Terraform will perform the following actions:
# module.app.digitalocean_app.app will be updated in-place
!~ resource "digitalocean_app" "app" {
id = "f0a96cc4-9bb9-4de5-9d2c-4b30610eb477"
# (7 unchanged attributes hidden)
!~ spec {
name = "dev-dev-data"
# (3 unchanged attributes hidden)
+ job {
+ dockerfile_path = "./Dockerfile.dev"
+ instance_count = 1
+ instance_size_slug = "apps-s-1vcpu-0.5gb"
+ kind = "POST_DEPLOY"
+ name = "dev-data"
+ run_command = "sh -c \"./scripts/dev_data.py\""
+ github {
+ branch = "dev-data"
+ deploy_on_push = true
+ repo = "scidsg/hushline"
}
}
!~ service {
!~ dockerfile_path = "Dockerfile" -> "Dockerfile.prod"
name = "app"
# (8 unchanged attributes hidden)
# (2 unchanged blocks hidden)
}
- worker {
- dockerfile_path = "./Dockerfile" -> null
- instance_count = 1 -> null
- instance_size_slug = "apps-s-1vcpu-0.5gb" -> null
- name = "dev-data" -> null
- run_command = "sh -c \"cp scripts/dev_data.py /app/dev_data.py && poetry run ./dev_data.py\"" -> null
# (3 unchanged attributes hidden)
- github {
- branch = "dev-data" -> null
- deploy_on_push = true -> null
- repo = "scidsg/hushline" -> null
}
}
# (3 unchanged blocks hidden)
}
}
Plan: 0 to add, 1 to change, 0 to destroy. ❌ Error applying plan in Deploy/Destroy Branch Dev Environment #297 |
Terraform plan in terraform/dev in the hushline-dev-dev-data workspace With variablesbranch = "dev-data"
name = "dev-dev-data" Plan: 0 to add, 1 to change, 0 to destroy.Terraform used the selected providers to generate the following execution
plan. Resource actions are indicated with the following symbols:
!~ update in-place
Terraform will perform the following actions:
# module.app.digitalocean_app.app will be updated in-place
!~ resource "digitalocean_app" "app" {
id = "f0a96cc4-9bb9-4de5-9d2c-4b30610eb477"
# (7 unchanged attributes hidden)
# (1 unchanged block hidden)
}
Plan: 0 to add, 1 to change, 0 to destroy. ❌ Error applying plan in Deploy/Destroy Branch Dev Environment #297 |
Testing dev data