Skip to content
This repository was archived by the owner on Feb 14, 2020. It is now read-only.

Commit 655e540

Browse files
author
Pedro Salgado
committed
added support for nested configuration settings
1 parent a037ec7 commit 655e540

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

templates/home/user/.aws/config.j2

+7
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@
88
[profile {{ profile }}]
99
{% endif %}
1010
{% for parameter, value in awscli_configuration[ config ].iteritems() | sort %}
11+
{% if value is mapping %}
12+
{{ parameter }} =
13+
{% for nested_parameter, nested_value in value.iteritems() | sort %}
14+
{{ nested_parameter }} = {{ nested_value }}
15+
{% endfor %}
16+
{% else %}
1117
{{ parameter }}={{ value }}
18+
{% endif%}
1219
{% endfor %}
1320
{% endfor %}
1421
{% endif %}

tests/files/home/user/.aws/config

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
[default]
44
output=json
55
region=us-west-2
6+
s3 =
7+
max_concurrent_requests = 3
68

79
[profile user2]
810
output=text

tests/vars/travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ awscli_configuration:
99
default:
1010
region: us-west-2
1111
output: json
12+
s3:
13+
max_concurrent_requests: 3
1214
conf_east1_text:
1315
region: us-east-1
1416
output: text

tests/vars/vagrant.yml

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ awscli_configuration:
99
default:
1010
region: us-west-2
1111
output: json
12+
s3:
13+
max_concurrent_requests: 3
1214
conf_east1_text:
1315
region: us-east-1
1416
output: text

0 commit comments

Comments
 (0)