Advertisement
Guest User

Untitled

a guest
May 22nd, 2015
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.65 KB | None | 0 0
  1. {
  2. "Version": "2012-10-17",
  3. "Statement": [
  4. {
  5. "Effect": "Allow",
  6. "Action": [
  7. "s3:GetObject"
  8. ],
  9. "Resource": [
  10. "arn:aws:s3:::account-info-*/vpcadmin/sas-writer-key",
  11. "arn:aws:s3:::fs-paas-infrastructure-private/sps/provisioning-services.yml"
  12. ]
  13. },
  14. {
  15. "Effect": "Allow",
  16. "Action": [
  17. "s3:CreateBucket"
  18. ],
  19. "Resource": [
  20. "arn:aws:s3:::ps-artifacts-*"
  21. ]
  22. },
  23. {
  24. "Effect": "Allow",
  25. "Action": [
  26. "s3:DeleteObject",
  27. "s3:GetObject",
  28. "s3:PutObject"
  29. ],
  30. "Resource": [
  31. "arn:aws:s3:::ps-artifacts-*/*/*/versions/*/deployartifact.zip"
  32. ]
  33. },
  34. {
  35. "Effect": "Allow",
  36. "Action": [
  37. "s3:*"
  38. ],
  39. "Resource": [
  40. "arn:aws:s3:::elasticbeanstalk-*"
  41. ]
  42. },
  43. {
  44. "Effect": "Allow",
  45. "Action": [
  46. "s3:ListAllMyBuckets",
  47. "s3:ListBucket",
  48. "s3:GetBucketLocation"
  49. ],
  50. "Resource": [
  51. "arn:aws:s3:::*"
  52. ]
  53. },
  54. {
  55. "Effect": "Allow",
  56. "Action": [
  57. "elasticbeanstalk:AbortEnvironmentUpdate",
  58. "elasticbeanstalk:CheckDNSAvailability",
  59. "elasticbeanstalk:CreateApplication",
  60. "elasticbeanstalk:CreateApplicationVersion",
  61. "elasticbeanstalk:CreateConfigurationTemplate",
  62. "elasticbeanstalk:CreateEnvironment",
  63. "elasticbeanstalk:CreateStorageLocation",
  64. "elasticbeanstalk:DeleteApplication",
  65. "elasticbeanstalk:DeleteApplicationVersion",
  66. "elasticbeanstalk:DeleteConfigurationTemplate",
  67. "elasticbeanstalk:DeleteEnvironmentConfiguration",
  68. "elasticbeanstalk:DescribeApplicationVersions",
  69. "elasticbeanstalk:Describe*",
  70. "elasticbeanstalk:ListAvailableSolutionStacks",
  71. "elasticbeanstalk:RebuildEnvironment",
  72. "elasticbeanstalk:RequestEnvironmentInfo",
  73. "elasticbeanstalk:RestartAppServer",
  74. "elasticbeanstalk:RetrieveEnvironmentInfo",
  75. "elasticbeanstalk:TerminateEnvironment",
  76. "elasticbeanstalk:UpdateApplication",
  77. "elasticbeanstalk:UpdateApplicationVersion",
  78. "elasticbeanstalk:UpdateConfigurationTemplate",
  79. "elasticbeanstalk:UpdateEnvironment",
  80. "elasticbeanstalk:ValidateConfigurationSettings"
  81. ],
  82. "Resource": [
  83. "*"
  84. ]
  85. },
  86. {
  87. "Effect": "Allow",
  88. "Action": [
  89. "cloudformation:CancelUpdateStack",
  90. "cloudformation:CreateStack",
  91. "cloudformation:DeleteStack",
  92. "cloudformation:Describe*",
  93. "cloudformation:GetTemplate",
  94. "cloudformation:ListStacks",
  95. "cloudformation:ListStackResources",
  96. "cloudformation:UpdateStack",
  97. "cloudformation:ValidateTemplate"
  98. ],
  99. "Resource": "*"
  100. },
  101. {
  102. "Effect": "Allow",
  103. "Action": [
  104. "iam:AddRoleToInstanceProfile",
  105. "iam:AttachRolePolicy",
  106. "iam:CreateInstanceProfile",
  107. "iam:CreatePolicy",
  108. "iam:CreateRole",
  109. "iam:DeleteInstanceProfile",
  110. "iam:DeletePolicy",
  111. "iam:DeleteRolePolicy",
  112. "iam:DetachRolePolicy",
  113. "iam:ListRolePolicies",
  114. "iam:ListRoles",
  115. "iam:PassRole",
  116. "iam:PutRolePolicy"
  117. ],
  118. "Resource": "*"
  119. },
  120. {
  121. "Effect": "Allow",
  122. "Action": [
  123. "ec2:AuthorizeSecurityGroupEgress",
  124. "ec2:AuthorizeSecurityGroupIngress",
  125. "ec2:CreateRoute",
  126. "ec2:CreateRouteTable",
  127. "ec2:CreateSecurityGroup",
  128. "ec2:CreateSnapshot",
  129. "ec2:CreateTags",
  130. "ec2:DeleteRoute",
  131. "ec2:DeleteRouteTable",
  132. "ec2:DeleteSecurityGroup",
  133. "ec2:DeleteTags",
  134. "ec2:Describe*",
  135. "ec2:ReplaceRoute",
  136. "ec2:ReplaceRouteTableAssociation",
  137. "ec2:RevokeSecurityGroupEgress",
  138. "ec2:RevokeSecurityGroupIngress",
  139. "ec2:RunInstances",
  140. "ec2:StartInstances",
  141. "ec2:StopInstances",
  142. "ec2:TerminateInstances"
  143. ],
  144. "Resource": "*"
  145. },
  146. {
  147. "Effect": "Allow",
  148. "Action": [
  149. "autoscaling:*"
  150. ],
  151. "Resource": "*"
  152. },
  153. {
  154. "Effect": "Allow",
  155. "Action": [
  156. "cloudwatch:*"
  157. ],
  158. "Resource": "*"
  159. },
  160. {
  161. "Effect": "Allow",
  162. "Action": [
  163. "elasticloadbalancing:Describe*"
  164. ],
  165. "Resource": "*"
  166. },
  167. {
  168. "Effect": "Allow",
  169. "Action": [
  170. "elasticloadbalancing:*"
  171. ],
  172. "Resource": "arn:aws:elasticloadbalancing:*:*:loadbalancer/awseb-*"
  173. }
  174. ]
  175. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement