Difference between revisions of "Terraform state pull"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
* https://www.terraform.io/cli/commands/state/pull | * https://www.terraform.io/cli/commands/state/pull | ||
+ | |||
+ | |||
+ | terraform state pull | jq '.resources[] | select(.type == "aws_iam_access_key") | .instances[0].attributes' | ||
+ | |||
Revision as of 12:41, 4 March 2022
terraform state pull | jq '.resources[] | select(.type == "aws_iam_access_key") | .instances[0].attributes'
Related
See also
- Terraform state:
terraform [ state | replace-provider | mv ]
,backend.tf
, Remote state backends to manage Terraform state, State locking,terraform force-unlock
terraform
[untaint | fmt
|apply
|show
|state
|init | plan | console | output
|validate
|destroy
|debug
|import
|providers
|get
|graph
|workspaces
|resource
|login
|-var-file
|state mv
|state pull
|state push
|state replace-provider
|state rm
|force-unlock
|env
|tfe
|--version
|remote-exec
|delete on termination
| deprecated commands |terraform --help
]
Advertising: