-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terraform state removal command does not work #1890
Comments
cc: @bryantbiggs |
Both the access entry and access policy states should be removed for this to work correctly. terraform state rm 'module.eks.aws_eks_access_entry.this["cluster_creator"]'
terraform state rm 'module.eks.aws_eks_access_policy_association.this["cluster_creator_admin"]' |
Yes, it looks like a typo - PRs are welcomed |
@iamsouravin can you submit a PR for this? |
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Please provide a clear and concise description of the issue you are encountering, and a reproduction of your configuration (see the
examples/*
directory for references that you can copy+paste and tailor to match your configs if you are unable to copy your exact configuration). The reproduction MUST be executable by runningterraform init && terraform apply
without any further changes.If your request is for a new feature, please use the
Feature request
template.Versions
Module version [Required]:
Terraform version:
Terraform v1.7.3
Provider version(s):
Steps to reproduce the behavior:
terraform state rm 'module.eks.aws_eks_access_entry.this["cluster_creator_admin"]' || true
, this state is not listed in theterraform state list
output.The actual state name is
'module.eks.aws_eks_access_entry.this["cluster_creator"]'
Expected behavior
State to be removed.
Actual behavior
Error message appears.
Terminal Output Screenshot(s)
Additional context
The text was updated successfully, but these errors were encountered: