Loading...
Loading...
### Terraform Version ```shell Terraform v1.12.2 on linux_amd64 (on Ubuntu 22.04) ``` ### Terraform Configuration Files ```terraform ...terraform config... ``` ### Debug Output ``` ...debug output, or link to a gist... ``` ### Expected Behavior taint the resource S3 based tfstate section of interest: ### Actual Behavior terraform taint 'rbac.kubernetes_role.developer["0"]' Error: Invalid address on line 1: (source code not available) Unexpected extra operators after address. ### Steps to Reproduce Have tried all combinations of: terraform taint 'rbac.kubernetes_role.developer["0"]' terraform taint rbac.kubernetes_role.developer[0] terraform taint 'rbac.kubernetes_role.developer[0]' terraform taint 'rbac.kubernetes_role.developer["dshs"]' terraform taint 'rbac.kubernetes_role.developer[dshs] and same combinations with the "module" prefix, e.g. terraform taint 'module.rbac.kubernetes_role.developer["0"]' .... ### Additional Context I need to do this on a large TF deployment before an apply, to reconstruct a couple of roles, and can not use 'apply -replace' in our automation, so they are scripted outside the TF apply command (and these resources do not support force) ### References _No response_ ### Generative AI / LLM assisted development? _No response_
Click on a version to see all relevant bugs
Terraform Integration
Learn more about where this data comes from
Bug Scrub Advisor
Streamline upgrades with automated vendor bug scrubs
BugZero Enterprise
Wish you caught this bug sooner? Get proactive today.