2025-05-11 19:41:48 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
# This script is used to start the encryption provider for the application.
|
|
|
|
|
# Managed by Ansible.
|
|
|
|
|
export AWS_ACCESS_KEY_ID={{ encryption_aws_access_key_id }}
|
|
|
|
|
export AWS_SECRET_ACCESS_KEY={{ encryption_aws_secret_access_key }}
|
2025-05-12 17:24:58 +02:00
|
|
|
mkdir {{ encryption_kms_socket_dir | dirname }} }} 2>/dev/null || true
|
|
|
|
|
chmod 700 {{ encryption_kms_socket_dir | dirname }} 2>/dev/null
|
2025-05-11 19:41:48 +02:00
|
|
|
/usr/local/bin/aws-encryption-provider --key={{ encryption_kms_arn }} --region={{ encryption_kms_region }} --listen={{ encryption_kms_socket }}
|