Skip to content

Commit 49a5fa7

Browse files
committed
Merge branch 'master' into update_release_1_0_with_master
2 parents a65ea15 + 4fac8e6 commit 49a5fa7

File tree

7 files changed

+26
-5
lines changed

7 files changed

+26
-5
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,18 @@ Parameters logic in favor of Blueprint Variables and Lookups.
1010
- Support `allowed_values` within variable definitions [GH-245]
1111
- Fix filehandler lookups with pseudo parameters [GH-247]
1212
- keypair hook update to match route53 update [GH-248]
13+
- Allow = in lookup contents [GH-251]
14+
- change capabilities to CAPABILITY\_NAMED\_IAM [GH-262]
15+
16+
## 0.8.4 (2016-11-01)
17+
18+
- Fix an issue w/ boto3 version string not working with older setuptools
19+
20+
## 0.8.3 (2016-10-31)
21+
22+
- pass context to hooks as a kwarg [GH-234]
23+
- Fix file handler lookups w/ pseudo parameters [GH-239]
24+
- Allow use of later boto3 [GH-253]
1325

1426
## 0.8.1 (2016-09-22)
1527

Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ COPY scripts/docker-stacker /bin/docker-stacker
55
RUN mkdir -p /stacks && pip install --upgrade pip setuptools
66
WORKDIR /stacks
77
COPY . /tmp/stacker
8+
RUN pip install --upgrade pip
9+
RUN pip install --upgrade setuptools
810
RUN cd /tmp/stacker && python setup.py install && rm -rf /tmp/stacker
911

1012
ENTRYPOINT ["docker-stacker"]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
install_requires = [
1010
"troposphere~=1.8.1",
11-
"boto3>=1.3.1<1.5.0",
11+
"boto3>=1.3.1,<1.5.0",
1212
"botocore~=1.4.38",
1313
"PyYAML~=3.11",
1414
"awacs~=0.6.0",

stacker/lookups/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
# "output" type
1414
?\s* # any number of spaces separating the
1515
# type from the input
16-
(?P<input>[@\+\/,\._\-a-zA-Z0-9\:\s]+) # the input value to the lookup
16+
(?P<input>[@\+\/,\._\-a-zA-Z0-9\:\s=]+) # the input value to the lookup
1717
)\} # closing brace of the lookup
1818
""", re.VERBOSE)
1919

stacker/providers/aws/default.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def create_stack(self, fqn, template_url, parameters, tags, **kwargs):
214214
TemplateURL=template_url,
215215
Parameters=parameters,
216216
Tags=tags,
217-
Capabilities=["CAPABILITY_IAM"]),
217+
Capabilities=["CAPABILITY_NAMED_IAM"]),
218218
)
219219
return True
220220

@@ -227,7 +227,7 @@ def update_stack(self, fqn, template_url, parameters, tags, **kwargs):
227227
TemplateURL=template_url,
228228
Parameters=parameters,
229229
Tags=tags,
230-
Capabilities=["CAPABILITY_IAM"]),
230+
Capabilities=["CAPABILITY_NAMED_IAM"]),
231231
)
232232
except botocore.exceptions.ClientError as e:
233233
if "No updates are to be performed." in e.message:

stacker/providers/aws/interactive.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def update_stack(self, fqn, template_url, parameters, tags, **kwargs):
134134
'TemplateURL': template_url,
135135
'Parameters': parameters,
136136
'Tags': tags,
137-
'Capabilities': ["CAPABILITY_IAM"],
137+
'Capabilities': ["CAPABILITY_NAMED_IAM"],
138138
'ChangeSetName': get_change_set_name(),
139139
},
140140
)

stacker/tests/test_lookups.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ def test_kms_lookup(self):
5959
self.assertEqual(lookup.type, "kms")
6060
self.assertEqual(lookup.input, "CiADsGxJp1mCR21fjsVjVxr7RwuO2FE3ZJqC4iG0Lm+HkRKwAQEBAgB4A7BsSadZgkdtX47FY1ca+0cLjthRN2SaguIhtC5vh5EAAACHMIGEBgkqhkiG9w0BBwagdzB1AgEAMHAGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQM3IKyEoNEQVxN3BaaAgEQgEOpqa0rcl3WpHOmblAqL1rOPRyokO3YXcJAAB37h/WKLpZZRAWV2h9C67xjlsj3ebg+QIU91T/") # NOQA
6161

62+
def test_kms_lookup_with_equals(self):
63+
lookups = extract_lookups("${kms us-east-1@AQECAHjLp186mZ+mgXTQSytth/ibiIdwBm8CZAzZNSaSkSRqswAAAG4wbAYJKoZIhvcNAQcGoF8wXQIBADBYBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDLNmhGU6fe4vp175MAIBEIAr+8tUpi7SDzOZm+FFyYvWXhs4hEEyaazIn2dP8a+yHzZYDSVYGRpfUz34bQ==}") # NOQA
64+
self.assertEqual(len(lookups), 1)
65+
lookup = list(lookups)[0]
66+
self.assertEqual(lookup.type, "kms")
67+
self.assertEqual(lookup.input, "us-east-1@AQECAHjLp186mZ+mgXTQSytth/ibiIdwBm8CZAzZNSaSkSRqswAAAG4wbAYJKoZIhvcNAQcGoF8wXQIBADBYBgkqhkiG9w0BBwEwHgYJYIZIAWUDBAEuMBEEDLNmhGU6fe4vp175MAIBEIAr+8tUpi7SDzOZm+FFyYvWXhs4hEEyaazIn2dP8a+yHzZYDSVYGRpfUz34bQ==") # NOQA
68+
6269
def test_kms_lookup_with_region(self):
6370
lookups = extract_lookups("${kms us-west-2@CiADsGxJp1mCR21fjsVjVxr7RwuO2FE3ZJqC4iG0Lm+HkRKwAQEBAgB4A7BsSadZgkdtX47FY1ca+0cLjthRN2SaguIhtC5vh5EAAACHMIGEBgkqhkiG9w0BBwagdzB1AgEAMHAGCSqGSIb3DQEHATAeBglghkgBZQMEAS4wEQQM3IKyEoNEQVxN3BaaAgEQgEOpqa0rcl3WpHOmblAqL1rOPRyokO3YXcJAAB37h/WKLpZZRAWV2h9C67xjlsj3ebg+QIU91T/}") # NOQA
6471
self.assertEqual(len(lookups), 1)

0 commit comments

Comments
 (0)