Skip to content

Commit 7dfe26a

Browse files
committed
Updated auto tagging script to newest version to support all versions of Terraform; Include more comments to make updating easier in the future
1 parent b729843 commit 7dfe26a

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

package/cloudshell/iac/terraform/tagging/tag_terraform_resources.py

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,22 @@
1+
# entrypoint is package/cloudshell/iac/terraform/services/tf_proc_exec.py def tag_terraform
2+
3+
# tags changes
4+
5+
# - remove/comment out main (only uses start_tagging_terraform_resources function)
6+
# - add "from cloudshell.iac.terraform.models.exceptions import TerraformAutoTagsError"
7+
# - verify imports are the same (need to add to dependencies file if different and require specific version)
8+
# - modify method definition params
9+
# - modify logger to use logger from module
10+
# - _perform_terraform_init_plan is heavily changed due to the fact we may need to run this on windows or linux
11+
12+
# modified methods:
13+
14+
# - _perform_terraform_init_plan (x2)
15+
# - start_tagging_terraform_resources
16+
# - init_logging
17+
# - OverrideTagsTemplatesCreator
18+
19+
120
import re
221
import enum
322
import sys

0 commit comments

Comments
 (0)