Hot answers tagged

8 votes
Accepted

Get private key from terraform state?

If you need to use a value like this private key for later steps, the common answer is to return it as a root module output value. Since the private key is sensitive, you can mark it as such to ...
user avatar
2 votes

Get private key from terraform state?

The private key is stored in the terraform state. Typically you would show the resources with the terraform state command, but sensitive values are not shared on the screen. If you use the -json ...
user avatar
  • 273

Only top scored, non community-wiki answers of a minimum length are eligible