Successfully reported this slideshow.

ZendCon/OE: From Zero to DevSecOps in 60 Minutes

0

Share

Loading in …3
×
1 of 87
1 of 87

More Related Content

Related Books

Free with a 14 day trial from Scribd

See all

ZendCon/OE: From Zero to DevSecOps in 60 Minutes

  1. 1. @awsgeek lucidchart.com From Zero to DevSecOpsin 60 Minutes
  2. 2. @awsgeek lucidchart.com
  3. 3. @awsgeek lucidchart.com From Zero to DevSecOpsin 60 Minutes
  4. 4. @awsgeek lucidchart.com 60 Minutes45 DevSecOpsin From Zero to
  5. 5. @awsgeek lucidchart.com
  6. 6. @awsgeek lucidchart.com
  7. 7. @awsgeek lucidchart.com
  8. 8. @awsgeek lucidchart.com
  9. 9. @awsgeek lucidchart.com
  10. 10. @awsgeek lucidchart.com
  11. 11. @awsgeek lucidchart.com
  12. 12. @awsgeek lucidchart.com
  13. 13. @awsgeek lucidchart.com
  14. 14. @awsgeek lucidchart.com
  15. 15. @awsgeek lucidchart.com
  16. 16. @awsgeek lucidchart.com
  17. 17. @awsgeek lucidchart.com
  18. 18. @awsgeek lucidchart.com
  19. 19. @awsgeek lucidchart.com
  20. 20. @awsgeek lucidchart.com
  21. 21. @awsgeek lucidchart.com … AWS Event Producers
  22. 22. @awsgeek lucidchart.com … AWS Event Producers
  23. 23. @awsgeek lucidchart.com
  24. 24. @awsgeek lucidchart.com 1
  25. 25. @awsgeek lucidchart.com 1 2
  26. 26. @awsgeek lucidchart.com 1 2 3
  27. 27. @awsgeek lucidchart.com 1 2 3
  28. 28. @awsgeek lucidchart.com <?php require 'vendor/autoload.php'; $ec2 = new AwsEc2Ec2Client([ 'version' => 'latest', 'region' => 'us-west-2' ]); $res = $ec2->startInstances([ 'InstanceIds' => [ id1, id2, ... ], ... ]);
  29. 29. @awsgeek lucidchart.com "eventTime": "2018-02-07T22:18:40Z", "eventSource": "ec2.amazonaws.com", "eventName": "StartInstances", "awsRegion": "us-west-2", "sourceIPAddress": "24.25.26.27",
  30. 30. @awsgeek lucidchart.com
  31. 31. @awsgeek lucidchart.com
  32. 32. @awsgeek lucidchart.com
  33. 33. @awsgeek lucidchart.com
  34. 34. @awsgeek lucidchart.com "eventVersion": "1.05", "principalId": "123456789012", "arn":"arn:aws:iam::xx:user/jerry", "accountId": "123456789012", "accessKeyId": "abcdefghijklmnop", "userName": "jerry",
  35. 35. @awsgeek lucidchart.com
  36. 36. @awsgeek lucidchart.com
  37. 37. @awsgeek lucidchart.com
  38. 38. @awsgeek lucidchart.com AWS Event Consumers
  39. 39. @awsgeek lucidchart.com AWS Event Consumers
  40. 40. @awsgeek lucidchart.com
  41. 41. @awsgeek lucidchart.com
  42. 42. @awsgeek lucidchart.com
  43. 43. @awsgeek lucidchart.com
  44. 44. @awsgeek lucidchart.com
  45. 45. @awsgeek lucidchart.com 1
  46. 46. @awsgeek lucidchart.com <?php require 'vendor/autoload.php'; $ct = new AwsCloudTrailCloudTrailClient([ 'version' => 'latest', 'region' => 'us-west-2' ]); $res = $ct->stopLogging([ 'Name' => <trail name>, ... ]);
  47. 47. @awsgeek lucidchart.com 2 1
  48. 48. @awsgeek lucidchart.com 2 1 3
  49. 49. @awsgeek lucidchart.com A
  50. 50. @awsgeek lucidchart.com 2 1 3 4
  51. 51. @awsgeek lucidchart.com function processEvent(event, callback): region = event['detail']['awsRegion'] message = { 'channel': SLACK_CHANNEL, 'text’: "CloudTrail disabled in %s" %(region) } ... response = urlopen(req)
  52. 52. @awsgeek lucidchart.com A B
  53. 53. @awsgeek lucidchart.com C A B
  54. 54. @awsgeek lucidchart.com 2 1 3 4 5
  55. 55. @awsgeek lucidchart.com 2 1 3 4 5
  56. 56. @awsgeek lucidchart.com
  57. 57. @awsgeek lucidchart.com
  58. 58. @awsgeek lucidchart.com
  59. 59. @awsgeek lucidchart.com 2 1 3
  60. 60. @awsgeek lucidchart.com 2 1 3 4
  61. 61. @awsgeek lucidchart.com 2 1 3 4 5
  62. 62. @awsgeek lucidchart.com 2 1 3 4 5
  63. 63. @awsgeek lucidchart.com
  64. 64. @awsgeek lucidchart.com
  65. 65. @awsgeek lucidchart.com
  66. 66. @awsgeek lucidchart.com
  67. 67. @awsgeek lucidchart.com
  68. 68. @awsgeek lucidchart.com 1
  69. 69. @awsgeek lucidchart.com 2 1
  70. 70. @awsgeek lucidchart.com 2 3 1
  71. 71. @awsgeek lucidchart.com 2 3 4 1
  72. 72. @awsgeek lucidchart.com exports.subscribe = (event, callback) => { ... const options = url.parse(slackUrl); options.method = 'POST’; ... const post = https.request(options,
  73. 73. @awsgeek lucidchart.com 2 3 4 1 5
  74. 74. @awsgeek lucidchart.com
  75. 75. @awsgeek lucidchart.com
  76. 76. @awsgeek lucidchart.com
  77. 77. @awsgeek lucidchart.com
  78. 78. @awsgeek lucidchart.com
  79. 79. @awsgeek lucidchart.com 1
  80. 80. @awsgeek lucidchart.com 2 1 3 4
  81. 81. @awsgeek lucidchart.com 2 1 3 4 5
  82. 82. @awsgeek lucidchart.com
  83. 83. @awsgeek lucidchart.com
  84. 84. @awsgeek lucidchart.com
  85. 85. @awsgeek lucidchart.com 1 2 3 4 5 6
  86. 86. @awsgeek lucidchart.com
  87. 87. @awsgeek lucidchart.com ThankYou! Read more: lucidchart.com/blog/cloud Follow: @awsgeekon Twitter See more: awsgeek.com

×