SlideShare a Scribd company logo
1 of 23
SINGAPORE
Automating the Deployment
of Software Agents Centrally
Using AWS Systems Manager
Chathra Serasinghe | 28th of January 2023
About me
• Senior Engineer - Versent
• AWS Ambassador
• AWS Community Builder
• AWS User group Singapore – Volunteer
• Over 10+ Cloud/DevOps Certifications(AWS,Kubernetes..)
• Musician
• Film Playback Singer – Sri Lanka
• Music Director – Sri Lanka
Agenda
• What is a Software Agent?
• Agent Deployment Use cases
• Foundational AWS Services
• Demo Architecture
• Demo Video
What is a Software Agent?
• A self-contained software program
• Typically packaged as msi,rpm,deb..
• Acting as representative of something
• Goal-oriented
• Carries out a task and embodies knowledge for a purpose
• Can communicate with other entities for its tasks
Agent Deployment Use Cases
• Endpoint security
• Threat intelligence
• Software asset management
• Inventory
• License management
Foundational AWS Services
Systems Manager
• Helps you manage your EC2s and On-premise systems at a scale
• Apply OS patches
• Configure Windows and Linux operating systems
• Free service*- (Most of the important features are free)
• But its underrated
Systems Manager
• Prerequisites:
• SSM Agent installed
• Access Control
• Instance profile role with appropriate permissions
AmazonSSMManagedInstanceCore policy
• Privilege to manage the System Manager Service
• Connectivity to System Manager endpoints
• Managed instances must also allow HTTPS (port 443) outbound traffic to the
System Manager endpoints
• Create VPC endpoints(Only for private instances with no internet access)
Systems Manager features
• Run Command
• Automation
• Patch Manager
• State Manager
• Maintainance Windows
• Parameter Store
• Distributor
• and many more….
Systems Manager - Automation
• Help to orchestrate operation playbooks at scale
• Able to run automations centrally across multiple AWS Regions and AWS
accounts or AWS Organizations organizational units (OUs)
• Enhanced integrations
• Ability to call and run AWS API actions
E.g. :- creating a Cloudformation Stack
• Ability to run scripts(Powershell,Python)
• AWS service catalog self-service actions
Systems Manager - State Manager
• Associates SSM document(Predefined or Own) with instances
• You can run State Manager associations
• Automatically once when provisioned
• At a particular cron schedule
• At a given interval (hourly, daily)
• On demand
Systems Manager - State Manager
• Targets types
• Node ID
• Tag
• Resource group
• All managed nodes within a given account.
• When State Manager detects any configuration changes,
• It automatically re-applied to the nodes originally targeted
Systems Manager - Distributor
• Allows you to securely store and distribute packages
• Software Agents
• Drivers
• Able to share with other AWS accounts
• Distributor lets you package your own software or finds AWS-provided
agent software packages
• Version Control
• Control access to packages using IAM
Systems Manager - Distributor
• Create Package
• Zip files
• Software files (msi,rpm,deb..)
• Install/uninstall/update scripts
• Manifest file(manifest.json)
manifest.json {
"schemaVersion": "2.0",
"version": "1.0.2",
"publisher": "Chathra",
"packages": {
"amazon": {
"_any": {
"x86_64": {
"file": "Linux-snowagent-6.4.3-x64.rpm.zip"
}
}
},
"redhat": {
"_any": {
"x86_64": {
"file": "Linux-snowagent-6.4.3-x64.rpm.zip"
}
}
},
"windows": {
"_any": {
"x86_64": {
"file": "windowsserver-snowagent-6.10.1-x64.msi.zip"
}
}
}
},
"files": {
"Linux-snowagent-6.4.3-x64.rpm.zip": {
"checksums": {
"sha256": "bec38c965b3733fa3af4bf7885563562c32dc73f59ba41fda771abe03d309da9"
}
},
"windowsserver-snowagent-6.10.1-x64.msi.zip": {
"checksums": {
"sha256": "33c11cd310789fb849f96c5fc16870579f7665870a23273e4fdcb9b348a20d5c"
}
}
}
}
Systems Manager - Distributor
• Methods of installing package
• Run Command
• State Manager Association(Recommended)
• Automatically install on new instances if target requirements met
Control Tower
• Landing zone
• Preconfigured multi-account environment based on best practice blueprints
• Secure
• Scalable
• Control tower helps to automate the landing zone
• Well-Architected
Customizations for Control Tower
Reference: AWS Documentation
Demo Architecture
Management Account
Member account
Agent Distribution
Event rule
(daily)
Automation
State Manager
Association
Instances
Customization for
Control Tower Pipeline
Custom control
tower
configuration
AWS Control Tower
Deploy Stack sets
manifest.yaml
Creates
Deploys agent
Agent Package artifacts
(zip files and
manifest.json)
triggers
update commit
Shared Services Account
SSM Document(Agent
Package)
Key Takeaways
• This method is useful when you don’t want to include the agent in Golden
AMIs
• Decoupling - Agent updates are not dependent with Golden AMI
• When you have Exceptions (e.g.:- Virtual Appliances), you must implement a
suitable tagging strategy.
• You cannot utilize this approach if you cannot install SSM agent
• Incompatible/Older OS versions (e.g.:- Red hat 5)
• Due to company security policies
Thank You!

More Related Content

Similar to AWS_Community_Day_2023-Chathra Serasinghe.pptx

An Introduction to PowerShell for Security Assessments
An Introduction to PowerShell for Security AssessmentsAn Introduction to PowerShell for Security Assessments
An Introduction to PowerShell for Security Assessments
EnclaveSecurity
 

Similar to AWS_Community_Day_2023-Chathra Serasinghe.pptx (20)

Amazon EC2 Systems Manager for Hybrid Cloud Management at Scale
Amazon EC2 Systems Manager for Hybrid Cloud Management at ScaleAmazon EC2 Systems Manager for Hybrid Cloud Management at Scale
Amazon EC2 Systems Manager for Hybrid Cloud Management at Scale
 
Alabama CyberNow 2018: Cloud Hardening and Digital Forensics Readiness
Alabama CyberNow 2018: Cloud Hardening and Digital Forensics ReadinessAlabama CyberNow 2018: Cloud Hardening and Digital Forensics Readiness
Alabama CyberNow 2018: Cloud Hardening and Digital Forensics Readiness
 
Secure Management of Fleet at Scale
Secure Management of Fleet at ScaleSecure Management of Fleet at Scale
Secure Management of Fleet at Scale
 
Getting Started with Amazon Inspector
Getting Started with Amazon InspectorGetting Started with Amazon Inspector
Getting Started with Amazon Inspector
 
Linux containers and docker
Linux containers and dockerLinux containers and docker
Linux containers and docker
 
Windows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server ManagementWindows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server Management
 
Open Audit
Open AuditOpen Audit
Open Audit
 
TechBeats #2
TechBeats #2TechBeats #2
TechBeats #2
 
Infrastructure as Code
Infrastructure as CodeInfrastructure as Code
Infrastructure as Code
 
B875.pptx
B875.pptxB875.pptx
B875.pptx
 
Increase Speed and Agility with Amazon Web Services
Increase Speed and Agility with Amazon Web ServicesIncrease Speed and Agility with Amazon Web Services
Increase Speed and Agility with Amazon Web Services
 
Increase Speed and Agility with Amazon Web Services
Increase Speed and Agility with Amazon Web ServicesIncrease Speed and Agility with Amazon Web Services
Increase Speed and Agility with Amazon Web Services
 
DevOps, Microservices and Serverless Architecture
DevOps, Microservices and Serverless ArchitectureDevOps, Microservices and Serverless Architecture
DevOps, Microservices and Serverless Architecture
 
An Introduction to PowerShell for Security Assessments
An Introduction to PowerShell for Security AssessmentsAn Introduction to PowerShell for Security Assessments
An Introduction to PowerShell for Security Assessments
 
DevOps, Continuous Integration and Deployment on AWS: Putting Money Back into...
DevOps, Continuous Integration and Deployment on AWS: Putting Money Back into...DevOps, Continuous Integration and Deployment on AWS: Putting Money Back into...
DevOps, Continuous Integration and Deployment on AWS: Putting Money Back into...
 
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
 
IBM InterConnect 2015 - IIB in the Cloud
IBM InterConnect 2015 - IIB in the CloudIBM InterConnect 2015 - IIB in the Cloud
IBM InterConnect 2015 - IIB in the Cloud
 
Operations and Security at Cloud Scale with Amazon EC2 System Manager - AWS S...
Operations and Security at Cloud Scale with Amazon EC2 System Manager - AWS S...Operations and Security at Cloud Scale with Amazon EC2 System Manager - AWS S...
Operations and Security at Cloud Scale with Amazon EC2 System Manager - AWS S...
 
10052016115118 (2).pptx
10052016115118 (2).pptx10052016115118 (2).pptx
10052016115118 (2).pptx
 
Automating Security in Cloud Workloads with DevSecOps
Automating Security in Cloud Workloads with DevSecOps Automating Security in Cloud Workloads with DevSecOps
Automating Security in Cloud Workloads with DevSecOps
 

Recently uploaded

Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Recently uploaded (20)

[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
Web Form Automation for Bonterra Impact Management (fka Social Solutions Apri...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 
AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024AXA XL - Insurer Innovation Award Americas 2024
AXA XL - Insurer Innovation Award Americas 2024
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
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
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 

AWS_Community_Day_2023-Chathra Serasinghe.pptx

  • 2. Automating the Deployment of Software Agents Centrally Using AWS Systems Manager Chathra Serasinghe | 28th of January 2023
  • 3. About me • Senior Engineer - Versent • AWS Ambassador • AWS Community Builder • AWS User group Singapore – Volunteer • Over 10+ Cloud/DevOps Certifications(AWS,Kubernetes..) • Musician • Film Playback Singer – Sri Lanka • Music Director – Sri Lanka
  • 4. Agenda • What is a Software Agent? • Agent Deployment Use cases • Foundational AWS Services • Demo Architecture • Demo Video
  • 5. What is a Software Agent? • A self-contained software program • Typically packaged as msi,rpm,deb.. • Acting as representative of something • Goal-oriented • Carries out a task and embodies knowledge for a purpose • Can communicate with other entities for its tasks
  • 6. Agent Deployment Use Cases • Endpoint security • Threat intelligence • Software asset management • Inventory • License management
  • 8. Systems Manager • Helps you manage your EC2s and On-premise systems at a scale • Apply OS patches • Configure Windows and Linux operating systems • Free service*- (Most of the important features are free) • But its underrated
  • 9. Systems Manager • Prerequisites: • SSM Agent installed • Access Control • Instance profile role with appropriate permissions AmazonSSMManagedInstanceCore policy • Privilege to manage the System Manager Service • Connectivity to System Manager endpoints • Managed instances must also allow HTTPS (port 443) outbound traffic to the System Manager endpoints • Create VPC endpoints(Only for private instances with no internet access)
  • 10. Systems Manager features • Run Command • Automation • Patch Manager • State Manager • Maintainance Windows • Parameter Store • Distributor • and many more….
  • 11. Systems Manager - Automation • Help to orchestrate operation playbooks at scale • Able to run automations centrally across multiple AWS Regions and AWS accounts or AWS Organizations organizational units (OUs) • Enhanced integrations • Ability to call and run AWS API actions E.g. :- creating a Cloudformation Stack • Ability to run scripts(Powershell,Python) • AWS service catalog self-service actions
  • 12. Systems Manager - State Manager • Associates SSM document(Predefined or Own) with instances • You can run State Manager associations • Automatically once when provisioned • At a particular cron schedule • At a given interval (hourly, daily) • On demand
  • 13. Systems Manager - State Manager • Targets types • Node ID • Tag • Resource group • All managed nodes within a given account. • When State Manager detects any configuration changes, • It automatically re-applied to the nodes originally targeted
  • 14. Systems Manager - Distributor • Allows you to securely store and distribute packages • Software Agents • Drivers • Able to share with other AWS accounts • Distributor lets you package your own software or finds AWS-provided agent software packages • Version Control • Control access to packages using IAM
  • 15. Systems Manager - Distributor • Create Package • Zip files • Software files (msi,rpm,deb..) • Install/uninstall/update scripts • Manifest file(manifest.json)
  • 16. manifest.json { "schemaVersion": "2.0", "version": "1.0.2", "publisher": "Chathra", "packages": { "amazon": { "_any": { "x86_64": { "file": "Linux-snowagent-6.4.3-x64.rpm.zip" } } }, "redhat": { "_any": { "x86_64": { "file": "Linux-snowagent-6.4.3-x64.rpm.zip" } } }, "windows": { "_any": { "x86_64": { "file": "windowsserver-snowagent-6.10.1-x64.msi.zip" } } } }, "files": { "Linux-snowagent-6.4.3-x64.rpm.zip": { "checksums": { "sha256": "bec38c965b3733fa3af4bf7885563562c32dc73f59ba41fda771abe03d309da9" } }, "windowsserver-snowagent-6.10.1-x64.msi.zip": { "checksums": { "sha256": "33c11cd310789fb849f96c5fc16870579f7665870a23273e4fdcb9b348a20d5c" } } } }
  • 17. Systems Manager - Distributor • Methods of installing package • Run Command • State Manager Association(Recommended) • Automatically install on new instances if target requirements met
  • 18. Control Tower • Landing zone • Preconfigured multi-account environment based on best practice blueprints • Secure • Scalable • Control tower helps to automate the landing zone • Well-Architected
  • 19. Customizations for Control Tower Reference: AWS Documentation
  • 21. Management Account Member account Agent Distribution Event rule (daily) Automation State Manager Association Instances Customization for Control Tower Pipeline Custom control tower configuration AWS Control Tower Deploy Stack sets manifest.yaml Creates Deploys agent Agent Package artifacts (zip files and manifest.json) triggers update commit Shared Services Account SSM Document(Agent Package)
  • 22. Key Takeaways • This method is useful when you don’t want to include the agent in Golden AMIs • Decoupling - Agent updates are not dependent with Golden AMI • When you have Exceptions (e.g.:- Virtual Appliances), you must implement a suitable tagging strategy. • You cannot utilize this approach if you cannot install SSM agent • Incompatible/Older OS versions (e.g.:- Red hat 5) • Due to company security policies

Editor's Notes

  1. Good Afternoon Everyone! Not sleepy or tired after having series of sessions and great lunch. Unfortunately, no Questions due to time constraints as advised by the organizers
  2. My topic is. automating the deployment of software agents centrally using AWS systems Manager. In other words what I am trying to do here is to deploy software agents to multi account AWS environment.
  3. Before I dive into deep,let me introduce my self. I am Chathra Serasinghe and working as Senior Engineer at Versent.
  4. in today’s session. I’ll be discussing about…. By the end of this session, you'll have a better understanding of how to deploy an agent in multi-account AWS enviroment and how it can benefit you and your organization. So, let's get started
  5. Run Command: Allows you to run shell commands or PowerShell scripts on your instances. It integrates with Amazon CloudWatch Automation: allows you to automate common IT tasks across your AWS resources. Later I will explain you further. Patch Manager: Patch manager service is for Patching your instances.
  6. virtual appliance is a preconfigured software solution installed on a virtual machine