Useful snippet for pointing to a remote docker host
ssh -L localhost:2377:/var/run/docker.sock user@remotehost
export DOCKER_HOST=tcp://localhost:2377Ensure that you have some ~/.aws/credentials file shaped as such:
[default]
aws_access_key_id = [your access key]
aws_secret_access_key = [your secret key]
region = [some region (probably made up if not S3 proper)]
Next, you can run this to log in:
pulumi login "s3://[your bucket]/pulumi?endpoint=[your endpoint]"Order of deployments for bootstrapping:
- Core
- Vault Policies
-
Requires
vault-tokensecret configuration
Runpulumi config set vault-token --secret [root token]in./vault-policiesWhen resetting Vault completely (e.g., after a failed initialization), follow these steps:
-
Clear S3 storage: Delete all objects in the
vault_storagepath of your S3 bucket. The bucket name is configured in the Pulumi project (checkpulumi config get vault-s3-bucket). -
Remove Docker volumes: Execute the following command to remove all Vault-related Docker volumes:
docker volume rm $(docker volume ls -q | grep vault) -
Use Node.js 16: Ensure Node.js version 16 is active before running Pulumi commands. If using nvm, run:
nvm use 16
-
Reinitialize: Proceed with the standard deployment order (Core, then Vault Policies).
Additionally, the
auto-initialize.shscript has been updated to check for the existence ofunseal_tokens.txtbefore attempting to unseal, preventing errors when the file is missing. -
-