SlideShare a Scribd company logo
1 of 87
Download to read offline
@awsgeek lucidchart.com
From Zero to
DevSecOpsin
60 Minutes
@awsgeek lucidchart.com
@awsgeek lucidchart.com
From Zero to
DevSecOpsin
60 Minutes
@awsgeek lucidchart.com
60 Minutes45
DevSecOpsin
From Zero to
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
…
AWS
Event
Producers
@awsgeek lucidchart.com
…
AWS
Event
Producers
@awsgeek lucidchart.com
@awsgeek lucidchart.com
1
@awsgeek lucidchart.com
1 2
@awsgeek lucidchart.com
1 2 3
@awsgeek lucidchart.com
1 2 3
@awsgeek lucidchart.com
<?php
require 'vendor/autoload.php';
$ec2 = new AwsEc2Ec2Client([
'version' => 'latest',
'region' => 'us-west-2'
]);
$res = $ec2->startInstances([
'InstanceIds' => [ id1, id2, ... ],
...
]);
@awsgeek lucidchart.com
"eventTime": "2018-02-07T22:18:40Z",
"eventSource": "ec2.amazonaws.com",
"eventName": "StartInstances",
"awsRegion": "us-west-2",
"sourceIPAddress": "24.25.26.27",
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
"eventVersion": "1.05",
"principalId": "123456789012",
"arn":"arn:aws:iam::xx:user/jerry",
"accountId": "123456789012",
"accessKeyId": "abcdefghijklmnop",
"userName": "jerry",
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
AWS
Event
Consumers
@awsgeek lucidchart.com
AWS
Event
Consumers
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
1
@awsgeek lucidchart.com
<?php
require 'vendor/autoload.php';
$ct = new AwsCloudTrailCloudTrailClient([
'version' => 'latest',
'region' => 'us-west-2'
]);
$res = $ct->stopLogging([
'Name' => <trail name>,
...
]);
@awsgeek lucidchart.com
2
1
@awsgeek lucidchart.com
2
1
3
@awsgeek lucidchart.com
A
@awsgeek lucidchart.com
2
1
3
4
@awsgeek lucidchart.com
function processEvent(event, callback):
region = event['detail']['awsRegion']
message = {
'channel': SLACK_CHANNEL,
'text’:
"CloudTrail disabled in %s" %(region)
}
...
response = urlopen(req)
@awsgeek lucidchart.com
A
B
@awsgeek lucidchart.com
C
A
B
@awsgeek lucidchart.com
2
1
3
4
5
@awsgeek lucidchart.com
2
1
3
4
5
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
2
1
3
@awsgeek lucidchart.com
2
1
3
4
@awsgeek lucidchart.com
2
1
3
4
5
@awsgeek lucidchart.com
2
1
3
4
5
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
1
@awsgeek lucidchart.com
2
1
@awsgeek lucidchart.com
2
3
1
@awsgeek lucidchart.com
2
3
4
1
@awsgeek lucidchart.com
exports.subscribe = (event, callback) => {
...
const options = url.parse(slackUrl);
options.method = 'POST’;
...
const post = https.request(options,
@awsgeek lucidchart.com
2
3
4
1 5
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
1
@awsgeek lucidchart.com
2
1
3
4
@awsgeek lucidchart.com
2
1
3
4
5
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
@awsgeek lucidchart.com
1
2
3
4
5
6
@awsgeek lucidchart.com
@awsgeek lucidchart.com
ThankYou!
Read more:
lucidchart.com/blog/cloud
Follow:
@awsgeekon Twitter
See more:
awsgeek.com

More Related Content

Similar to ZendCon/OE: From Zero to DevSecOps in 60 Minutes

ZendCon/OE: Machine Leaning in the Cloud
ZendCon/OE: Machine Leaning in the CloudZendCon/OE: Machine Leaning in the Cloud
ZendCon/OE: Machine Leaning in the Cloudjerryhargrove
 
Deploying and Scaling Microservices
Deploying and Scaling MicroservicesDeploying and Scaling Microservices
Deploying and Scaling MicroservicesSam Newman
 
Cascadia PHP '18 - Machine Learning on AWS (for Noobs)
Cascadia PHP '18 - Machine Learning on AWS (for Noobs)Cascadia PHP '18 - Machine Learning on AWS (for Noobs)
Cascadia PHP '18 - Machine Learning on AWS (for Noobs)jerryhargrove
 
(ARC317) Maintaining a Resilient Front Door at Massive Scale | AWS re:Invent ...
(ARC317) Maintaining a Resilient Front Door at Massive Scale | AWS re:Invent ...(ARC317) Maintaining a Resilient Front Door at Massive Scale | AWS re:Invent ...
(ARC317) Maintaining a Resilient Front Door at Massive Scale | AWS re:Invent ...Amazon Web Services
 
Serverless Development To Production Pipeline
Serverless Development To Production PipelineServerless Development To Production Pipeline
Serverless Development To Production PipelineChase Douglas
 
【IVS CTO Night & Day】Amazon Container Services
【IVS CTO Night & Day】Amazon Container Services【IVS CTO Night & Day】Amazon Container Services
【IVS CTO Night & Day】Amazon Container ServicesAmazon Web Services Japan
 
Testing and Monitoring and Broken Things | Nikki Attea | Sensu
Testing and Monitoring and Broken Things | Nikki Attea | SensuTesting and Monitoring and Broken Things | Nikki Attea | Sensu
Testing and Monitoring and Broken Things | Nikki Attea | SensuInfluxData
 
WCSD - GutenWhat? A Gutenberg FAQ
WCSD - GutenWhat? A Gutenberg FAQWCSD - GutenWhat? A Gutenberg FAQ
WCSD - GutenWhat? A Gutenberg FAQRoy Sivan
 
Podcast with Wordpress - Become Internet Rockstar
Podcast with Wordpress - Become Internet RockstarPodcast with Wordpress - Become Internet Rockstar
Podcast with Wordpress - Become Internet RockstarAlex Harris
 

Similar to ZendCon/OE: From Zero to DevSecOps in 60 Minutes (10)

ZendCon/OE: Machine Leaning in the Cloud
ZendCon/OE: Machine Leaning in the CloudZendCon/OE: Machine Leaning in the Cloud
ZendCon/OE: Machine Leaning in the Cloud
 
Deploying and Scaling Microservices
Deploying and Scaling MicroservicesDeploying and Scaling Microservices
Deploying and Scaling Microservices
 
Cascadia PHP '18 - Machine Learning on AWS (for Noobs)
Cascadia PHP '18 - Machine Learning on AWS (for Noobs)Cascadia PHP '18 - Machine Learning on AWS (for Noobs)
Cascadia PHP '18 - Machine Learning on AWS (for Noobs)
 
(ARC317) Maintaining a Resilient Front Door at Massive Scale | AWS re:Invent ...
(ARC317) Maintaining a Resilient Front Door at Massive Scale | AWS re:Invent ...(ARC317) Maintaining a Resilient Front Door at Massive Scale | AWS re:Invent ...
(ARC317) Maintaining a Resilient Front Door at Massive Scale | AWS re:Invent ...
 
Serverless Development To Production Pipeline
Serverless Development To Production PipelineServerless Development To Production Pipeline
Serverless Development To Production Pipeline
 
Docker on azure
Docker on azureDocker on azure
Docker on azure
 
【IVS CTO Night & Day】Amazon Container Services
【IVS CTO Night & Day】Amazon Container Services【IVS CTO Night & Day】Amazon Container Services
【IVS CTO Night & Day】Amazon Container Services
 
Testing and Monitoring and Broken Things | Nikki Attea | Sensu
Testing and Monitoring and Broken Things | Nikki Attea | SensuTesting and Monitoring and Broken Things | Nikki Attea | Sensu
Testing and Monitoring and Broken Things | Nikki Attea | Sensu
 
WCSD - GutenWhat? A Gutenberg FAQ
WCSD - GutenWhat? A Gutenberg FAQWCSD - GutenWhat? A Gutenberg FAQ
WCSD - GutenWhat? A Gutenberg FAQ
 
Podcast with Wordpress - Become Internet Rockstar
Podcast with Wordpress - Become Internet RockstarPodcast with Wordpress - Become Internet Rockstar
Podcast with Wordpress - Become Internet Rockstar
 

Recently uploaded

2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...Martijn de Jong
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘RTylerCroy
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...Neo4j
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUK Journal
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?Igalia
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Drew Madelung
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Enterprise Knowledge
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Servicegiselly40
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 

Recently uploaded (20)

2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 

ZendCon/OE: From Zero to DevSecOps in 60 Minutes