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

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, 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
 
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
 
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 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

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
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
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 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
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdfChristopherTHyatt
 
🐬 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
 
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
 
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
 
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
 
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
 
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
 
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
 
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
 
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
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)wesley chun
 
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
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
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 2024The Digital Insurer
 

Recently uploaded (20)

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...
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
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 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
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Evaluating the top large language models.pdf
Evaluating the top large language models.pdfEvaluating the top large language models.pdf
Evaluating the top large language models.pdf
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
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
 
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...
 
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...
 
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
 
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...
 
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
 
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
 
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
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
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
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
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
 

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