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 Automating the Deployment of Software Agents Centrally Using AWS Systems Manager

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 ScaleAmazon Web Services
 
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 ReadinessToni de la Fuente
 
Secure Management of Fleet at Scale
Secure Management of Fleet at ScaleSecure Management of Fleet at Scale
Secure Management of Fleet at ScaleAmazon Web Services
 
Getting Started with Amazon Inspector
Getting Started with Amazon InspectorGetting Started with Amazon Inspector
Getting Started with Amazon InspectorAmazon Web Services
 
Linux containers and docker
Linux containers and dockerLinux containers and docker
Linux containers and dockerFabio Fumarola
 
Windows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server ManagementWindows 2012 R2 Multi Server Management
Windows 2012 R2 Multi Server ManagementSharkrit JOBBO
 
Open Audit
Open AuditOpen Audit
Open Auditncspa
 
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 ServicesAmazon 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 ServicesAmazon Web Services
 
DevOps, Microservices and Serverless Architecture
DevOps, Microservices and Serverless ArchitectureDevOps, Microservices and Serverless Architecture
DevOps, Microservices and Serverless ArchitectureMikhail Prudnikov
 
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 AssessmentsEnclaveSecurity
 
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...Emerson Eduardo Rodrigues Von Staffen
 
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...Amazon Web Services
 
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 CloudAndrew Coleman
 
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...Amazon Web Services
 
10052016115118 (2).pptx
10052016115118 (2).pptx10052016115118 (2).pptx
10052016115118 (2).pptxibrahimTumeh1
 
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 Kristana Kane
 

Similar to Automating the Deployment of Software Agents Centrally Using AWS Systems Manager (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 continuousintegration and deployment onaws puttingmoneybackintoyourmis...
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
Devops continuousintegration and deployment onaws puttingmoneybackintoyourmis...
 
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...
 
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

Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
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
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
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
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
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
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
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
 
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
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 

Recently uploaded (20)

Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
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
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
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
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 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
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 

Automating the Deployment of Software Agents Centrally Using AWS Systems Manager

  • 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