runbooks 0.7.9__py3-none-any.whl → 0.9.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- runbooks/__init__.py +1 -1
- runbooks/cfat/README.md +12 -1
- runbooks/cfat/__init__.py +1 -1
- runbooks/cfat/assessment/runner.py +42 -34
- runbooks/cfat/models.py +1 -1
- runbooks/common/__init__.py +152 -0
- runbooks/common/accuracy_validator.py +1039 -0
- runbooks/common/context_logger.py +440 -0
- runbooks/common/cross_module_integration.py +594 -0
- runbooks/common/enhanced_exception_handler.py +1108 -0
- runbooks/common/enterprise_audit_integration.py +634 -0
- runbooks/common/mcp_integration.py +539 -0
- runbooks/common/performance_monitor.py +387 -0
- runbooks/common/profile_utils.py +216 -0
- runbooks/common/rich_utils.py +171 -0
- runbooks/feedback/user_feedback_collector.py +440 -0
- runbooks/finops/README.md +339 -451
- runbooks/finops/__init__.py +4 -21
- runbooks/finops/account_resolver.py +279 -0
- runbooks/finops/accuracy_cross_validator.py +638 -0
- runbooks/finops/aws_client.py +721 -36
- runbooks/finops/budget_integration.py +313 -0
- runbooks/finops/cli.py +59 -5
- runbooks/finops/cost_processor.py +211 -37
- runbooks/finops/dashboard_router.py +900 -0
- runbooks/finops/dashboard_runner.py +990 -232
- runbooks/finops/embedded_mcp_validator.py +288 -0
- runbooks/finops/enhanced_dashboard_runner.py +8 -7
- runbooks/finops/enhanced_progress.py +327 -0
- runbooks/finops/enhanced_trend_visualization.py +423 -0
- runbooks/finops/finops_dashboard.py +29 -1880
- runbooks/finops/helpers.py +509 -196
- runbooks/finops/iam_guidance.py +400 -0
- runbooks/finops/markdown_exporter.py +466 -0
- runbooks/finops/multi_dashboard.py +1502 -0
- runbooks/finops/optimizer.py +15 -15
- runbooks/finops/profile_processor.py +2 -2
- runbooks/finops/runbooks.inventory.organizations_discovery.log +0 -0
- runbooks/finops/runbooks.security.report_generator.log +0 -0
- runbooks/finops/runbooks.security.run_script.log +0 -0
- runbooks/finops/runbooks.security.security_export.log +0 -0
- runbooks/finops/service_mapping.py +195 -0
- runbooks/finops/single_dashboard.py +710 -0
- runbooks/finops/tests/test_reference_images_validation.py +1 -1
- runbooks/inventory/README.md +12 -1
- runbooks/inventory/core/collector.py +157 -29
- runbooks/inventory/list_ec2_instances.py +9 -6
- runbooks/inventory/list_ssm_parameters.py +10 -10
- runbooks/inventory/organizations_discovery.py +210 -164
- runbooks/inventory/rich_inventory_display.py +74 -107
- runbooks/inventory/run_on_multi_accounts.py +13 -13
- runbooks/main.py +740 -134
- runbooks/metrics/dora_metrics_engine.py +711 -17
- runbooks/monitoring/performance_monitor.py +433 -0
- runbooks/operate/README.md +394 -0
- runbooks/operate/base.py +215 -47
- runbooks/operate/ec2_operations.py +7 -5
- runbooks/operate/privatelink_operations.py +1 -1
- runbooks/operate/vpc_endpoints.py +1 -1
- runbooks/remediation/README.md +489 -13
- runbooks/remediation/commons.py +8 -4
- runbooks/security/ENTERPRISE_SECURITY_FRAMEWORK.md +506 -0
- runbooks/security/README.md +12 -1
- runbooks/security/__init__.py +164 -33
- runbooks/security/compliance_automation.py +12 -10
- runbooks/security/compliance_automation_engine.py +1021 -0
- runbooks/security/enterprise_security_framework.py +931 -0
- runbooks/security/enterprise_security_policies.json +293 -0
- runbooks/security/integration_test_enterprise_security.py +879 -0
- runbooks/security/module_security_integrator.py +641 -0
- runbooks/security/report_generator.py +1 -1
- runbooks/security/run_script.py +4 -8
- runbooks/security/security_baseline_tester.py +36 -49
- runbooks/security/security_export.py +99 -120
- runbooks/sre/README.md +472 -0
- runbooks/sre/__init__.py +33 -0
- runbooks/sre/mcp_reliability_engine.py +1049 -0
- runbooks/sre/performance_optimization_engine.py +1032 -0
- runbooks/sre/reliability_monitoring_framework.py +1011 -0
- runbooks/validation/__init__.py +2 -2
- runbooks/validation/benchmark.py +154 -149
- runbooks/validation/cli.py +159 -147
- runbooks/validation/mcp_validator.py +265 -236
- runbooks/vpc/README.md +478 -0
- runbooks/vpc/__init__.py +2 -2
- runbooks/vpc/manager_interface.py +366 -351
- runbooks/vpc/networking_wrapper.py +62 -33
- runbooks/vpc/rich_formatters.py +22 -8
- {runbooks-0.7.9.dist-info → runbooks-0.9.0.dist-info}/METADATA +136 -54
- {runbooks-0.7.9.dist-info → runbooks-0.9.0.dist-info}/RECORD +94 -55
- {runbooks-0.7.9.dist-info → runbooks-0.9.0.dist-info}/entry_points.txt +1 -1
- runbooks/finops/cross_validation.py +0 -375
- {runbooks-0.7.9.dist-info → runbooks-0.9.0.dist-info}/WHEEL +0 -0
- {runbooks-0.7.9.dist-info → runbooks-0.9.0.dist-info}/licenses/LICENSE +0 -0
- {runbooks-0.7.9.dist-info → runbooks-0.9.0.dist-info}/top_level.txt +0 -0
runbooks/vpc/README.md
ADDED
@@ -0,0 +1,478 @@
|
|
1
|
+
# AWS VPC Networking Operations (CLI)
|
2
|
+
|
3
|
+
The AWS VPC Networking Operations module is an enterprise-grade command-line tool for AWS VPC analysis, cost optimization, and network management. Built with the Rich library for beautiful terminal output, it provides comprehensive VPC insights with cost analysis, security assessment, and automated optimization recommendations.
|
4
|
+
|
5
|
+
## 📈 *vpc-runbooks*.md Enterprise Rollout
|
6
|
+
|
7
|
+
Following proven **99/100 manager score** success patterns established in FinOps:
|
8
|
+
|
9
|
+
### **Rollout Strategy**: Progressive *-runbooks*.md standardization
|
10
|
+
- **Phase 3**: VPC rollout with *vpc-runbooks*.md framework ✅
|
11
|
+
- **Phase 4**: Enhanced networking operations with enterprise patterns (Next)
|
12
|
+
- **Integration**: Complete cost optimization with FinOps module alignment
|
13
|
+
|
14
|
+
## Why AWS VPC Networking Operations?
|
15
|
+
|
16
|
+
Managing VPC networking across multiple AWS accounts requires sophisticated analysis and optimization capabilities. The VPC Operations CLI provides enterprise-grade network analysis, cost optimization insights, and security assessment tools designed for cloud architects and network engineers.
|
17
|
+
|
18
|
+
Key capabilities include:
|
19
|
+
- **VPC Cost Analysis**: Detailed cost breakdown and optimization recommendations
|
20
|
+
- **Network Security Assessment**: Comprehensive security group and NACL analysis
|
21
|
+
- **Resource Utilization**: Unused resource identification and cleanup recommendations
|
22
|
+
- **Multi-Account Support**: Cross-account VPC analysis and management
|
23
|
+
- **Rich Terminal UI**: Professional console output with charts and detailed reporting
|
24
|
+
|
25
|
+
## Table of Contents
|
26
|
+
|
27
|
+
- [Features](#features)
|
28
|
+
- [Prerequisites](#prerequisites)
|
29
|
+
- [Installation](#installation)
|
30
|
+
- [AWS CLI Profile Setup](#aws-cli-profile-setup)
|
31
|
+
- [Command Line Usage](#command-line-usage)
|
32
|
+
- [Options](#command-line-options)
|
33
|
+
- [Examples](#examples)
|
34
|
+
- [VPC Analysis Operations](#vpc-analysis-operations)
|
35
|
+
- [Cost Analysis](#cost-analysis)
|
36
|
+
- [Network Security Assessment](#network-security-assessment)
|
37
|
+
- [Resource Optimization](#resource-optimization)
|
38
|
+
- [Multi-Account Operations](#multi-account-operations)
|
39
|
+
- [Configuration](#configuration)
|
40
|
+
- [Export Formats](#export-formats)
|
41
|
+
- [Contributing](#contributing)
|
42
|
+
- [License](#license)
|
43
|
+
|
44
|
+
---
|
45
|
+
|
46
|
+
## Features
|
47
|
+
|
48
|
+
- **VPC Cost Analysis**:
|
49
|
+
- Detailed cost breakdown by service and resource type
|
50
|
+
- NAT Gateway cost optimization recommendations (up to 30% savings)
|
51
|
+
- Unused resource identification and cleanup suggestions
|
52
|
+
- Historical cost trending and projection analysis
|
53
|
+
- **Network Security Assessment**:
|
54
|
+
- Security group rule analysis and optimization
|
55
|
+
- Network ACL configuration validation
|
56
|
+
- VPC Flow Logs compliance checking
|
57
|
+
- Public access exposure identification
|
58
|
+
- **Resource Optimization**:
|
59
|
+
- Unused Elastic IP identification
|
60
|
+
- Idle Load Balancer detection
|
61
|
+
- VPC Endpoint optimization recommendations
|
62
|
+
- Subnet utilization analysis
|
63
|
+
- **Multi-Account Support**:
|
64
|
+
- Cross-account VPC analysis
|
65
|
+
- AWS Organizations integration
|
66
|
+
- Consolidated reporting across accounts
|
67
|
+
- Role-based access management
|
68
|
+
- **Configuration Management**:
|
69
|
+
- Centralized configuration via TOML files
|
70
|
+
- Environment-specific settings
|
71
|
+
- Profile-based authentication management
|
72
|
+
- **Rich Terminal UI**: Beautiful terminal output with progress indicators and charts
|
73
|
+
- **Export Options**:
|
74
|
+
- JSON export for automation integration
|
75
|
+
- CSV export for spreadsheet analysis
|
76
|
+
- HTML reports for stakeholder communication
|
77
|
+
- PDF reports for executive summaries
|
78
|
+
|
79
|
+
---
|
80
|
+
|
81
|
+
## Prerequisites
|
82
|
+
|
83
|
+
- **Python 3.8 or later**: Ensure you have the required Python version installed
|
84
|
+
- **AWS CLI configured with named profiles**: Set up your AWS CLI profiles for seamless integration
|
85
|
+
- **AWS credentials with permissions**:
|
86
|
+
- `ec2:Describe*` (for VPC and networking resource discovery)
|
87
|
+
- `ce:GetCostAndUsage` (for cost analysis)
|
88
|
+
- `ce:GetUsageReport` (for usage analysis)
|
89
|
+
- `organizations:List*` (for multi-account operations)
|
90
|
+
- `sts:AssumeRole` (for cross-account access)
|
91
|
+
- `sts:GetCallerIdentity` (for identity validation)
|
92
|
+
|
93
|
+
---
|
94
|
+
|
95
|
+
## Installation
|
96
|
+
|
97
|
+
There are several ways to install the AWS VPC Operations CLI:
|
98
|
+
|
99
|
+
### Option 1: Using uv (Fast Python Package Installer)
|
100
|
+
[uv](https://github.com/astral-sh/uv) is a modern Python package installer and resolver that's extremely fast.
|
101
|
+
|
102
|
+
```bash
|
103
|
+
# Install runbooks with VPC operations
|
104
|
+
uv pip install runbooks
|
105
|
+
```
|
106
|
+
|
107
|
+
### Option 2: Using pip
|
108
|
+
```bash
|
109
|
+
# Install runbooks package
|
110
|
+
pip install runbooks
|
111
|
+
```
|
112
|
+
|
113
|
+
---
|
114
|
+
|
115
|
+
## AWS CLI Profile Setup
|
116
|
+
|
117
|
+
Configure your named profiles for VPC operations:
|
118
|
+
|
119
|
+
```bash
|
120
|
+
aws configure --profile vpc-production
|
121
|
+
aws configure --profile vpc-development
|
122
|
+
aws configure --profile vpc-management
|
123
|
+
# ... etc ...
|
124
|
+
```
|
125
|
+
|
126
|
+
For multi-account VPC analysis, ensure cross-account roles are properly configured.
|
127
|
+
|
128
|
+
---
|
129
|
+
|
130
|
+
## Command Line Usage
|
131
|
+
|
132
|
+
Run VPC operations using `runbooks vpc` followed by options:
|
133
|
+
|
134
|
+
```bash
|
135
|
+
runbooks vpc [operation] [options]
|
136
|
+
```
|
137
|
+
|
138
|
+
### Command Line Options
|
139
|
+
|
140
|
+
| Flag | Description |
|
141
|
+
|---|---|
|
142
|
+
| `--profile`, `-p` | AWS profile to use for operations |
|
143
|
+
| `--region`, `-r` | AWS region to analyze (default: us-east-1) |
|
144
|
+
| `--all-regions` | Analyze VPCs across all available regions |
|
145
|
+
| `--account-id` | Specific AWS account to analyze |
|
146
|
+
| `--output-format` | Output format: table, json, csv, html |
|
147
|
+
| `--output-file` | Save results to specified file |
|
148
|
+
| `--cost-analysis` | Include detailed cost analysis |
|
149
|
+
| `--security-analysis` | Include security assessment |
|
150
|
+
| `--optimization-recommendations` | Generate optimization recommendations |
|
151
|
+
|
152
|
+
### Examples
|
153
|
+
|
154
|
+
```bash
|
155
|
+
# Basic VPC analysis
|
156
|
+
runbooks vpc analyze --profile production
|
157
|
+
|
158
|
+
# Multi-region VPC analysis with cost breakdown
|
159
|
+
runbooks vpc analyze --profile production --all-regions --cost-analysis
|
160
|
+
|
161
|
+
# Security-focused VPC assessment
|
162
|
+
runbooks vpc analyze --profile production --security-analysis --output-format html
|
163
|
+
|
164
|
+
# Optimization recommendations
|
165
|
+
runbooks vpc optimize --profile production --region us-east-1
|
166
|
+
|
167
|
+
# Multi-account VPC analysis
|
168
|
+
runbooks vpc analyze --profile management-account --organization-wide
|
169
|
+
```
|
170
|
+
|
171
|
+
---
|
172
|
+
|
173
|
+
## VPC Analysis Operations
|
174
|
+
|
175
|
+
### Cost Analysis
|
176
|
+
|
177
|
+
**Comprehensive Cost Breakdown**:
|
178
|
+
```bash
|
179
|
+
# Detailed VPC cost analysis
|
180
|
+
runbooks vpc analyze --cost-analysis --profile production --region us-east-1
|
181
|
+
|
182
|
+
# Multi-region cost analysis
|
183
|
+
runbooks vpc analyze --cost-analysis --all-regions --profile production
|
184
|
+
|
185
|
+
# NAT Gateway cost optimization
|
186
|
+
runbooks vpc optimize --focus nat-gateways --profile production
|
187
|
+
```
|
188
|
+
|
189
|
+
**Expected Output**:
|
190
|
+
```
|
191
|
+
╭─ VPC Cost Analysis Summary ─╮
|
192
|
+
│ Total Monthly Cost: $2,847.50 │
|
193
|
+
│ NAT Gateway Costs: $1,245.60 │
|
194
|
+
│ Data Transfer: $892.30 │
|
195
|
+
│ Load Balancers: $709.60 │
|
196
|
+
│ │
|
197
|
+
│ 💡 Optimization Potential: │
|
198
|
+
│ • NAT Gateway: 30% savings │
|
199
|
+
│ • Unused EIPs: $45.60/month │
|
200
|
+
│ • Idle LBs: $180.20/month │
|
201
|
+
╰───────────────────────────────╯
|
202
|
+
```
|
203
|
+
|
204
|
+
### Network Security Assessment
|
205
|
+
|
206
|
+
**Security Group Analysis**:
|
207
|
+
```bash
|
208
|
+
# Comprehensive security assessment
|
209
|
+
runbooks vpc analyze --security-analysis --profile production
|
210
|
+
|
211
|
+
# Focus on public access exposure
|
212
|
+
runbooks vpc security --check-public-exposure --profile production
|
213
|
+
|
214
|
+
# Security group rule optimization
|
215
|
+
runbooks vpc security --optimize-rules --profile production
|
216
|
+
```
|
217
|
+
|
218
|
+
**Security Assessment Report**:
|
219
|
+
```
|
220
|
+
╭─ VPC Security Assessment ─╮
|
221
|
+
│ Security Groups: 47 │
|
222
|
+
│ • Compliant: 42 (89%) │
|
223
|
+
│ • Issues Found: 5 (11%) │
|
224
|
+
│ │
|
225
|
+
│ Network ACLs: 12 │
|
226
|
+
│ • Default: 8 │
|
227
|
+
│ • Custom: 4 │
|
228
|
+
│ │
|
229
|
+
│ 🚨 Critical Issues: │
|
230
|
+
│ • Open SSH (0.0.0.0/0): 2 │
|
231
|
+
│ • Open RDP (0.0.0.0/0): 1 │
|
232
|
+
╰────────────────────────────╯
|
233
|
+
```
|
234
|
+
|
235
|
+
### Resource Optimization
|
236
|
+
|
237
|
+
**Unused Resource Detection**:
|
238
|
+
```bash
|
239
|
+
# Find unused VPC resources
|
240
|
+
runbooks vpc optimize --find-unused --profile production
|
241
|
+
|
242
|
+
# Cleanup recommendations
|
243
|
+
runbooks vpc cleanup --dry-run --profile production
|
244
|
+
|
245
|
+
# Resource utilization analysis
|
246
|
+
runbooks vpc analyze --utilization --profile production
|
247
|
+
```
|
248
|
+
|
249
|
+
**Optimization Recommendations**:
|
250
|
+
```
|
251
|
+
╭─ VPC Optimization Recommendations ─╮
|
252
|
+
│ │
|
253
|
+
│ 💰 Cost Savings Opportunities: │
|
254
|
+
│ • Replace NAT Gateway with NAT │
|
255
|
+
│ Instance: $372.60/month savings │
|
256
|
+
│ • Remove 8 unused Elastic IPs: │
|
257
|
+
│ $36.48/month savings │
|
258
|
+
│ • Terminate idle Load Balancer: │
|
259
|
+
│ $180.20/month savings │
|
260
|
+
│ │
|
261
|
+
│ 🛠️ Implementation Priority: │
|
262
|
+
│ 1. High Impact: NAT optimization │
|
263
|
+
│ 2. Medium Impact: EIP cleanup │
|
264
|
+
│ 3. Low Impact: LB consolidation │
|
265
|
+
╰─────────────────────────────────────╯
|
266
|
+
```
|
267
|
+
|
268
|
+
### Multi-Account Operations
|
269
|
+
|
270
|
+
**Organization-Wide Analysis**:
|
271
|
+
```bash
|
272
|
+
# Analyze VPCs across AWS Organization
|
273
|
+
runbooks vpc analyze --organization-wide --profile management-account
|
274
|
+
|
275
|
+
# Cross-account cost comparison
|
276
|
+
runbooks vpc cost-comparison --accounts prod,dev,staging --profile management-account
|
277
|
+
|
278
|
+
# Organization security assessment
|
279
|
+
runbooks vpc security --organization-wide --profile management-account
|
280
|
+
```
|
281
|
+
|
282
|
+
---
|
283
|
+
|
284
|
+
## Configuration
|
285
|
+
|
286
|
+
### Configuration File Support
|
287
|
+
|
288
|
+
Create a `vpc_config.toml` file for centralized configuration:
|
289
|
+
|
290
|
+
```toml
|
291
|
+
# vpc_config.toml
|
292
|
+
[profiles]
|
293
|
+
production = "vpc-prod-profile"
|
294
|
+
development = "vpc-dev-profile"
|
295
|
+
management = "vpc-mgmt-profile"
|
296
|
+
|
297
|
+
[regions]
|
298
|
+
primary = ["us-east-1", "us-west-2"]
|
299
|
+
secondary = ["eu-west-1", "ap-southeast-2"]
|
300
|
+
|
301
|
+
[cost_analysis]
|
302
|
+
include_data_transfer = true
|
303
|
+
include_nat_gateway_hours = true
|
304
|
+
currency = "USD"
|
305
|
+
|
306
|
+
[optimization]
|
307
|
+
nat_gateway_threshold = 1000.0 # Monthly cost threshold
|
308
|
+
eip_unused_days = 7
|
309
|
+
load_balancer_idle_threshold = 0.01 # Request per minute
|
310
|
+
|
311
|
+
[security]
|
312
|
+
check_public_access = true
|
313
|
+
validate_flow_logs = true
|
314
|
+
assess_nacls = true
|
315
|
+
|
316
|
+
[output]
|
317
|
+
default_format = "table"
|
318
|
+
export_directory = "./vpc-reports"
|
319
|
+
```
|
320
|
+
|
321
|
+
**Using Configuration File**:
|
322
|
+
```bash
|
323
|
+
runbooks vpc analyze --config vpc_config.toml
|
324
|
+
```
|
325
|
+
|
326
|
+
### Environment-Specific Configuration
|
327
|
+
|
328
|
+
**Development Environment**:
|
329
|
+
```bash
|
330
|
+
runbooks vpc analyze --profile development --config dev_vpc.toml
|
331
|
+
```
|
332
|
+
|
333
|
+
**Production Environment**:
|
334
|
+
```bash
|
335
|
+
runbooks vpc analyze --profile production --config prod_vpc.toml --security-analysis
|
336
|
+
```
|
337
|
+
|
338
|
+
---
|
339
|
+
|
340
|
+
## Export Formats
|
341
|
+
|
342
|
+
### JSON Output Format
|
343
|
+
|
344
|
+
```bash
|
345
|
+
runbooks vpc analyze --output-format json --output-file vpc_analysis.json --profile production
|
346
|
+
```
|
347
|
+
|
348
|
+
```json
|
349
|
+
{
|
350
|
+
"vpc_analysis": {
|
351
|
+
"timestamp": "2024-01-15T10:30:00Z",
|
352
|
+
"account_id": "123456789012",
|
353
|
+
"region": "us-east-1",
|
354
|
+
"total_vpcs": 5,
|
355
|
+
"cost_analysis": {
|
356
|
+
"total_monthly_cost": 2847.50,
|
357
|
+
"nat_gateway_cost": 1245.60,
|
358
|
+
"data_transfer_cost": 892.30,
|
359
|
+
"load_balancer_cost": 709.60
|
360
|
+
},
|
361
|
+
"optimization_recommendations": [
|
362
|
+
{
|
363
|
+
"type": "nat_gateway_optimization",
|
364
|
+
"potential_savings": 372.60,
|
365
|
+
"priority": "high"
|
366
|
+
}
|
367
|
+
]
|
368
|
+
}
|
369
|
+
}
|
370
|
+
```
|
371
|
+
|
372
|
+
### CSV Output Format
|
373
|
+
|
374
|
+
```bash
|
375
|
+
runbooks vpc analyze --output-format csv --output-file vpc_analysis.csv --profile production
|
376
|
+
```
|
377
|
+
|
378
|
+
### HTML Report Format
|
379
|
+
|
380
|
+
```bash
|
381
|
+
runbooks vpc analyze --output-format html --output-file vpc_report.html --profile production
|
382
|
+
```
|
383
|
+
|
384
|
+
---
|
385
|
+
|
386
|
+
## 💰 VPC Cost Optimization Framework
|
387
|
+
|
388
|
+
### NAT Gateway Optimization
|
389
|
+
|
390
|
+
**30% Cost Savings Strategy**:
|
391
|
+
```bash
|
392
|
+
# Analyze NAT Gateway costs
|
393
|
+
runbooks vpc optimize --focus nat-gateways --profile production
|
394
|
+
|
395
|
+
# Implement NAT instance alternative
|
396
|
+
runbooks vpc optimize --implement nat-instance --profile production --dry-run
|
397
|
+
```
|
398
|
+
|
399
|
+
### Resource Cleanup
|
400
|
+
|
401
|
+
**Unused Resource Management**:
|
402
|
+
```bash
|
403
|
+
# Identify unused Elastic IPs
|
404
|
+
runbooks vpc cleanup --resource-type eip --profile production
|
405
|
+
|
406
|
+
# Clean up unused security groups
|
407
|
+
runbooks vpc cleanup --resource-type security-groups --profile production --dry-run
|
408
|
+
```
|
409
|
+
|
410
|
+
### Multi-Account Cost Comparison
|
411
|
+
|
412
|
+
**Enterprise Cost Management**:
|
413
|
+
```bash
|
414
|
+
# Compare costs across accounts
|
415
|
+
runbooks vpc cost-comparison --accounts all --profile management-account
|
416
|
+
|
417
|
+
# Generate executive cost report
|
418
|
+
runbooks vpc cost-report --format executive --profile management-account
|
419
|
+
```
|
420
|
+
|
421
|
+
---
|
422
|
+
|
423
|
+
## Integration with Other Modules
|
424
|
+
|
425
|
+
### FinOps Integration
|
426
|
+
|
427
|
+
**Combined Cost Analysis**:
|
428
|
+
```bash
|
429
|
+
# Run VPC analysis alongside FinOps dashboard
|
430
|
+
runbooks vpc analyze --profile production --integration finops
|
431
|
+
|
432
|
+
# Export for FinOps dashboard consumption
|
433
|
+
runbooks vpc analyze --output-format json --finops-compatible --profile production
|
434
|
+
```
|
435
|
+
|
436
|
+
### Security Module Integration
|
437
|
+
|
438
|
+
**Comprehensive Security Assessment**:
|
439
|
+
```bash
|
440
|
+
# Combined VPC and security baseline analysis
|
441
|
+
runbooks vpc analyze --security-analysis --integration security --profile production
|
442
|
+
```
|
443
|
+
|
444
|
+
---
|
445
|
+
|
446
|
+
## Contributing
|
447
|
+
|
448
|
+
We welcome contributions! Please see our [Contributing Guidelines](../../../CONTRIBUTING.md) for details.
|
449
|
+
|
450
|
+
### Development Setup
|
451
|
+
```bash
|
452
|
+
git clone https://github.com/1xOps/CloudOps-Runbooks.git
|
453
|
+
cd CloudOps-Runbooks
|
454
|
+
uv sync --all-extras
|
455
|
+
uv run python -m runbooks vpc --help
|
456
|
+
```
|
457
|
+
|
458
|
+
### Running Tests
|
459
|
+
```bash
|
460
|
+
uv run pytest tests/vpc/ -v
|
461
|
+
```
|
462
|
+
|
463
|
+
---
|
464
|
+
|
465
|
+
## License
|
466
|
+
|
467
|
+
This project is licensed under the Apache License 2.0 - see the [LICENSE](../../../LICENSE) file for details.
|
468
|
+
|
469
|
+
---
|
470
|
+
|
471
|
+
## Enterprise Support
|
472
|
+
|
473
|
+
For enterprise support, professional services, and custom integrations:
|
474
|
+
- **Email**: [info@oceansoft.io](mailto:info@oceansoft.io)
|
475
|
+
- **GitHub**: [CloudOps Runbooks Issues](https://github.com/1xOps/CloudOps-Runbooks/issues)
|
476
|
+
- **Documentation**: [Enterprise VPC Documentation](https://docs.cloudops-runbooks.io/vpc)
|
477
|
+
|
478
|
+
Let's optimize your AWS networking costs together. 🚀
|
runbooks/vpc/__init__.py
CHANGED
@@ -19,14 +19,14 @@ Usage:
|
|
19
19
|
|
20
20
|
from .cost_engine import NetworkingCostEngine
|
21
21
|
from .heatmap_engine import NetworkingCostHeatMapEngine
|
22
|
+
from .manager_interface import BusinessRecommendation, ManagerDashboardConfig, VPCManagerInterface
|
22
23
|
from .networking_wrapper import VPCNetworkingWrapper
|
23
|
-
from .manager_interface import VPCManagerInterface, BusinessRecommendation, ManagerDashboardConfig
|
24
24
|
from .rich_formatters import display_cost_table, display_heatmap, display_optimization_recommendations
|
25
25
|
|
26
26
|
__all__ = [
|
27
27
|
"VPCNetworkingWrapper",
|
28
28
|
"VPCManagerInterface",
|
29
|
-
"BusinessRecommendation",
|
29
|
+
"BusinessRecommendation",
|
30
30
|
"ManagerDashboardConfig",
|
31
31
|
"NetworkingCostEngine",
|
32
32
|
"NetworkingCostHeatMapEngine",
|