mirror of
https://github.com/BagelHole/DevOps-Security-Agent-Skills.git
synced 2026-08-22 12:49:53 +02:00
75 lines
1.3 KiB
Markdown
75 lines
1.3 KiB
Markdown
---
|
|||
|
|
name: asset-inventory
|
||
|
|
description: Maintain IT asset inventory and configuration management database. Track hardware, software, and cloud resources. Use when managing IT assets.
|
||
|
|
license: MIT
|
||
|
|
metadata:
|
||
|
|
author: devops-skills
|
||
|
|
version: "1.0"
|
||
|
|
---
|
||
|
|
|
||
|
|
# Asset Inventory
|
||
|
|
|
||
|
|
Maintain comprehensive IT asset tracking.
|
||
|
|
|
||
|
|
## Asset Categories
|
||
|
|
|
||
|
|
```yaml
|
||
|
|
asset_types:
|
||
|
|
hardware:
|
||
|
|
- Servers
|
||
|
|
- Network devices
|
||
|
|
- Endpoints
|
||
|
|
|
||
|
|
software:
|
||
|
|
- Applications
|
||
|
|
- Operating systems
|
||
|
|
- Licenses
|
||
|
|
|
||
|
|
cloud:
|
||
|
|
- Compute instances
|
||
|
|
- Storage
|
||
|
|
- Databases
|
||
|
|
|
||
|
|
data:
|
||
|
|
- Databases
|
||
|
|
- File shares
|
||
|
|
- Backups
|
||
|
|
```
|
||
|
|
|
||
|
|
## AWS Inventory
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# List all resources
|
||
|
|
aws resourcegroupstaggingapi get-resources
|
||
|
|
|
||
|
|
# EC2 instances
|
||
|
|
aws ec2 describe-instances --query 'Reservations[*].Instances[*].[InstanceId,InstanceType,State.Name]'
|
||
|
|
|
||
|
|
# AWS Config
|
||
|
|
aws configservice describe-configuration-recorders
|
||
|
|
```
|
||
|
|
|
||
|
|
## Asset Database Schema
|
||
|
|
|
||
|
|
```yaml
|
||
|
|
asset:
|
||
|
|
id: unique identifier
|
||
|
|
name: display name
|
||
|
|
type: hardware/software/cloud
|
||
|
|
owner: responsible team
|
||
|
|
classification: public/internal/confidential
|
||
|
|
location: physical/cloud location
|
||
|
|
status: active/retired/decommissioned
|
||
|
|
created: timestamp
|
||
|
|
updated: timestamp
|
||
|
|
tags: []
|
||
|
|
```
|
||
|
|
|
||
|
|
## Best Practices
|
||
|
|
|
||
|
|
- Automated discovery
|
||
|
|
- Regular reconciliation
|
||
|
|
- Owner assignment
|
||
|
|
- Classification tagging
|
||
|
|
- Lifecycle tracking
|