|
1 | 1 | config = {
|
2 | 2 |
|
3 | 3 | # AWS credentials for the IAM user (alternatively can be set up as environment variables)
|
4 |
| - 'aws_access_key': '{{ aws.access_key }}', |
5 |
| - 'aws_secret_key': '{{ aws.secret_key }}', |
| 4 | + 'aws_access_key': '{{ ast__aws.access_key }}', |
| 5 | + 'aws_secret_key': '{{ ast__aws.secret_key }}', |
6 | 6 |
|
7 | 7 | # EC2 info about your server's region
|
8 |
| - 'ec2_region_name': '{{ ec2_region_name }}', |
9 |
| - 'ec2_region_endpoint': '{{ ec2_region_endpoint }}', |
| 8 | + 'ec2_region_name': '{{ ast__ec2_region_name }}', |
| 9 | + 'ec2_region_endpoint': '{{ ast__ec2_region_endpoint }}', |
10 | 10 |
|
11 | 11 | # Tag of the EBS volume you want to take the snapshots of
|
12 |
| - 'tag_name': 'MakeSnapshot', |
13 |
| - 'tag_value': 'True', |
| 12 | + 'tag_name': '{{ ast__tag_name }}', |
| 13 | + 'tag_value': '{{ ast__tag_value }}', |
14 | 14 |
|
15 | 15 | # Number of snapshots to keep (the older ones are going to be deleted,
|
16 | 16 | # since they cost money).
|
17 |
| - 'keep_day': 5, |
18 |
| - 'keep_week': 5, |
19 |
| - 'keep_month': 11, |
| 17 | + 'keep_day': {{ ast__keep_day }}, |
| 18 | + 'keep_week': {{ ast__keep_week }}, |
| 19 | + 'keep_month': {{ ast__keep_month }}, |
20 | 20 |
|
21 | 21 | # Path to the log for this script
|
22 |
| - 'log_file': '{{ log_file }}', |
| 22 | + 'log_file': '{{ ast__log_file }}', |
23 | 23 |
|
24 | 24 | # ARN of the SNS topic (optional)
|
25 |
| - {% if notification_topic_arn is defined %} |
26 |
| - 'arn': '{{ notification_topic_arn }}', |
| 25 | + {% if ast__notification_topic_arn is defined %} |
| 26 | + 'arn': '{{ ast__notification_topic_arn }}', |
27 | 27 | {% endif %}
|
28 | 28 |
|
29 | 29 | # Proxy config (optional)
|
|
0 commit comments