Skip to content

Commit

Permalink
Add DependsOn to Deployment and remove Enabled from StageKey (cloudto…
Browse files Browse the repository at this point in the history
…ols#519)

* Add DependsOn to Deployment and remove Enabled from StageKey
* Update ApiGateway.template to match changes
  • Loading branch information
therockstorm authored and covataamos committed Oct 24, 2016
1 parent df6e914 commit 9b2ff54
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/ApiGateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@
stage_name = 'v1'
deployment = t.add_resource(Deployment(
"%sDeployment" % stage_name,
DependsOn="LambdaMethod",
RestApiId=Ref(rest_api),
StageName=stage_name
))
Expand All @@ -121,8 +122,7 @@
StageKeys=[StageKey(
RestApiId=Ref(rest_api),
StageName=stage_name
)],
Enabled=True
)]
))

# Add the deployment endpoint as an output
Expand Down
2 changes: 1 addition & 1 deletion tests/examples_output/ApiGateway.template
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
"Resources": {
"ApiKey": {
"Properties": {
"Enabled": true,
"StageKeys": [
{
"RestApiId": {
Expand Down Expand Up @@ -183,6 +182,7 @@
"Type": "AWS::ApiGateway::Method"
},
"v1Deployment": {
"DependsOn": "LambdaMethod",
"Properties": {
"RestApiId": {
"Ref": "ExampleApi"
Expand Down

0 comments on commit 9b2ff54

Please sign in to comment.