- Documentation
Container Registry
Container Registry (CR)
Terraform
Obtaining temporary keys for logging into instances
Terraform
Obtaining temporary keys for logging into instances
Obtaining temporary keys for logging into instances
This topic describes how to use Terraform to create a temporary key for a CR Standard Edition instance. After obtaining the temporary key, you can log in to the instance and push or pull images into the instance.
tip
Temporary keys are valid for one hour. If a key expires, execute the key creation command again to create a new one.
Prerequisites
You have completed the preparations for using Terraform in CR. For operation details, see Preparations. - Log in to the terminal where Terraform is installed.
- Create a folder and a configuration file named main.tf in it.
- Initialize the Terraform environment.
- Perform resource planning.
- Create the temporary key.
- In the current directory, view the temporary key for logging in to the CR Standard Edition instance.
What to do next
After obtaining the temporary key, you can log in to the instance and push or pull images in it. For detailed steps, see Pushing and pulling images. Last updated: 2026.10.19 15:46:48