Skip to content
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

Add A record for emails. #63

Merged
merged 2 commits into from
Apr 10, 2024
Merged

Add A record for emails. #63

merged 2 commits into from
Apr 10, 2024

Conversation

CloudArtAdmins
Copy link
Contributor

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
Copy link
Contributor

seagl-atlantis bot commented Apr 9, 2024

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
Copy link
Contributor

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
Copy link
Contributor

Ran Plan for dir: . workspace: default

Show Output
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)
╵
  • ▶️ To apply this plan, comment:
    • atlantis apply -d .
  • 🚮 To delete this plan click here
  • 🔁 To plan this project again, comment:
    • atlantis plan -d .
Plan: 1 to add, 0 to change, 0 to destroy.
  • ⏩ To apply all unapplied plans from this pull request, comment:
    • atlantis apply
  • 🚮 To delete all plans and locks for the PR, comment:
    • atlantis unlock

@seagl-atlantis
Copy link
Contributor

Ran Plan for dir: . workspace: default

Show Output
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)
╵
  • ▶️ To apply this plan, comment:
    • atlantis apply -d .
  • 🚮 To delete this plan click here
  • 🔁 To plan this project again, comment:
    • atlantis plan -d .
Plan: 1 to add, 0 to change, 0 to destroy.
  • ⏩ To apply all unapplied plans from this pull request, comment:
    • atlantis apply
  • 🚮 To delete all plans and locks for the PR, comment:
    • atlantis unlock

@strugee
Copy link
Member

strugee commented Apr 10, 2024

atlantis apply

@seagl-atlantis
Copy link
Contributor

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.

@strugee strugee merged commit 49dbb15 into main Apr 10, 2024
4 checks passed
@strugee strugee deleted the CloudArtAdmins-patch-1 branch April 10, 2024 00:56
@seagl-atlantis
Copy link
Contributor

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

  • dir: . workspace: default

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants