Difference between revisions of "Terraform state pull"
Jump to navigation
Jump to search
↑ https://stackoverflow.com/questions/59473690/how-to-extract-sensitive-output-variables-in-terraform
(Created page with "{{lowercase}} == See also == * {{terraform cmd}} Category:Terraform") |
|||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
+ | * https://www.terraform.io/cli/commands/state/pull | ||
+ | |||
+ | |||
+ | [[terraform state]] [[pull]] | jq '.resources[] | select(.type == "[[aws_iam_access_key]]") | .instances[0].attributes' <ref>https://stackoverflow.com/questions/59473690/how-to-extract-sensitive-output-variables-in-terraform</ref> | ||
+ | |||
+ | |||
+ | |||
+ | == Related == | ||
+ | * <code>[[terraform state push]]</code> | ||
+ | * <code>[[terraform show]]</code> | ||
+ | |||
== See also == | == See also == | ||
− | * {{terraform | + | * {{terraform state}} |
[[Category:Terraform]] | [[Category:Terraform]] |
Latest revision as of 10:04, 27 February 2023
terraform state pull | jq '.resources[] | select(.type == "aws_iam_access_key") | .instances[0].attributes' [1]
Related[edit]
See also[edit]
- Terraform state:
terraform [ state | replace-provider | mv ]
,backend.tf
, Remote state backends to manage Terraform state, State locking,terraform force-unlock
Advertising: