SeaGL / seagl-terraform

Terraform used to maintain SeaGL's VMs, RDS database, DNS, etc.
GNU Affero General Public License v3.0
1 stars 2 forks source link

enable deletion protection on osem and pretalx rds instances #71

Closed ChanceHarrison closed 5 months ago

ChanceHarrison commented 5 months ago

Resolves #69

seagl-atlantis[bot] commented 5 months ago

Ran Plan for 2 projects:

  1. dir: osem_rds workspace: default
  2. dir: . workspace: default

1. dir: osem_rds workspace: default

Plan Error

Show Output ``` running "/usr/local/bin/terraform plan -input=false -refresh -out \"/home/atlantis/.atlantis/repos/SeaGL/seagl-terraform/71/default/osem_rds/default.tfplan\"" in "/home/atlantis/.atlantis/repos/SeaGL/seagl-terraform/71/default/osem_rds": exit status 1 ╷ │ Error: No value for required variable │ │ on variables.tf line 1: │ 1: variable "vpc_id" { │ │ The root module input variable "vpc_id" is not set, and has no default │ value. Use a -var or -var-file command line argument to provide a value for │ this variable. ╵ ╷ │ Error: No value for required variable │ │ on variables.tf line 6: │ 6: variable "vpc_cidr" { │ │ The root module input variable "vpc_cidr" is not set, and has no default │ value. Use a -var or -var-file command line argument to provide a value for │ this variable. ╵ ```

2. dir: . workspace: default

Show Output ```diff 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: # aws_db_instance.pretalx will be updated in-place ~ resource "aws_db_instance" "pretalx" { ~ deletion_protection = false -> true id = "pretalx-prod" name = "pretalx" tags = {} # (51 unchanged attributes hidden) } # module.prod_db.aws_db_instance.osem will be updated in-place ~ resource "aws_db_instance" "osem" { ~ deletion_protection = false -> true id = "osem" name = "osem" tags = {} # (52 unchanged attributes hidden) } Plan: 0 to add, 2 to change, 0 to destroy. ╷ │ Warning: Argument is deprecated │ │ with provider["registry.terraform.io/terraform-provider-openstack/openstack"], │ on provider.tf line 30, in provider "openstack": │ 30: provider "openstack" { │ │ Users not using loadbalancer resources can ignore this message. Support for │ neutron-lbaas will be removed on next major release. Octavia will be the │ only supported method for loadbalancer resources. Users using octavia will │ have to remove 'use_octavia' option from the provider configuration block. │ Users using neutron-lbaas will have to migrate/upgrade to octavia. │ │ (and 7 more similar warnings elsewhere) ╵ ``` * :arrow_forward: To **apply** this plan, comment: * `atlantis apply -d .` * :put_litter_in_its_place: To **delete** this plan click [here](https://atlantis.seagl.org/lock?id=SeaGL%252Fseagl-terraform%252F.%252Fdefault) * :repeat: To **plan** this project again, comment: * `atlantis plan -d .`

Plan: 0 to add, 2 to change, 0 to destroy.


seagl-atlantis[bot] commented 5 months ago

Ran Plan for project: my-project-name dir: . workspace: default

Show Output ```diff 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: # aws_db_instance.pretalx will be updated in-place ~ resource "aws_db_instance" "pretalx" { ~ deletion_protection = false -> true id = "pretalx-prod" name = "pretalx" tags = {} # (51 unchanged attributes hidden) } # module.prod_db.aws_db_instance.osem will be updated in-place ~ resource "aws_db_instance" "osem" { ~ deletion_protection = false -> true id = "osem" name = "osem" tags = {} # (52 unchanged attributes hidden) } Plan: 0 to add, 2 to change, 0 to destroy. ╷ │ Warning: Argument is deprecated │ │ with provider["registry.terraform.io/terraform-provider-openstack/openstack"], │ on provider.tf line 30, in provider "openstack": │ 30: provider "openstack" { │ │ Users not using loadbalancer resources can ignore this message. Support for │ neutron-lbaas will be removed on next major release. Octavia will be the │ only supported method for loadbalancer resources. Users using octavia will │ have to remove 'use_octavia' option from the provider configuration block. │ Users using neutron-lbaas will have to migrate/upgrade to octavia. │ │ (and 7 more similar warnings elsewhere) ╵ ``` * :arrow_forward: To **apply** this plan, comment: * `atlantis apply -p my-project-name` * :put_litter_in_its_place: To **delete** this plan click [here](https://atlantis.seagl.org/lock?id=SeaGL%252Fseagl-terraform%252F.%252Fdefault) * :repeat: To **plan** this project again, comment: * `atlantis plan -p my-project-name`

Plan: 0 to add, 2 to change, 0 to destroy.


seagl-atlantis[bot] commented 5 months ago

Did you mean to use atlantis instead of alantis?

ChanceHarrison commented 5 months ago

atlantis apply

seagl-atlantis[bot] commented 5 months ago

Ran Apply for project: my-project-name dir: . workspace: default

Show Output ```diff module.prod_db.aws_db_instance.osem: Modifying... [id=osem] aws_db_instance.pretalx: Modifying... [id=pretalx-prod] module.prod_db.aws_db_instance.osem: Still modifying... [id=osem, 10s elapsed] aws_db_instance.pretalx: Still modifying... [id=pretalx-prod, 10s elapsed] module.prod_db.aws_db_instance.osem: Still modifying... [id=osem, 20s elapsed] aws_db_instance.pretalx: Still modifying... [id=pretalx-prod, 20s elapsed] module.prod_db.aws_db_instance.osem: Still modifying... [id=osem, 30s elapsed] aws_db_instance.pretalx: Still modifying... [id=pretalx-prod, 30s elapsed] module.prod_db.aws_db_instance.osem: Still modifying... [id=osem, 40s elapsed] aws_db_instance.pretalx: Still modifying... [id=pretalx-prod, 40s elapsed] module.prod_db.aws_db_instance.osem: Still modifying... [id=osem, 50s elapsed] aws_db_instance.pretalx: Still modifying... [id=pretalx-prod, 50s elapsed] module.prod_db.aws_db_instance.osem: Still modifying... [id=osem, 1m0s elapsed] aws_db_instance.pretalx: Still modifying... [id=pretalx-prod, 1m0s elapsed] module.prod_db.aws_db_instance.osem: Still modifying... [id=osem, 1m10s elapsed] aws_db_instance.pretalx: Still modifying... [id=pretalx-prod, 1m10s elapsed] module.prod_db.aws_db_instance.osem: Still modifying... [id=osem, 1m20s elapsed] aws_db_instance.pretalx: Still modifying... [id=pretalx-prod, 1m20s elapsed] module.prod_db.aws_db_instance.osem: Modifications complete after 1m21s [id=osem] aws_db_instance.pretalx: Modifications complete after 1m21s [id=pretalx-prod] ╷ │ Warning: Argument is deprecated │ │ with module.prod_db.aws_db_instance.osem, │ on osem_rds/main.tf line 33, in resource "aws_db_instance" "osem": │ 33: name = "osem" │ │ Use db_name instead ╵ Apply complete! Resources: 0 added, 2 changed, 0 destroyed. ```
seagl-atlantis[bot] commented 5 months ago

Automatically merging because all plans have been successfully applied.

seagl-atlantis[bot] commented 5 months ago

Locks and plans deleted for the projects and workspaces modified in this pull request: