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

Provision a Postgres RDS DB for Pretalx #66

Closed strugee closed 4 months ago

seagl-atlantis[bot] commented 4 months ago

Ran Plan for dir: . workspace: default

Plan Error

Show Output ``` running "/usr/local/bin/terraform plan -input=false -refresh -out \"/home/atlantis/.atlantis/repos/SeaGL/seagl-terraform/66/default/default.tfplan\"" in "/home/atlantis/.atlantis/repos/SeaGL/seagl-terraform/66/default": exit status 1 ╷ │ Warning: Argument is deprecated │ │ with aws_s3_bucket.state, │ on s3.tf line 1, in resource "aws_s3_bucket" "state": │ 1: resource "aws_s3_bucket" "state" { │ │ Use the aws_s3_bucket_versioning resource instead │ │ (and one more similar warning elsewhere) ╵ ╷ │ Error: Reference to undeclared resource │ │ on pretalx-rds.tf line 29, in resource "aws_security_group" "pretalx-rds-security-group": │ 29: vpc_id = aws_vpc.vpc.id │ │ A managed resource "aws_vpc" "vpc" has not been declared in the root │ module. │ │ Did you mean the data resource data.aws_vpc.vpc? ╵ ```
seagl-atlantis[bot] commented 4 months ago

Ran Plan for 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: + create Terraform will perform the following actions: # aws_db_instance.pretalx will be created + resource "aws_db_instance" "pretalx" { + address = (known after apply) + allocated_storage = 10 + apply_immediately = false + arn = (known after apply) + auto_minor_version_upgrade = true + availability_zone = (known after apply) + backup_retention_period = 7 + backup_window = (known after apply) + ca_cert_identifier = "rds-ca-rsa2048-g1" + character_set_name = (known after apply) + copy_tags_to_snapshot = false + db_name = (known after apply) + db_subnet_group_name = "pretalx-prod" + delete_automated_backups = true + endpoint = (known after apply) + engine = "postgres" + engine_version = "15.6" + engine_version_actual = (known after apply) + hosted_zone_id = (known after apply) + id = (known after apply) + identifier = "pretalx-prod" + identifier_prefix = (known after apply) + instance_class = "db.t4g.micro" + iops = (known after apply) + kms_key_id = (known after apply) + latest_restorable_time = (known after apply) + license_model = (known after apply) + listener_endpoint = (known after apply) + maintenance_window = (known after apply) + manage_master_user_password = true + master_user_secret = (known after apply) + master_user_secret_kms_key_id = (known after apply) + max_allocated_storage = 100 + monitoring_interval = 0 + monitoring_role_arn = (known after apply) + multi_az = (known after apply) + name = (known after apply) + nchar_character_set_name = (known after apply) + network_type = (known after apply) + option_group_name = (known after apply) + parameter_group_name = (known after apply) + performance_insights_enabled = false + performance_insights_kms_key_id = (known after apply) + performance_insights_retention_period = (known after apply) + port = (known after apply) + publicly_accessible = false + replica_mode = (known after apply) + replicas = (known after apply) + resource_id = (known after apply) + skip_final_snapshot = false + snapshot_identifier = (known after apply) + status = (known after apply) + storage_throughput = (known after apply) + storage_type = (known after apply) + tags_all = (known after apply) + timezone = (known after apply) + username = "pretalxadmin" + vpc_security_group_ids = (known after apply) } # aws_db_subnet_group.pretalx will be created + resource "aws_db_subnet_group" "pretalx" { + arn = (known after apply) + description = "Managed by Terraform" + id = (known after apply) + name = "pretalx-prod" + name_prefix = (known after apply) + subnet_ids = [ + "subnet-5a826503", + "subnet-8b7adbee", + "subnet-d507c0a2", ] + supported_network_types = (known after apply) + tags_all = (known after apply) + vpc_id = (known after apply) } # aws_security_group.pretalx-rds-security-group will be created + resource "aws_security_group" "pretalx-rds-security-group" { + arn = (known after apply) + description = "Managed by Terraform" + egress = (known after apply) + id = (known after apply) + ingress = (known after apply) + name = "pretalx-rds-prod" + name_prefix = (known after apply) + owner_id = (known after apply) + revoke_rules_on_delete = false + tags_all = (known after apply) + vpc_id = "vpc-231ecb46" } # aws_security_group_rule.pretalx-rds-in will be created + resource "aws_security_group_rule" "pretalx-rds-in" { + cidr_blocks = [ + "172.31.0.0/16", ] + from_port = 3306 + id = (known after apply) + protocol = "-1" + security_group_id = (known after apply) + security_group_rule_id = (known after apply) + self = false + source_security_group_id = (known after apply) + to_port = 3306 + type = "ingress" } # aws_security_group_rule.pretalx-rds-out will be created + resource "aws_security_group_rule" "pretalx-rds-out" { + cidr_blocks = [ + "0.0.0.0/0", ] + from_port = 0 + id = (known after apply) + protocol = "-1" + security_group_id = (known after apply) + security_group_rule_id = (known after apply) + self = false + source_security_group_id = (known after apply) + to_port = 0 + type = "egress" } Plan: 5 to add, 0 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: 5 to add, 0 to change, 0 to destroy.


seagl-atlantis[bot] commented 4 months ago

Ran Plan for 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: + create Terraform will perform the following actions: # aws_db_instance.pretalx will be created + resource "aws_db_instance" "pretalx" { + address = (known after apply) + allocated_storage = 10 + apply_immediately = false + arn = (known after apply) + auto_minor_version_upgrade = true + availability_zone = (known after apply) + backup_retention_period = 7 + backup_window = (known after apply) + ca_cert_identifier = "rds-ca-rsa2048-g1" + character_set_name = (known after apply) + copy_tags_to_snapshot = false + db_name = (known after apply) + db_subnet_group_name = "pretalx-prod" + delete_automated_backups = true + endpoint = (known after apply) + engine = "postgres" + engine_version = "13.14" + engine_version_actual = (known after apply) + hosted_zone_id = (known after apply) + id = (known after apply) + identifier = "pretalx-prod" + identifier_prefix = (known after apply) + instance_class = "db.t4g.micro" + iops = (known after apply) + kms_key_id = (known after apply) + latest_restorable_time = (known after apply) + license_model = (known after apply) + listener_endpoint = (known after apply) + maintenance_window = (known after apply) + manage_master_user_password = true + master_user_secret = (known after apply) + master_user_secret_kms_key_id = (known after apply) + max_allocated_storage = 100 + monitoring_interval = 0 + monitoring_role_arn = (known after apply) + multi_az = (known after apply) + name = (known after apply) + nchar_character_set_name = (known after apply) + network_type = (known after apply) + option_group_name = (known after apply) + parameter_group_name = (known after apply) + performance_insights_enabled = false + performance_insights_kms_key_id = (known after apply) + performance_insights_retention_period = (known after apply) + port = (known after apply) + publicly_accessible = false + replica_mode = (known after apply) + replicas = (known after apply) + resource_id = (known after apply) + skip_final_snapshot = false + snapshot_identifier = (known after apply) + status = (known after apply) + storage_throughput = (known after apply) + storage_type = (known after apply) + tags_all = (known after apply) + timezone = (known after apply) + username = "pretalxadmin" + vpc_security_group_ids = (known after apply) } # aws_db_subnet_group.pretalx will be created + resource "aws_db_subnet_group" "pretalx" { + arn = (known after apply) + description = "Managed by Terraform" + id = (known after apply) + name = "pretalx-prod" + name_prefix = (known after apply) + subnet_ids = [ + "subnet-5a826503", + "subnet-8b7adbee", + "subnet-d507c0a2", ] + supported_network_types = (known after apply) + tags_all = (known after apply) + vpc_id = (known after apply) } # aws_security_group.pretalx-rds-security-group will be created + resource "aws_security_group" "pretalx-rds-security-group" { + arn = (known after apply) + description = "Managed by Terraform" + egress = (known after apply) + id = (known after apply) + ingress = (known after apply) + name = "pretalx-rds-prod" + name_prefix = (known after apply) + owner_id = (known after apply) + revoke_rules_on_delete = false + tags_all = (known after apply) + vpc_id = "vpc-231ecb46" } # aws_security_group_rule.pretalx-rds-in will be created + resource "aws_security_group_rule" "pretalx-rds-in" { + cidr_blocks = [ + "172.31.0.0/16", ] + from_port = 3306 + id = (known after apply) + protocol = "-1" + security_group_id = (known after apply) + security_group_rule_id = (known after apply) + self = false + source_security_group_id = (known after apply) + to_port = 3306 + type = "ingress" } # aws_security_group_rule.pretalx-rds-out will be created + resource "aws_security_group_rule" "pretalx-rds-out" { + cidr_blocks = [ + "0.0.0.0/0", ] + from_port = 0 + id = (known after apply) + protocol = "-1" + security_group_id = (known after apply) + security_group_rule_id = (known after apply) + self = false + source_security_group_id = (known after apply) + to_port = 0 + type = "egress" } Plan: 5 to add, 0 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: 5 to add, 0 to change, 0 to destroy.


strugee commented 4 months ago

atlantis apply

seagl-atlantis[bot] commented 4 months ago

Ran Apply for dir: . workspace: default

Show Output ```diff aws_security_group.pretalx-rds-security-group: Creating... aws_db_subnet_group.pretalx: Creating... aws_db_subnet_group.pretalx: Creation complete after 0s [id=pretalx-prod] aws_security_group.pretalx-rds-security-group: Creation complete after 1s [id=sg-0716becbd9c8081d9] aws_security_group_rule.pretalx-rds-in: Creating... aws_security_group_rule.pretalx-rds-out: Creating... aws_db_instance.pretalx: Creating... aws_security_group_rule.pretalx-rds-in: Creation complete after 0s [id=sgrule-464759209] aws_security_group_rule.pretalx-rds-out: Creation complete after 1s [id=sgrule-2790748758] aws_db_instance.pretalx: Still creating... [10s elapsed] aws_db_instance.pretalx: Still creating... [20s elapsed] aws_db_instance.pretalx: Still creating... [30s elapsed] aws_db_instance.pretalx: Still creating... [40s elapsed] aws_db_instance.pretalx: Still creating... [50s elapsed] aws_db_instance.pretalx: Still creating... [1m0s elapsed] aws_db_instance.pretalx: Still creating... [1m10s elapsed] aws_db_instance.pretalx: Still creating... [1m20s elapsed] aws_db_instance.pretalx: Still creating... [1m30s elapsed] aws_db_instance.pretalx: Still creating... [1m40s elapsed] aws_db_instance.pretalx: Still creating... [1m50s elapsed] aws_db_instance.pretalx: Still creating... [2m0s elapsed] aws_db_instance.pretalx: Still creating... [2m10s elapsed] aws_db_instance.pretalx: Still creating... [2m20s elapsed] aws_db_instance.pretalx: Still creating... [2m30s elapsed] aws_db_instance.pretalx: Still creating... [2m40s elapsed] aws_db_instance.pretalx: Still creating... [2m50s elapsed] aws_db_instance.pretalx: Still creating... [3m0s elapsed] aws_db_instance.pretalx: Still creating... [3m10s elapsed] aws_db_instance.pretalx: Still creating... [3m20s elapsed] aws_db_instance.pretalx: Still creating... [3m30s elapsed] aws_db_instance.pretalx: Still creating... [3m40s elapsed] aws_db_instance.pretalx: Still creating... [3m50s elapsed] aws_db_instance.pretalx: Still creating... [4m0s elapsed] aws_db_instance.pretalx: Still creating... [4m10s elapsed] aws_db_instance.pretalx: Still creating... [4m20s elapsed] aws_db_instance.pretalx: Still creating... [4m30s elapsed] aws_db_instance.pretalx: Still creating... [4m40s elapsed] aws_db_instance.pretalx: Still creating... [4m50s elapsed] aws_db_instance.pretalx: Still creating... [5m0s elapsed] aws_db_instance.pretalx: Still creating... [5m10s elapsed] aws_db_instance.pretalx: Still creating... [5m20s elapsed] aws_db_instance.pretalx: Still creating... [5m30s elapsed] aws_db_instance.pretalx: Still creating... [5m40s elapsed] aws_db_instance.pretalx: Still creating... [5m50s elapsed] aws_db_instance.pretalx: Still creating... [6m0s elapsed] aws_db_instance.pretalx: Still creating... [6m10s elapsed] aws_db_instance.pretalx: Still creating... [6m20s elapsed] aws_db_instance.pretalx: Still creating... [6m30s elapsed] aws_db_instance.pretalx: Still creating... [6m40s elapsed] aws_db_instance.pretalx: Still creating... [6m50s elapsed] aws_db_instance.pretalx: Still creating... [7m0s elapsed] aws_db_instance.pretalx: Still creating... [7m10s elapsed] aws_db_instance.pretalx: Still creating... [7m20s elapsed] aws_db_instance.pretalx: Still creating... [7m30s elapsed] aws_db_instance.pretalx: Still creating... [7m40s elapsed] aws_db_instance.pretalx: Still creating... [7m50s elapsed] aws_db_instance.pretalx: Still creating... [8m0s elapsed] aws_db_instance.pretalx: Still creating... [8m10s elapsed] aws_db_instance.pretalx: Still creating... [8m20s elapsed] aws_db_instance.pretalx: Still creating... [8m30s elapsed] aws_db_instance.pretalx: Still creating... [8m40s elapsed] aws_db_instance.pretalx: Still creating... [8m50s elapsed] aws_db_instance.pretalx: Creation complete after 8m51s [id=pretalx-prod] Apply complete! Resources: 5 added, 0 changed, 0 destroyed. ```
seagl-atlantis[bot] commented 4 months ago

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