The available commands for execution are listed below. The primary workflow commands are given first, followed by less common or more advanced commands.
Main commands: init Prepare your working directory for other commands validate Check whether the configuration is valid plan Show changes required by the current configuration apply Create or update infrastructure destroy Destroy previously-created infrastructure
All other commands: console Try Terraform expressions at an interactive command prompt fmt Reformat your configuration in the standard style force-unlock Release a stuck lock on the current workspace get Install or upgrade remote Terraform modules graph Generate a Graphviz graph of the steps in an operation import Associate existing infrastructure with a Terraform resource login Obtain and save credentials for a remote host logout Remove locally-stored credentials for a remote host metadata Metadata related commands modules Show all declared modules in a working directory output Show output values from your root module providers Show the providers required for this configuration refresh Update the state to match remote systems show Show the current state or a saved plan stacks Manage HCP Terraform stack operations state Advanced state management taint Mark a resource instance as not fully functional test Execute integration tests for Terraform modules untaint Remove the 'tainted' state from a resource instance version Show the current Terraform version workspace Workspace management
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create
Terraform will perform the following actions:
# kubernetes_deployment.test will be created + resource "kubernetes_deployment""test" { + id = (known after apply) + wait_for_rollout = true
+ metadata { + generation = (known after apply) + name = "nginx" + namespace = "nginx" + resource_version = (known after apply) + uid = (known after apply) }
+ spec { + min_ready_seconds = 0 + paused = false + progress_deadline_seconds = 600 + replicas = "2" + revision_history_limit = 10 .... Plan: 3 to add, 0 to change, 0 to destroy. ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── Note: You didn't use the -out option to save this plan, so Terraform can't guarantee to take exactly these actions if you run "terraform apply" now.
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: + create
Terraform will perform the following actions:
# kubernetes_deployment.test will be created + resource "kubernetes_deployment""test" { + id = (known after apply) + wait_for_rollout = true ... Plan: 3 to add, 0 to change, 0 to destroy.
Do you want to perform these actions? Terraform will perform the actions described above. Only 'yes' will be accepted to approve.
Enter a value: yes
kubernetes_namespace.test: Creating... kubernetes_namespace.test: Creation complete after 0s [id=nginx] kubernetes_deployment.test: Creating... kubernetes_deployment.test: Creation complete after 4s [id=nginx/nginx] kubernetes_service.test: Creating... kubernetes_service.test: Creation complete after 0s [id=nginx/nginx]