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

Add A record for emails. #63

Closed CloudArtAdmins closed 5 months ago

CloudArtAdmins commented 5 months ago

Per https://mailu.io/master/compose/setup.html#tls-certificates, Mailu needs the A record set for all HOSTNAMEs in the env file. This sets mail.seagl.org to the mailu.host.seagl.org address, as is needed.

seagl-atlantis[bot] commented 5 months ago

Ran Plan for dir: . workspace: default

Plan Error

Show Output ``` running "/usr/local/bin/terraform init -input=false" in "/home/atlantis/.atlantis/repos/SeaGL/seagl-terraform/63/default": exit status 1 Initializing the backend... Successfully configured the backend "s3"! Terraform will automatically use this backend unless the backend configuration changes. Initializing modules... - prod_db in osem_rds - production_env in env - production_env.mailu-vm in simple_vm - production_env.nc-office-vm in simple_vm ╷ │ Error: Invalid resource name │ │ on env/dns.tf line 153, in resource "aws_route53_record" "Mailu server": │ 153: resource "aws_route53_record" "Mailu server" { │ │ A name must start with a letter or underscore and may contain only letters, │ digits, underscores, and dashes. ╵ ```
seagl-atlantis[bot] commented 5 months ago

Plan Error

the default workspace at path . is currently locked by another command that is running for this pull request.
Wait until the previous command is complete and try again
seagl-atlantis[bot] commented 5 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: # module.production_env.aws_route53_record.mailu-server will be created + resource "aws_route53_record" "mailu-server" { + allow_overwrite = (known after apply) + fqdn = (known after apply) + id = (known after apply) + name = "mail.seagl.org" + records = [ + "mailu.host.seagl.org", ] + ttl = 300 + type = "CNAME" + zone_id = "Z0173878287JIU5M4KB8R" } Plan: 1 to add, 0 to change, 0 to destroy. ╷ │ 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 3 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: 1 to add, 0 to change, 0 to destroy.


seagl-atlantis[bot] commented 5 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: # module.production_env.aws_route53_record.mailu-server will be created + resource "aws_route53_record" "mailu-server" { + allow_overwrite = (known after apply) + fqdn = (known after apply) + id = (known after apply) + name = "mail.seagl.org" + records = [ + "mailu.host.seagl.org", ] + ttl = 300 + type = "CNAME" + zone_id = "Z0173878287JIU5M4KB8R" } Plan: 1 to add, 0 to change, 0 to destroy. ╷ │ 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_lifecycle_configuration resource instead │ │ (and 3 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: 1 to add, 0 to change, 0 to destroy.


strugee commented 5 months ago

atlantis apply

seagl-atlantis[bot] commented 5 months ago

Ran Apply for dir: . workspace: default

module.production_env.aws_route53_record.mailu-server: Creating...
module.production_env.aws_route53_record.mailu-server: Still creating... [10s elapsed]
module.production_env.aws_route53_record.mailu-server: Still creating... [20s elapsed]
module.production_env.aws_route53_record.mailu-server: Still creating... [30s elapsed]
module.production_env.aws_route53_record.mailu-server: Still creating... [40s elapsed]
module.production_env.aws_route53_record.mailu-server: Creation complete after 42s [id=Z0173878287JIU5M4KB8R_mail.seagl.org_CNAME]

Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
seagl-atlantis[bot] commented 5 months ago

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