shell-plugins
shell-plugins copied to clipboard
Terraform plugin state commands
Platform or tool
Terraform
Desired or expected behavior
terraform state [subcommand]
should work.
Subcommands:
list List resources in the state
mv Move an item in the state
pull Pull current state and output to stdout
push Update remote state from a local state file
replace-provider Replace provider in the state
rm Remove instances from the state
show Show a resource in the state
Current behavior
Commands fails with no valid credential sources found
.
terraform init
and plan | apply
work fine.
Relevant log output
Error: No valid credential sources found
│
│ Please see https://www.terraform.io/docs/language/settings/backends/s3.html
│ for more information about providing credentials.
│
│ Error: failed to refresh cached credentials, no EC2 IMDS role found, operation error ec2imds: GetMetadata, request canceled,
│ context deadline exceeded
### op CLI version
2.23.0-beta.01