tfbrief 0.1.0__tar.gz
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.
Potentially problematic release.
This version of tfbrief might be problematic. Click here for more details.
- tfbrief-0.1.0/.github/workflows/ci.yml +57 -0
- tfbrief-0.1.0/.github/workflows/publish.yml +54 -0
- tfbrief-0.1.0/.gitignore +10 -0
- tfbrief-0.1.0/LICENSE +21 -0
- tfbrief-0.1.0/PKG-INFO +147 -0
- tfbrief-0.1.0/README.md +124 -0
- tfbrief-0.1.0/docs/demo.svg +63 -0
- tfbrief-0.1.0/fixtures/minimal-plan.json +249 -0
- tfbrief-0.1.0/pyproject.toml +38 -0
- tfbrief-0.1.0/scripts/refresh_readme_demo.py +237 -0
- tfbrief-0.1.0/scripts/set_version.py +54 -0
- tfbrief-0.1.0/src/tfbrief/__init__.py +20 -0
- tfbrief-0.1.0/src/tfbrief/__main__.py +4 -0
- tfbrief-0.1.0/src/tfbrief/review.py +334 -0
- tfbrief-0.1.0/tests/test_render_plan_review.py +332 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main, master]
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
test:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
strategy:
|
|
12
|
+
matrix:
|
|
13
|
+
python-version: ["3.10", "3.11", "3.12"]
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
- uses: actions/setup-python@v5
|
|
17
|
+
with:
|
|
18
|
+
python-version: ${{ matrix.python-version }}
|
|
19
|
+
- name: Install package
|
|
20
|
+
run: pip install -e .
|
|
21
|
+
- name: Unit tests
|
|
22
|
+
run: python -m unittest discover -s tests -v
|
|
23
|
+
- name: Demo output (fixtures/minimal-plan.json)
|
|
24
|
+
env:
|
|
25
|
+
PYTHONIOENCODING: utf-8
|
|
26
|
+
run: |
|
|
27
|
+
python -m tfbrief < fixtures/minimal-plan.json > /tmp/tfbrief-demo.txt
|
|
28
|
+
echo "::group::TfBrief demo"
|
|
29
|
+
cat /tmp/tfbrief-demo.txt
|
|
30
|
+
echo "::endgroup::"
|
|
31
|
+
|
|
32
|
+
readme-demo:
|
|
33
|
+
name: Refresh README example text
|
|
34
|
+
needs: test
|
|
35
|
+
if: github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')
|
|
36
|
+
runs-on: ubuntu-latest
|
|
37
|
+
permissions:
|
|
38
|
+
contents: write
|
|
39
|
+
steps:
|
|
40
|
+
- uses: actions/checkout@v4
|
|
41
|
+
- uses: actions/setup-python@v5
|
|
42
|
+
with:
|
|
43
|
+
python-version: "3.12"
|
|
44
|
+
- name: Install package
|
|
45
|
+
run: pip install -e .
|
|
46
|
+
- name: Update README demo block
|
|
47
|
+
env:
|
|
48
|
+
PYTHONIOENCODING: utf-8
|
|
49
|
+
run: python scripts/refresh_readme_demo.py
|
|
50
|
+
- name: Commit README if demo changed
|
|
51
|
+
run: |
|
|
52
|
+
git config user.name "github-actions[bot]"
|
|
53
|
+
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
|
54
|
+
git add README.md docs/demo.svg
|
|
55
|
+
git diff --staged --quiet && echo "No demo changes." && exit 0
|
|
56
|
+
git commit -m "ci: refresh README TfBrief example output"
|
|
57
|
+
git push
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*.*.*"
|
|
7
|
+
release:
|
|
8
|
+
types: [published]
|
|
9
|
+
workflow_dispatch:
|
|
10
|
+
inputs:
|
|
11
|
+
version:
|
|
12
|
+
description: "Release version (e.g. 0.1.1)"
|
|
13
|
+
required: true
|
|
14
|
+
type: string
|
|
15
|
+
|
|
16
|
+
permissions:
|
|
17
|
+
contents: read
|
|
18
|
+
id-token: write
|
|
19
|
+
|
|
20
|
+
jobs:
|
|
21
|
+
pypi:
|
|
22
|
+
name: Build and upload to PyPI
|
|
23
|
+
runs-on: ubuntu-latest
|
|
24
|
+
environment: pypi
|
|
25
|
+
steps:
|
|
26
|
+
- uses: actions/checkout@v4
|
|
27
|
+
|
|
28
|
+
- name: Resolve version
|
|
29
|
+
id: meta
|
|
30
|
+
run: |
|
|
31
|
+
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
|
32
|
+
VERSION="${{ github.event.inputs.version }}"
|
|
33
|
+
elif [ "${{ github.event_name }}" = "release" ]; then
|
|
34
|
+
VERSION="${{ github.event.release.tag_name }}"
|
|
35
|
+
else
|
|
36
|
+
VERSION="${GITHUB_REF_NAME}"
|
|
37
|
+
fi
|
|
38
|
+
VERSION="${VERSION#v}"
|
|
39
|
+
echo "version=${VERSION}" >> "$GITHUB_OUTPUT"
|
|
40
|
+
|
|
41
|
+
- name: Apply version in tree
|
|
42
|
+
run: python scripts/set_version.py "${{ steps.meta.outputs.version }}"
|
|
43
|
+
|
|
44
|
+
- uses: actions/setup-python@v5
|
|
45
|
+
with:
|
|
46
|
+
python-version: "3.12"
|
|
47
|
+
|
|
48
|
+
- name: Build packages
|
|
49
|
+
run: |
|
|
50
|
+
python -m pip install build
|
|
51
|
+
python -m build
|
|
52
|
+
|
|
53
|
+
- name: Publish to PyPI
|
|
54
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
tfbrief-0.1.0/.gitignore
ADDED
tfbrief-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 infroware
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
tfbrief-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: tfbrief
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: TfBrief — human-readable formatter for terraform show -json in CI logs, with optional apply gating
|
|
5
|
+
Project-URL: Homepage, https://github.com/infroware/tfbrief
|
|
6
|
+
Project-URL: Repository, https://github.com/infroware/tfbrief
|
|
7
|
+
Project-URL: Issues, https://github.com/infroware/tfbrief/issues
|
|
8
|
+
Author: infroware
|
|
9
|
+
License-Expression: MIT
|
|
10
|
+
License-File: LICENSE
|
|
11
|
+
Keywords: ci,devops,plan,terraform,tfbrief
|
|
12
|
+
Classifier: Development Status :: 4 - Beta
|
|
13
|
+
Classifier: Environment :: Console
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: License :: OSI Approved :: MIT License
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
20
|
+
Classifier: Topic :: System :: Systems Administration
|
|
21
|
+
Requires-Python: >=3.10
|
|
22
|
+
Description-Content-Type: text/markdown
|
|
23
|
+
|
|
24
|
+
# TfBrief
|
|
25
|
+
|
|
26
|
+
**Tf** + **brief** — readable `terraform show -json` for CI: summary panel, resource table, and attribute diffs. Stdlib only.
|
|
27
|
+
|
|
28
|
+
<!-- tfbrief-demo:start -->
|
|
29
|
+
<details open>
|
|
30
|
+
<summary><strong>Example output</strong> (refreshed by CI on each <code>main</code> push; fixture <a href="fixtures/minimal-plan.json"><code>minimal-plan.json</code></a>)</summary>
|
|
31
|
+
|
|
32
|
+
<div style="width:100%;overflow-x:auto">
|
|
33
|
+
<img src="docs/demo.svg" alt="TfBrief terminal output: summary, resource actions, and attribute diffs" style="display:block;width:auto;max-width:none;height:auto;background:#000000;border-radius:6px"/>
|
|
34
|
+
</div>
|
|
35
|
+
|
|
36
|
+
</details>
|
|
37
|
+
<!-- tfbrief-demo:end -->
|
|
38
|
+
|
|
39
|
+
Live colored output on every CI run: open the [Actions tab](https://github.com/infroware/tfbrief/actions) and expand **TfBrief demo**.
|
|
40
|
+
|
|
41
|
+
## Install
|
|
42
|
+
|
|
43
|
+
From [PyPI](https://pypi.org/project/tfbrief/) (after the first release):
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
pip install tfbrief
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
From GitHub until PyPI has a release:
|
|
50
|
+
|
|
51
|
+
```bash
|
|
52
|
+
pip install git+https://github.com/infroware/tfbrief.git
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
From a clone:
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
pip install -e .
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
The `tfbrief` command is on your PATH after install.
|
|
62
|
+
|
|
63
|
+
## Usage
|
|
64
|
+
|
|
65
|
+
```bash
|
|
66
|
+
terraform plan -out=tfplan
|
|
67
|
+
terraform show -json tfplan | tfbrief
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
terraform show -json tfplan | python -m tfbrief
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### CI apply gate
|
|
75
|
+
|
|
76
|
+
```bash
|
|
77
|
+
if [ "$(terraform show -json tfplan | tfbrief --has-changes)" = "true" ]; then
|
|
78
|
+
terraform apply tfplan
|
|
79
|
+
fi
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### GitHub Actions
|
|
83
|
+
|
|
84
|
+
Add Python on the job, then plan once, print TfBrief to the log, and optionally apply:
|
|
85
|
+
|
|
86
|
+
```yaml
|
|
87
|
+
- uses: actions/setup-python@v5
|
|
88
|
+
with:
|
|
89
|
+
python-version: "3.12"
|
|
90
|
+
|
|
91
|
+
- name: Plan and TfBrief review
|
|
92
|
+
id: plan
|
|
93
|
+
env:
|
|
94
|
+
PYTHONIOENCODING: utf-8
|
|
95
|
+
run: |
|
|
96
|
+
pip install -q tfbrief
|
|
97
|
+
terraform plan -out=tfplan
|
|
98
|
+
terraform show -json tfplan > plan.json
|
|
99
|
+
tfbrief < plan.json
|
|
100
|
+
echo "has_changes=$(tfbrief --has-changes < plan.json)" >> "$GITHUB_OUTPUT"
|
|
101
|
+
|
|
102
|
+
- name: Apply
|
|
103
|
+
if: steps.plan.outputs.has_changes == 'true'
|
|
104
|
+
run: terraform apply -auto-approve tfplan
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
Log only (no apply gate): keep the `Plan and TfBrief review` step and drop the `Apply` step.
|
|
108
|
+
|
|
109
|
+
### Azure Pipelines
|
|
110
|
+
|
|
111
|
+
```yaml
|
|
112
|
+
- script: terraform show -json $(PlanFile) | tfbrief
|
|
113
|
+
displayName: TfBrief plan log
|
|
114
|
+
env:
|
|
115
|
+
PYTHONIOENCODING: utf-8
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
## Security
|
|
119
|
+
|
|
120
|
+
Redaction is **best-effort**. Treat CI logs as sensitive.
|
|
121
|
+
|
|
122
|
+
## Development
|
|
123
|
+
|
|
124
|
+
```bash
|
|
125
|
+
pip install -e .
|
|
126
|
+
python -m unittest discover -s tests -v
|
|
127
|
+
python -m tfbrief < fixtures/minimal-plan.json
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
### PyPI release (maintainers)
|
|
131
|
+
|
|
132
|
+
**One time:** On [pypi.org](https://pypi.org/manage/account/publishing/), add a **Trusted Publisher** — GitHub · owner `infroware` · repo `tfbrief` · workflow `publish.yml` · environment *(empty)*.
|
|
133
|
+
|
|
134
|
+
**Each release (CI does version + upload):** push a semver tag:
|
|
135
|
+
|
|
136
|
+
```bash
|
|
137
|
+
git tag v0.1.1
|
|
138
|
+
git push origin v0.1.1
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
The [Publish to PyPI](.github/workflows/publish.yml) workflow reads the tag (`v0.1.1` → `0.1.1`), updates `__version__` / `pyproject.toml` in the job, builds, and uploads. You can also publish from **Actions → Publish to PyPI → Run workflow** with a version, or publish a **GitHub Release** (same workflow on `release: published`).
|
|
142
|
+
|
|
143
|
+
After the first successful run, `pip install tfbrief` works from PyPI.
|
|
144
|
+
|
|
145
|
+
## License
|
|
146
|
+
|
|
147
|
+
MIT — see [LICENSE](LICENSE).
|
tfbrief-0.1.0/README.md
ADDED
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
# TfBrief
|
|
2
|
+
|
|
3
|
+
**Tf** + **brief** — readable `terraform show -json` for CI: summary panel, resource table, and attribute diffs. Stdlib only.
|
|
4
|
+
|
|
5
|
+
<!-- tfbrief-demo:start -->
|
|
6
|
+
<details open>
|
|
7
|
+
<summary><strong>Example output</strong> (refreshed by CI on each <code>main</code> push; fixture <a href="fixtures/minimal-plan.json"><code>minimal-plan.json</code></a>)</summary>
|
|
8
|
+
|
|
9
|
+
<div style="width:100%;overflow-x:auto">
|
|
10
|
+
<img src="docs/demo.svg" alt="TfBrief terminal output: summary, resource actions, and attribute diffs" style="display:block;width:auto;max-width:none;height:auto;background:#000000;border-radius:6px"/>
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
</details>
|
|
14
|
+
<!-- tfbrief-demo:end -->
|
|
15
|
+
|
|
16
|
+
Live colored output on every CI run: open the [Actions tab](https://github.com/infroware/tfbrief/actions) and expand **TfBrief demo**.
|
|
17
|
+
|
|
18
|
+
## Install
|
|
19
|
+
|
|
20
|
+
From [PyPI](https://pypi.org/project/tfbrief/) (after the first release):
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
pip install tfbrief
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
From GitHub until PyPI has a release:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
pip install git+https://github.com/infroware/tfbrief.git
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
From a clone:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
pip install -e .
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
The `tfbrief` command is on your PATH after install.
|
|
39
|
+
|
|
40
|
+
## Usage
|
|
41
|
+
|
|
42
|
+
```bash
|
|
43
|
+
terraform plan -out=tfplan
|
|
44
|
+
terraform show -json tfplan | tfbrief
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
terraform show -json tfplan | python -m tfbrief
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
### CI apply gate
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
if [ "$(terraform show -json tfplan | tfbrief --has-changes)" = "true" ]; then
|
|
55
|
+
terraform apply tfplan
|
|
56
|
+
fi
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### GitHub Actions
|
|
60
|
+
|
|
61
|
+
Add Python on the job, then plan once, print TfBrief to the log, and optionally apply:
|
|
62
|
+
|
|
63
|
+
```yaml
|
|
64
|
+
- uses: actions/setup-python@v5
|
|
65
|
+
with:
|
|
66
|
+
python-version: "3.12"
|
|
67
|
+
|
|
68
|
+
- name: Plan and TfBrief review
|
|
69
|
+
id: plan
|
|
70
|
+
env:
|
|
71
|
+
PYTHONIOENCODING: utf-8
|
|
72
|
+
run: |
|
|
73
|
+
pip install -q tfbrief
|
|
74
|
+
terraform plan -out=tfplan
|
|
75
|
+
terraform show -json tfplan > plan.json
|
|
76
|
+
tfbrief < plan.json
|
|
77
|
+
echo "has_changes=$(tfbrief --has-changes < plan.json)" >> "$GITHUB_OUTPUT"
|
|
78
|
+
|
|
79
|
+
- name: Apply
|
|
80
|
+
if: steps.plan.outputs.has_changes == 'true'
|
|
81
|
+
run: terraform apply -auto-approve tfplan
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
Log only (no apply gate): keep the `Plan and TfBrief review` step and drop the `Apply` step.
|
|
85
|
+
|
|
86
|
+
### Azure Pipelines
|
|
87
|
+
|
|
88
|
+
```yaml
|
|
89
|
+
- script: terraform show -json $(PlanFile) | tfbrief
|
|
90
|
+
displayName: TfBrief plan log
|
|
91
|
+
env:
|
|
92
|
+
PYTHONIOENCODING: utf-8
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Security
|
|
96
|
+
|
|
97
|
+
Redaction is **best-effort**. Treat CI logs as sensitive.
|
|
98
|
+
|
|
99
|
+
## Development
|
|
100
|
+
|
|
101
|
+
```bash
|
|
102
|
+
pip install -e .
|
|
103
|
+
python -m unittest discover -s tests -v
|
|
104
|
+
python -m tfbrief < fixtures/minimal-plan.json
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
### PyPI release (maintainers)
|
|
108
|
+
|
|
109
|
+
**One time:** On [pypi.org](https://pypi.org/manage/account/publishing/), add a **Trusted Publisher** — GitHub · owner `infroware` · repo `tfbrief` · workflow `publish.yml` · environment *(empty)*.
|
|
110
|
+
|
|
111
|
+
**Each release (CI does version + upload):** push a semver tag:
|
|
112
|
+
|
|
113
|
+
```bash
|
|
114
|
+
git tag v0.1.1
|
|
115
|
+
git push origin v0.1.1
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
The [Publish to PyPI](.github/workflows/publish.yml) workflow reads the tag (`v0.1.1` → `0.1.1`), updates `__version__` / `pyproject.toml` in the job, builds, and uploads. You can also publish from **Actions → Publish to PyPI → Run workflow** with a version, or publish a **GitHub Release** (same workflow on `release: published`).
|
|
119
|
+
|
|
120
|
+
After the first successful run, `pip install tfbrief` works from PyPI.
|
|
121
|
+
|
|
122
|
+
## License
|
|
123
|
+
|
|
124
|
+
MIT — see [LICENSE](LICENSE).
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="1180" height="944" viewBox="0 0 1180 944" preserveAspectRatio="xMinYMin meet" role="img" aria-label="TfBrief example output">
|
|
3
|
+
<rect width="100%" height="100%" fill="#000000"/>
|
|
4
|
+
<text y="24.6" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#56d4dd" font-weight="600">╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮</tspan></text>
|
|
5
|
+
<text y="40.2" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#56d4dd" font-weight="600">│</tspan><tspan x="19.05" fill="#f0f6fc"> </tspan><tspan x="568.95" fill="#56d4dd" font-weight="600">TFBRIEF</tspan><tspan x="618.30" fill="#f0f6fc"> </tspan><tspan x="1161.15" fill="#56d4dd" font-weight="600">│</tspan></text>
|
|
6
|
+
<text y="55.8" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#56d4dd" font-weight="600">├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤</tspan></text>
|
|
7
|
+
<rect x="26.10" y="61.40" width="21.15" height="14" fill="#8957e5"/>
|
|
8
|
+
<rect x="47.25" y="61.40" width="42.30" height="14" fill="#da3633"/>
|
|
9
|
+
<rect x="89.55" y="61.40" width="63.45" height="14" fill="#9e6a03"/>
|
|
10
|
+
<rect x="153.00" y="61.40" width="63.45" height="14" fill="#238636"/>
|
|
11
|
+
<rect x="216.45" y="61.40" width="21.15" height="14" fill="#1f6feb"/>
|
|
12
|
+
<text y="71.4" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#56d4dd" font-weight="600">│</tspan><tspan x="19.05" fill="#f0f6fc"> </tspan><tspan x="26.10" fill="#f0f6fc" font-weight="600"> </tspan><tspan x="47.25" fill="#f0f6fc" font-weight="600"> </tspan><tspan x="89.55" fill="#f0f6fc" font-weight="600"> </tspan><tspan x="153.00" fill="#f0f6fc" font-weight="600"> </tspan><tspan x="216.45" fill="#f0f6fc" font-weight="600"> </tspan><tspan x="237.60" fill="#f0f6fc"> </tspan><tspan x="1161.15" fill="#56d4dd" font-weight="600">│</tspan></text>
|
|
13
|
+
<text y="87.0" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#56d4dd" font-weight="600">├──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┤</tspan></text>
|
|
14
|
+
<text y="102.6" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#56d4dd" font-weight="600">│</tspan><tspan x="19.05" fill="#f0f6fc"> 🟣 </tspan><tspan x="54.30" fill="#d2a8ff" font-weight="600">REPLACE </tspan><tspan x="167.10" fill="#f0f6fc"> 1 10.0% </tspan><tspan x="1161.15" fill="#56d4dd" font-weight="600">│</tspan></text>
|
|
15
|
+
<text y="118.2" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#56d4dd" font-weight="600">│</tspan><tspan x="19.05" fill="#f0f6fc"> 🔴 </tspan><tspan x="54.30" fill="#ff7b72" font-weight="600">DELETE </tspan><tspan x="167.10" fill="#f0f6fc"> 2 20.0% </tspan><tspan x="1161.15" fill="#56d4dd" font-weight="600">│</tspan></text>
|
|
16
|
+
<text y="133.8" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#56d4dd" font-weight="600">│</tspan><tspan x="19.05" fill="#f0f6fc"> 🟡 </tspan><tspan x="54.30" fill="#ffa657" font-weight="600">UPDATE </tspan><tspan x="167.10" fill="#f0f6fc"> 3 30.0% </tspan><tspan x="1161.15" fill="#56d4dd" font-weight="600">│</tspan></text>
|
|
17
|
+
<text y="149.4" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#56d4dd" font-weight="600">│</tspan><tspan x="19.05" fill="#f0f6fc"> 🟢 </tspan><tspan x="54.30" fill="#3fb950" font-weight="600">CREATE </tspan><tspan x="167.10" fill="#f0f6fc"> 3 30.0% </tspan><tspan x="1161.15" fill="#56d4dd" font-weight="600">│</tspan></text>
|
|
18
|
+
<text y="165.0" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#56d4dd" font-weight="600">│</tspan><tspan x="19.05" fill="#f0f6fc"> 🔵 </tspan><tspan x="54.30" fill="#56d4dd" font-weight="600">STOP MANAGING </tspan><tspan x="167.10" fill="#f0f6fc"> 1 10.0% </tspan><tspan x="1161.15" fill="#56d4dd" font-weight="600">│</tspan></text>
|
|
19
|
+
<text y="180.6" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#56d4dd" font-weight="600">│</tspan><tspan x="19.05" fill="#f0f6fc"> 📤 </tspan><tspan x="54.30" fill="#56d4dd" font-weight="600">OUTPUT CHANGES </tspan><tspan x="167.10" fill="#f0f6fc"> 2 </tspan><tspan x="1161.15" fill="#56d4dd" font-weight="600">│</tspan></text>
|
|
20
|
+
<text y="196.2" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#56d4dd" font-weight="600">╰──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯</tspan></text>
|
|
21
|
+
<text y="211.79999999999998" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">🔵 Stop managing removes Terraform tracking. The resource stays in place.</tspan></text>
|
|
22
|
+
<text y="243.0" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#56d4dd" font-weight="600">RESOURCE ACTIONS</tspan></text>
|
|
23
|
+
<text y="258.6" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">+-----------------+--------------------------------------------------------------------------------------+</tspan></text>
|
|
24
|
+
<text y="274.2" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">| ACTION | RESOURCE ADDRESS |</tspan></text>
|
|
25
|
+
<text y="289.8" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">+-----------------+--------------------------------------------------------------------------------------+</tspan></text>
|
|
26
|
+
<text y="305.4" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">| </tspan><tspan x="26.10" fill="#d2a8ff" font-weight="600">REPLACE </tspan><tspan x="131.85" fill="#f0f6fc"> | azurerm_linux_virtual_machine.app |</tspan></text>
|
|
27
|
+
<text y="321.0" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">+-----------------+--------------------------------------------------------------------------------------+</tspan></text>
|
|
28
|
+
<text y="336.59999999999997" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">| </tspan><tspan x="26.10" fill="#ff7b72" font-weight="600">DELETE </tspan><tspan x="131.85" fill="#f0f6fc"> | azurerm_public_ip.legacy |</tspan></text>
|
|
29
|
+
<text y="352.2" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">+-----------------+--------------------------------------------------------------------------------------+</tspan></text>
|
|
30
|
+
<text y="367.8" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">| </tspan><tspan x="26.10" fill="#ff7b72" font-weight="600">DELETE </tspan><tspan x="131.85" fill="#f0f6fc"> | azurerm_monitor_diagnostic_setting.legacy |</tspan></text>
|
|
31
|
+
<text y="383.4" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">+-----------------+--------------------------------------------------------------------------------------+</tspan></text>
|
|
32
|
+
<text y="399.0" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">| </tspan><tspan x="26.10" fill="#ffa657" font-weight="600">UPDATE </tspan><tspan x="131.85" fill="#f0f6fc"> | azurerm_storage_account.legacy |</tspan></text>
|
|
33
|
+
<text y="414.59999999999997" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">+-----------------+--------------------------------------------------------------------------------------+</tspan></text>
|
|
34
|
+
<text y="430.2" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">| </tspan><tspan x="26.10" fill="#ffa657" font-weight="600">UPDATE </tspan><tspan x="131.85" fill="#f0f6fc"> | kubernetes_deployment.api |</tspan></text>
|
|
35
|
+
<text y="445.8" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">+-----------------+--------------------------------------------------------------------------------------+</tspan></text>
|
|
36
|
+
<text y="461.4" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">| </tspan><tspan x="26.10" fill="#ffa657" font-weight="600">UPDATE </tspan><tspan x="131.85" fill="#f0f6fc"> | azurerm_key_vault_secret.db_connection |</tspan></text>
|
|
37
|
+
<text y="477.0" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">+-----------------+--------------------------------------------------------------------------------------+</tspan></text>
|
|
38
|
+
<text y="492.59999999999997" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">| </tspan><tspan x="26.10" fill="#3fb950" font-weight="600">CREATE </tspan><tspan x="131.85" fill="#f0f6fc"> | azurerm_resource_group.core |</tspan></text>
|
|
39
|
+
<text y="508.2" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">+-----------------+--------------------------------------------------------------------------------------+</tspan></text>
|
|
40
|
+
<text y="523.8" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">| </tspan><tspan x="26.10" fill="#3fb950" font-weight="600">CREATE </tspan><tspan x="131.85" fill="#f0f6fc"> | azurerm_storage_container.logs |</tspan></text>
|
|
41
|
+
<text y="539.4" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">+-----------------+--------------------------------------------------------------------------------------+</tspan></text>
|
|
42
|
+
<text y="555.0" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">| </tspan><tspan x="26.10" fill="#3fb950" font-weight="600">CREATE </tspan><tspan x="131.85" fill="#f0f6fc"> | azurerm_cdn_frontdoor_profile.edge |</tspan></text>
|
|
43
|
+
<text y="570.6" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">+-----------------+--------------------------------------------------------------------------------------+</tspan></text>
|
|
44
|
+
<text y="586.1999999999999" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">| </tspan><tspan x="26.10" fill="#56d4dd" font-weight="600">STOP MANAGING </tspan><tspan x="131.85" fill="#f0f6fc"> | azurerm_network_interface.orphan |</tspan></text>
|
|
45
|
+
<text y="601.8" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">+-----------------+--------------------------------------------------------------------------------------+</tspan></text>
|
|
46
|
+
<text y="633.0" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#56d4dd" font-weight="600">ATTRIBUTE DIFFS (updates and replacements only)</tspan></text>
|
|
47
|
+
<text y="648.6" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">🟣 </tspan><tspan x="33.15" fill="#d2a8ff" font-weight="600">REPLACE</tspan><tspan x="82.50" fill="#f0f6fc"> azurerm_linux_virtual_machine azurerm_linux_virtual_machine.app</tspan></text>
|
|
48
|
+
<text y="664.1999999999999" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc"> </tspan><tspan x="33.15" fill="#56d4dd" font-weight="600">ATTRIBUTE | BEFORE | AFTER</tspan></text>
|
|
49
|
+
<text y="679.8" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc"> size | </tspan><tspan x="308.10" fill="#ff7b72" font-weight="600">"Standard_D2s_v3" </tspan><tspan x="717.00" fill="#f0f6fc"> | </tspan><tspan x="738.15" fill="#3fb950" font-weight="600">"Standard_D4s_v3"</tspan></text>
|
|
50
|
+
<text y="695.4" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc"> zone | </tspan><tspan x="308.10" fill="#ff7b72" font-weight="600">"1" </tspan><tspan x="717.00" fill="#f0f6fc"> | </tspan><tspan x="738.15" fill="#3fb950" font-weight="600">"2"</tspan></text>
|
|
51
|
+
<text y="726.6" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">🟡 </tspan><tspan x="33.15" fill="#ffa657" font-weight="600">UPDATE</tspan><tspan x="75.45" fill="#f0f6fc"> azurerm_storage_account azurerm_storage_account.legacy</tspan></text>
|
|
52
|
+
<text y="742.1999999999999" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc"> </tspan><tspan x="33.15" fill="#56d4dd" font-weight="600">ATTRIBUTE | BEFORE | AFTER</tspan></text>
|
|
53
|
+
<text y="757.8" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc"> account_replication_type | </tspan><tspan x="308.10" fill="#ff7b72" font-weight="600">"LRS" </tspan><tspan x="717.00" fill="#f0f6fc"> | </tspan><tspan x="738.15" fill="#3fb950" font-weight="600">"GRS"</tspan></text>
|
|
54
|
+
<text y="773.4" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc"> tags.env | </tspan><tspan x="308.10" fill="#ff7b72" font-weight="600">"dev" </tspan><tspan x="717.00" fill="#f0f6fc"> | </tspan><tspan x="738.15" fill="#3fb950" font-weight="600">"staging"</tspan></text>
|
|
55
|
+
<text y="804.6" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">🟡 </tspan><tspan x="33.15" fill="#ffa657" font-weight="600">UPDATE</tspan><tspan x="75.45" fill="#f0f6fc"> kubernetes_deployment kubernetes_deployment.api</tspan></text>
|
|
56
|
+
<text y="820.1999999999999" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc"> </tspan><tspan x="33.15" fill="#56d4dd" font-weight="600">ATTRIBUTE | BEFORE | AFTER</tspan></text>
|
|
57
|
+
<text y="835.8" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc"> metadata.labels.version | </tspan><tspan x="308.10" fill="#ff7b72" font-weight="600">"v1.2.0" </tspan><tspan x="717.00" fill="#f0f6fc"> | </tspan><tspan x="738.15" fill="#3fb950" font-weight="600">"v1.3.0"</tspan></text>
|
|
58
|
+
<text y="851.4" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc"> spec.replicas | </tspan><tspan x="308.10" fill="#ff7b72" font-weight="600">2 </tspan><tspan x="717.00" fill="#f0f6fc"> | </tspan><tspan x="738.15" fill="#3fb950" font-weight="600">4</tspan></text>
|
|
59
|
+
<text y="867.0" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc"> spec.template.spec.containers | </tspan><tspan x="308.10" fill="#ff7b72" font-weight="600">[{"image":"ghcr.io/demo/api:1.2.0"}] </tspan><tspan x="717.00" fill="#f0f6fc"> | </tspan><tspan x="738.15" fill="#3fb950" font-weight="600">[{"image":"ghcr.io/demo/api:1.3.0"}]</tspan></text>
|
|
60
|
+
<text y="898.1999999999999" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc">🟡 </tspan><tspan x="33.15" fill="#ffa657" font-weight="600">UPDATE</tspan><tspan x="75.45" fill="#f0f6fc"> azurerm_key_vault_secret azurerm_key_vault_secret.db_connection</tspan></text>
|
|
61
|
+
<text y="913.8" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc"> </tspan><tspan x="33.15" fill="#56d4dd" font-weight="600">ATTRIBUTE | BEFORE | AFTER</tspan></text>
|
|
62
|
+
<text y="929.4" font-family="ui-monospace,Menlo,Consolas,monospace" font-size="12"><tspan x="12.00" fill="#f0f6fc"> value | </tspan><tspan x="308.10" fill="#ff7b72" font-weight="600">[REDACTED] </tspan><tspan x="717.00" fill="#f0f6fc"> | </tspan><tspan x="738.15" fill="#3fb950" font-weight="600">[REDACTED]</tspan></text>
|
|
63
|
+
</svg>
|