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

Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embeddingZilliz
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenHervé Boutemy
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesZilliz
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 

Recently uploaded (20)

Training state-of-the-art general text embedding
Training state-of-the-art general text embeddingTraining state-of-the-art general text embedding
Training state-of-the-art general text embedding
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
DevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache MavenDevoxxFR 2024 Reproducible Builds with Apache Maven
DevoxxFR 2024 Reproducible Builds with Apache Maven
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Vector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector DatabasesVector Databases 101 - An introduction to the world of Vector Databases
Vector Databases 101 - An introduction to the world of Vector Databases
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 

ZendCon/OE: From Zero to DevSecOps in 60 Minutes