@@ -10,13 +10,13 @@ Keep file contents in sync with matching parameters in AWS Parameter Store
10
10
- AWS_REGION - AWS Region to search (defaults to us-east-1)
11
11
- PARAM_PREFIX - The prefix for the parameters to keep in sync
12
12
- resulting filenames will be the parameter name minus the PARAM_PREFIX
13
- - eg.
14
- Following parameters in parameter store: TESTING_param1.txt, TESTING_param2.conf
15
- export PARAM_PREFIX=TESTING _
16
- TESTING_param1.txt will be compared against param1.txt
17
- TESTING_param2.conf will be compared against param2.conf
18
- - CRED_FOLDER_PATH - path to where files are stored (defaults to /credentials)
19
- - in order to access the files outside of the container, make sure to mount this path into the container
13
+ - eg. Following parameters in parameter store: TESTING_param1.txt, TESTING_param2.conf
14
+ - export PARAM_PREFIX=TESTING _
15
+ - TESTING_param1.txt will be compared against param1.txt
16
+ - TESTING_param2.conf will be compared against param2.conf
17
+
18
+ The docker container exposes /credentials as a volume - this can be shared with other
19
+ containers or mounted to the local file system
20
20
21
21
22
22
## Example Docker runs
@@ -30,29 +30,28 @@ folder 'credentials-dir' which is mounted into the container at '/credentials'.
30
30
31
31
````
32
32
docker run -d -e "FREQUENCY=600" \
33
- -e "VERBOSE=1" \
34
- -e "AWS_ACCESS_KEY_ID=MY_ACCESS_KEY_ID \
35
- -e "AWS_SECRET_ACCESS_KEY=MY_SECRET_KEY \
36
- -e "PARAM_PREFIX=TESTING_" \
37
- -v credentials-dir:/credentials \
38
- signiant/aws-parameter-syncer
33
+ -e "VERBOSE=1" \
34
+ -e "AWS_ACCESS_KEY_ID=MY_ACCESS_KEY_ID \
35
+ -e "AWS_SECRET_ACCESS_KEY=MY_SECRET_KEY \
36
+ -e "PARAM_PREFIX=TESTING_" \
37
+ -v credentials-dir:/credentials \
38
+ signiant/aws-parameter-syncer
39
39
````
40
40
41
41
This example checks AWS Parameter Store in the us-west-2 region every 120 seconds (2 minutes)
42
42
for parameters containing 'TESTING_ '. The credentials in AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY are
43
- used to access the AWS Parameter Store. The parameter values will be checked against files in the local
44
- folder '/my/local/credentials/path' which is mounted into the container at '/some/other/path'.
43
+ used to access the AWS Parameter Store. The parameter values will be checked against files in the container
44
+ volume '/credentials' which is NOT mounted locally. This volume could be shared with other containers if
45
+ desired.
45
46
46
47
47
48
````
48
49
docker run -d -e "FREQUENCY=120" \
49
- -e "AWS_ACCESS_KEY_ID=MY_ACCESS_KEY_ID \
50
- -e "AWS_SECRET_ACCESS_KEY=MY_SECRET_KEY \
51
- -e "AWS_REGION=us-west-2"
52
- -e "PARAM_PREFIX=TESTING_" \
53
- -e "CRED_FOLDER_PATH=/some/other/path"
54
- -v /my/local/credentials/path:/some/other/path \
55
- signiant/aws-parameter-syncer
50
+ -e "AWS_ACCESS_KEY_ID=MY_ACCESS_KEY_ID \
51
+ -e "AWS_SECRET_ACCESS_KEY=MY_SECRET_KEY \
52
+ -e "AWS_REGION=us-west-2"
53
+ -e "PARAM_PREFIX=TESTING_" \
54
+ signiant/aws-parameter-syncer
56
55
````
57
56
58
57
0 commit comments