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

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
 
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
 
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
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processorsdebabhi2
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slidevu2urc
 
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
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonAnna Loughnan Colquhoun
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
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
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsRoshan Dwivedi
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
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
 
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
 
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
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 

Recently uploaded (20)

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...
 
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
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
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
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
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
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
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
 
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...
 
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...
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 

ZendCon/OE: From Zero to DevSecOps in 60 Minutes