Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.

Commit

Permalink
cms and gateway to use cf signals and required policy changes
Browse files Browse the repository at this point in the history
  • Loading branch information
james-michael committed Apr 3, 2017
1 parent cfaf163 commit 8af2984
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
3 changes: 2 additions & 1 deletion smaas-cf/smaas/cms-cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@
AutoScalingRollingUpdate=AutoScalingRollingUpdate(
MaxBatchSize=1,
MinInstancesInService=2,
PauseTime="PT6M"
PauseTime="PT15M",
WaitOnResourceSignals=True
)
),
VPCZoneIdentifier=subnet_id_refs,
Expand Down
3 changes: 2 additions & 1 deletion smaas-cf/smaas/gateway-cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,8 @@
AutoScalingRollingUpdate=AutoScalingRollingUpdate(
MaxBatchSize=1,
MinInstancesInService=2,
PauseTime="PT3M"
PauseTime="PT15M",
WaitOnResourceSignals=True
)
),
VPCZoneIdentifier=subnet_id_refs,
Expand Down
30 changes: 30 additions & 0 deletions smaas-cf/smaas/vpc-and-base.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,21 @@
"Action": ["sts:AssumeRole"]
}]
},
Policies=[
Policy(
PolicyName="gatewayPolicy",
PolicyDocument={
"Statement": [{
"Effect": "Allow",
"Action": [
"EC2:Describe*",
"cloudformation:SignalResource"
],
"Resource": "*"
}],
}
)
],
Path="/"
))

Expand All @@ -569,6 +584,21 @@
"Action": ["sts:AssumeRole"]
}]
},
Policies=[
Policy(
PolicyName="cmsPolicy",
PolicyDocument={
"Statement": [{
"Effect": "Allow",
"Action": [
"EC2:Describe*",
"cloudformation:SignalResource"
],
"Resource": "*"
}],
}
)
],
Path="/"
))

Expand Down

0 comments on commit 8af2984

Please sign in to comment.