केंद्रीकृत पैच अनुपालन रिपोर्टिंग
पैच अनुपालन क्या है?
पैच अनुपालन यह सुनिश्चित करने की प्रक्रिया है कि सभी कंप्यूटिंग रिसोर्सेज में ऑर्गनाइज़ेशनात्मक नीतियों के अनुसार नवीनतम सुरक्षा अपडेट और बग फिक्स इंस्टॉल हैं। एक सिस्टम को "पैच अनुपालित" माना जाता है जब आपकी patch baseline में परिभाषित सभी आवश्यक patches सफलतापूर्वक लागू किए गए हों। गैर-अनुपालित सिस्टम में महत्वपूर्ण सुरक्षा अपडेट गायब हो सकते हैं, जो संभावित रूप से आपके ऑर्गनाइज़ेशन को सुरक्षा कमजोरियों के प्रति उजागर करते हैं।
कई AWS accounts और regions में फैले आधुनि क क्लाउड एनवायरनमेंट में, विकेंद्रीकृत पैच प्रबंधन दृश्यता अंतराल, असंगत रिपोर्टिंग, कमजोरियों के प्रति विलंबित प्रतिक्रियाएं, जटिल audit प्रक्रियाएं, और टीमों में दोहराए गए प्रयास सहित महत्वपूर्ण चुनौतियां बनाता है।
केंद्रीकृत पैच अनुपालन रिपोर्टिंग सभी accounts और regions से डेटा को एक ही स्थान पर समेकित करके इन चुनौतियों को संबोधित करती है, जो आपकी सुरक्षा स्थिति का एक व्यापक दृश्य प्रदान करती है।
AWS Systems Manager इस केंद्रीकरण की नींव प्रदान करता है - patching प्रक्रियाओं को स्वचालित करने के लिए Patch Manager, compliance data को एक central S3 bucket में एकीकृत करने के लिए resource data syncs, और डेटा को transform, query और visualize करने के लिए AWS Glue, Amazon Athena, और Amazon QuickSight जैसी analytics सेवाएं।
Resource data sync JSON फ़ाइल के रूप में inventory और patch compliance metadata प्रदान करता है। Athena और QuickSight के विकल्प के रूप में, आप किसी भी BI या analytics tool का उपयोग कर सकते हैं जो S3 bucket से डेटा pull कर सके।
उद्देश्य
इस recipe का उद्देश्य sample CloudFormation templates प्रदान करना है जिनका उपयोग केंद्रीकृत पैच अनुपालन रिपोर्टिंग के लिए आवश्यक resources प्रोविज़न करने के लिए किया जा सकता है। यह recipe patch scan या install operations तैनात करना कवर नहीं करती।
अधिक जानकारी के लिए Patching managed nodes using AWS Systems Manager and tagging देखें।
पूर ्वापेक्षाएं
Deployment शुरू करने से पहले, सुनिश्चित करें कि आपके पास:
- AWS Organizations setup: एक properly configured AWS Organization जिसमें management account और member accounts हों।
- Managed nodes configured: Amazon EC2 instances, AWS IoT Greengrass core devices, on-premises servers, edge devices, और VMs Systems Manager managed nodes होने चाहिए।
- Patch operations implemented: कम से कम एक patch scan operation कॉन्फ़िगर और निष्पादित होना चाहिए।
- IAM permissions: CloudFormation templates deploy करने और आवश्यक resources बनाने के लिए उचित अनुमतियाँ।
- Amazon QuickSight: QuickSight का उपयोग करके patch compliance information visualize करने के लिए, आपको QuickSight के लिए sign up करना होगा।
- Amazon QuickSight Permissions to S3: आपको यह सुनिश्चित करना होगा कि QuickSight के पास Phase 1: Central account setup में बनाए गए S3 buckets की अनुमतियाँ हों।
विचार
Resource data sync
वर्तमान में, AWS CloudFormation में AWS::SSM::ResourceDataSync resource S3Destination property के भीतर DestinationDataSharing property का समर्थन नहीं करता है।
इसके कारण, यह recipe Sample CloudFormation template for organization resource data sync सेक्शन में resource data sync बनाने के लिए Lambda function का उपयोग करने हेतु एक custom CloudFormation resource उपयोग करती है।
Resource data sync बनाने के लिए custom resource के विकल्प:
- Standard resource data sync का उपयोग करें जो CloudFormation द्वारा समर्थित है।
- इसके लिए, आपको एक bucket policy बनानी और उपयोग करनी होगी जो AWS account IDs के आधार पर अनुमतियाँ प्रदान करती है।
- Sample CloudFormation template for central reporting using Athena में S3 bucket policy को अपडेट करें।
AWS::SSM::ResourceDataSyncresource deploy करने के लिए CloudFormation StackSets का उपयोग करें।
- Organization resource data sync बनाने के लिए वैकल्पिक विधि का उपयोग करें, उदाहरण के लिए, AWS CLI या अन्य SDKs के माध्यम से scripting।
लागत विचार
केंद्रीकृत पैच अनुपालन रिपोर्टिंग लागू करने में कई AWS सेवाएं शामिल हैं:
- Amazon S3 pricing:
- Inventory और patch compliance data के लिए Standard storage costs
- कई accounts और regions से data sync करने के लिए Data transfer costs
- AWS Glue pricing:
- Crawler costs
- Amazon Athena pricing:
- Query costs
- AWS Lambda pricing:
- Custom resource Lambda function के लिए न्यूनतम costs
- Amazon QuickSight pricing (वैकल्पिक):
- Author licenses और Reader licenses
आर्किटेक्चर अवलोकन
Central reporting account
निम्नलिखित आरेख में, Central Reporting account आपके AWS Organization के भीतर एक AWS account है जो patch और inventory metadata को संग्रहीत करने और querying या visualization के लिए समर्पित है।
Central reporting account के रूप में AWS Organization management account का उपयोग करना अनुशंसित नहीं है।

- Glue crawler दिन में एक बार S3 bucket को crawl करने के लिए चलता है जो resource data sync द्वारा प्रदान किया गया metadata होस्ट करता है।
- Glue crawler S3 bucket में metadata के आधार पर database और tables अपडेट करता है।
- Glue crawler अपना run पूरा करने के बाद, EventBridge को एक event भेजा जाता है।
- EventBridge rule Lambda function को invoke करता है।
- Lambda function AWS:InstanceInformation table के लिए एक duplicative column हटाता है।
जानकारी
AWS:InstanceInformationtable मेंresourcetypeनामक एक column शामिल है, जो एक partition key भी है, जिससे Athena queries fail हो जाती हैं। EventBridge rule Glue crawler execution द्वारा trigger होता है, जो फिर column delete करने के लिए Lambda function को invoke करता है। - Athena आपके द्वारा चलाई जाने वाली queries के आधार पर Glue database और tables को query करता है।
- (वैकल्पिक) आप patch compliance information visualize करने के लिए QuickSight dashboard बना सकते हैं।
Member account(s)/Region(s) with managed nodes

- Delegated administrator account में CloudFormation StackSet target AWS accounts/Regions में आवश्यक resources बनाने के लिए stack instances बनाता है।
- Stack instance IAM service role, Lambda function, और custom CloudFormation resource बनाता है।
- Lambda function AWS Organizations के लिए Systems Manager resource data sync बनाता है।
- Resource data sync inventory और patch compliance metadata को central reporting account में निर्दिष्ट S3 bucket को भेजता है।
Process timeline
निम्नलिखित आरेख managed nodes के ल िए patch compliance querying की process timeline प्रदर्शित करता है।

- Patch scan, install, या inventory metadata gathering operation के बाद, managed node पर SSM agent Systems Manager को data रिपोर्ट करता है।
- Patch और inventory metadata updates की गई कार्रवाइयों के आधार पर resource data sync द्वारा पहचानी जाती हैं।
- Resource data sync metadata को central reporting account में निर्दिष्ट S3 bucket को ship करता है।
- फिर आप operation के बाद results query करने के लिए Athena का उपयोग कर सकते हैं।
Deployment चरण
Deployment checklist
Central reporting account कार्य
- Athena resources के लिए CloudFormation stack deploy करें
- Stack outputs से S3 bucket names नोट करें
- S3 buckets के लिए QuickSight permissions कॉन्फ़िगर करें
- QuickSight visualization के लिए CloudFormation stack deploy करें
- QuickSight analysis तक access verify करें
Member account कार्य (StackSets के माध्यम से)
- Organization resource data sync CloudFormation StackSet deploy करें
- Member accounts में resource data syncs बनाए गए verify करें