S3 storage in Docker Container - Vault is Initialized

Hello. I am just starting with Vault and have been tasked to setup a Vault server that stores secrets in an AWS S3 bucket.

I found it relatively easy to create an EC2 instance, install Vault, create a configuration to store secrets in my existing S3 bucket. I manually initialized vault, logged in as root and stored/retrieved secrets. They were in the S3 bucket.

Next I was tasked to duplicate this in a Docker container in the EC2.

My problem is that every time I spin up a new container with Vault it has a status of “initialized”. I bet this is the expected behavior and there is a work around, but I haven’t found it yet.