You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`sensitive_patterns`: Regular expressions to identify and redact sensitive information
107
-
-`risk_rules`: Patterns to identify high and medium risk changes
108
-
109
-
## Example Output
144
+
Use the configuration:
110
145
111
-
### Default Output (without --show-module)
112
-
```
113
-
Infrastructure Change Analysis
114
-
==============================
115
-
Total Changes: 5
116
-
Create: 2
117
-
Update: 2
118
-
Delete: 1
119
-
120
-
Risk Assessment:
121
-
High Risks:
122
-
- High risk: Security-related configuration change
123
-
Medium Risks:
124
-
- Medium risk: Version change could cause compatibility issues
125
-
126
-
Resource Details:
127
-
CREATE aws_s3_bucket: project-storage-[REDACTED]
128
-
UPDATE aws_security_group: app-sg-[REDACTED]
129
-
~ ingress = [] -> [{port = 443}]
130
-
UPDATE aws_ecs_service: api-service
131
-
DELETE aws_iam_role: legacy-role
132
-
CREATE aws_lambda_function: processor-function
146
+
```bash
147
+
tfsumpy plan.json --config config.json
133
148
```
134
149
135
-
### With Module Grouping (--show-module)
136
-
```
137
-
Infrastructure Change Analysis
138
-
==============================
139
-
Total Changes: 5
140
-
Create: 2
141
-
Update: 2
142
-
Delete: 1
143
-
144
-
Changes by Module:
145
-
root:
146
-
Create: 1
147
-
Update: 1
148
-
module.storage:
149
-
Create: 1
150
-
Update: 1
151
-
Delete: 1
152
-
153
-
Risk Assessment:
154
-
High Risks:
155
-
- High risk: Security-related configuration change
156
-
Medium Risks:
157
-
- Medium risk: Version change could cause compatibility issues
158
-
159
-
Resource Details:
160
-
Module: root
161
-
CREATE aws_s3_bucket: project-storage-[REDACTED]
162
-
UPDATE aws_security_group: app-sg-[REDACTED]
163
-
~ ingress = [] -> [{port = 443}]
164
-
165
-
Module: module.storage
166
-
UPDATE aws_ecs_service: api-service
167
-
DELETE aws_iam_role: legacy-role
168
-
CREATE aws_lambda_function: processor-function
150
+
### Debug Mode
151
+
152
+
For troubleshooting or detailed logging:
153
+
154
+
```bash
155
+
tfsumpy plan.json --debug
169
156
```
170
157
158
+
This will:
159
+
- Enable verbose logging
160
+
- Show detailed error messages
161
+
- Display analysis process information
162
+
171
163
## Requirements
172
164
173
165
- Python 3.10 or higher
174
-
- Terraform 1.0 or higher (for plan generation)
166
+
- Terraform 1.0 or higher
175
167
176
168
## Contributing
177
169
178
-
Contributions are welcome! Please feel free to submit a Pull Request. Visit our [GitHub repository](https://github.com/rafaelherik/tfsumpy) for more information.
170
+
Contributions are welcome! Please feel free to submit a Pull Request. For major changes:
171
+
172
+
1. Fork the repository
173
+
2. Create your feature branch (`git checkout -b feature/AmazingFeature`)
174
+
3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)
175
+
4. Push to the branch (`git push origin feature/AmazingFeature`)
176
+
5. Open a Pull Request
177
+
178
+
Please make sure to update tests as appropriate.
179
179
180
180
## License
181
181
182
-
This project is licensed under the MIT License - see the LICENSE file for details.
182
+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.
0 commit comments