Caddy Cluster storage with AWS EBS or EFS

1. The problem I’m having:

I am setting up a Caddy Cluster on AWS using multiple EC2 instances. Of course, I would like to store the TLS certs centrally for all instances to access. I am aware of storage plugins such as Redis and DynamoDB but since Caddy’s default is filesystem, I am wondering if I could use something like AWS EBS or EFS as a central filesystem to store the TLS certs and that way, I don’t have to use a storage plugin but still able to use a Caddy Cluster of multiple EC2 machines.

Anyone done this already or suggestions on if this can work ?

2. Error messages and/or full log output:

None.

3. Caddy version:

v2.6.4

4. How I installed and ran Caddy:

Officlal install on Debian/Ubuntu

a. System environment:

Ubuntu 22.04

b. Command:

d. My complete Caddy config:

{
    on_demand_tls {
        ask      http://localhost:3000/check
        burst 5
        interval 2m
    }
    log {
    output file /var/log/caddy/mycaddylogs.com-access.log {
        roll_size 10mb
        roll_keep 20
        roll_keep_for 720h
      }
  }
}

https:// {
    tls {
        on_demand
    }
    reverse_proxy http://localhost:9000
}

5. Links to relevant resources:

None.

Beware that we have received many reports of inconsistencies with EFS:

Some file system nuances may be at play:

If it is that :point_up_2: then maybe we can work around it, at a minor performance cost.

oooo very interesting. Now that I read a few more on EFS, it seems wonky and risky. I will look into redis I guess.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.