From 8538283f29fce6c917cb010d2728e8a6402b9212 Mon Sep 17 00:00:00 2001 From: The Magician Date: Mon, 6 Jan 2025 11:47:01 -0800 Subject: [PATCH] Expand Terraform for Developer Connect (#12391) (#880) [upstream:5ee445ecbd86a6b5241668f27d7aa59064798588] Signed-off-by: Modular Magician --- .../backing_file.tf | 15 ++++ .../main.tf | 17 ++++ .../motd | 7 ++ .../tutorial.md | 79 +++++++++++++++++++ .../backing_file.tf | 15 ++++ developer_connect_connection_github/main.tf | 12 +++ developer_connect_connection_github/motd | 7 ++ .../tutorial.md | 79 +++++++++++++++++++ .../backing_file.tf | 15 ++++ .../main.tf | 12 +++ .../motd | 7 ++ .../tutorial.md | 79 +++++++++++++++++++ .../backing_file.tf | 15 ++++ developer_connect_connection_gitlab/main.tf | 16 ++++ developer_connect_connection_gitlab/motd | 7 ++ .../tutorial.md | 79 +++++++++++++++++++ .../backing_file.tf | 15 ++++ .../main.tf | 18 +++++ .../motd | 7 ++ .../tutorial.md | 79 +++++++++++++++++++ .../backing_file.tf | 15 ++++ .../main.tf | 23 ++++++ .../motd | 7 ++ .../tutorial.md | 79 +++++++++++++++++++ 24 files changed, 704 insertions(+) create mode 100644 developer_connect_connection_existing_credentials/backing_file.tf create mode 100644 developer_connect_connection_existing_credentials/main.tf create mode 100644 developer_connect_connection_existing_credentials/motd create mode 100644 developer_connect_connection_existing_credentials/tutorial.md create mode 100644 developer_connect_connection_github/backing_file.tf create mode 100644 developer_connect_connection_github/main.tf create mode 100644 developer_connect_connection_github/motd create mode 100644 developer_connect_connection_github/tutorial.md create mode 100644 developer_connect_connection_github_enterprise/backing_file.tf create mode 100644 developer_connect_connection_github_enterprise/main.tf create mode 100644 developer_connect_connection_github_enterprise/motd create mode 100644 developer_connect_connection_github_enterprise/tutorial.md create mode 100644 developer_connect_connection_gitlab/backing_file.tf create mode 100644 developer_connect_connection_gitlab/main.tf create mode 100644 developer_connect_connection_gitlab/motd create mode 100644 developer_connect_connection_gitlab/tutorial.md create mode 100644 developer_connect_connection_gitlab_enterprise/backing_file.tf create mode 100644 developer_connect_connection_gitlab_enterprise/main.tf create mode 100644 developer_connect_connection_gitlab_enterprise/motd create mode 100644 developer_connect_connection_gitlab_enterprise/tutorial.md create mode 100644 developer_connect_git_repository_link_github/backing_file.tf create mode 100644 developer_connect_git_repository_link_github/main.tf create mode 100644 developer_connect_git_repository_link_github/motd create mode 100644 developer_connect_git_repository_link_github/tutorial.md diff --git a/developer_connect_connection_existing_credentials/backing_file.tf b/developer_connect_connection_existing_credentials/backing_file.tf new file mode 100644 index 00000000..c60b1199 --- /dev/null +++ b/developer_connect_connection_existing_credentials/backing_file.tf @@ -0,0 +1,15 @@ +# This file has some scaffolding to make sure that names are unique and that +# a region and zone are selected when you try to create your Terraform resources. + +locals { + name_suffix = "${random_pet.suffix.id}" +} + +resource "random_pet" "suffix" { + length = 2 +} + +provider "google" { + region = "us-central1" + zone = "us-central1-c" +} diff --git a/developer_connect_connection_existing_credentials/main.tf b/developer_connect_connection_existing_credentials/main.tf new file mode 100644 index 00000000..65beb6a3 --- /dev/null +++ b/developer_connect_connection_existing_credentials/main.tf @@ -0,0 +1,17 @@ +resource "google_developer_connect_connection" "my-connection" { + location = "us-central1" + connection_id = "tf-test-connection-cred-${local.name_suffix}" + + github_config { + github_app = "DEVELOPER_CONNECT" + + authorizer_credential { + oauth_token_secret_version = "projects/your-project/secrets/your-secret-id/versions/latest-${local.name_suffix}" + } + } +} + +output "next_steps" { + description = "Follow the action_uri if present to continue setup" + value = google_developer_connect_connection.my-connection.installation_state +} diff --git a/developer_connect_connection_existing_credentials/motd b/developer_connect_connection_existing_credentials/motd new file mode 100644 index 00000000..45a906e8 --- /dev/null +++ b/developer_connect_connection_existing_credentials/motd @@ -0,0 +1,7 @@ +=== + +These examples use real resources that will be billed to the +Google Cloud Platform project you use - so make sure that you +run "terraform destroy" before quitting! + +=== diff --git a/developer_connect_connection_existing_credentials/tutorial.md b/developer_connect_connection_existing_credentials/tutorial.md new file mode 100644 index 00000000..8bc2bb4b --- /dev/null +++ b/developer_connect_connection_existing_credentials/tutorial.md @@ -0,0 +1,79 @@ +# Developer Connect Connection Existing Credentials - Terraform + +## Setup + + + +Welcome to Terraform in Google Cloud Shell! We need you to let us know what project you'd like to use with Terraform. + + + +Terraform provisions real GCP resources, so anything you create in this session will be billed against this project. + +## Terraforming! + +Let's use {{project-id}} with Terraform! Click the Cloud Shell icon below to copy the command +to your shell, and then run it from the shell by pressing Enter/Return. Terraform will pick up +the project name from the environment variable. + +```bash +export GOOGLE_CLOUD_PROJECT={{project-id}} +``` + +After that, let's get Terraform started. Run the following to pull in the providers. + +```bash +terraform init +``` + +With the providers downloaded and a project set, you're ready to use Terraform. Go ahead! + +```bash +terraform apply +``` + +Terraform will show you what it plans to do, and prompt you to accept. Type "yes" to accept the plan. + +```bash +yes +``` + + +## Post-Apply + +### Editing your config + +Now you've provisioned your resources in GCP! If you run a "plan", you should see no changes needed. + +```bash +terraform plan +``` + +So let's make a change! Try editing a number, or appending a value to the name in the editor. Then, +run a 'plan' again. + +```bash +terraform plan +``` + +Afterwards you can run an apply, which implicitly does a plan and shows you the intended changes +at the 'yes' prompt. + +```bash +terraform apply +``` + +```bash +yes +``` + +## Cleanup + +Run the following to remove the resources Terraform provisioned: + +```bash +terraform destroy +``` +```bash +yes +``` diff --git a/developer_connect_connection_github/backing_file.tf b/developer_connect_connection_github/backing_file.tf new file mode 100644 index 00000000..c60b1199 --- /dev/null +++ b/developer_connect_connection_github/backing_file.tf @@ -0,0 +1,15 @@ +# This file has some scaffolding to make sure that names are unique and that +# a region and zone are selected when you try to create your Terraform resources. + +locals { + name_suffix = "${random_pet.suffix.id}" +} + +resource "random_pet" "suffix" { + length = 2 +} + +provider "google" { + region = "us-central1" + zone = "us-central1-c" +} diff --git a/developer_connect_connection_github/main.tf b/developer_connect_connection_github/main.tf new file mode 100644 index 00000000..55f284dc --- /dev/null +++ b/developer_connect_connection_github/main.tf @@ -0,0 +1,12 @@ +resource "google_developer_connect_connection" "my-connection" { + location = "us-central1" + connection_id = "tf-test-connection-${local.name_suffix}" + + github_config { + github_app = "DEVELOPER_CONNECT" + + authorizer_credential { + oauth_token_secret_version = "projects/devconnect-terraform-creds/secrets/tf-test-do-not-change-github-oauthtoken-e0b9e7/versions/1" + } + } +} diff --git a/developer_connect_connection_github/motd b/developer_connect_connection_github/motd new file mode 100644 index 00000000..45a906e8 --- /dev/null +++ b/developer_connect_connection_github/motd @@ -0,0 +1,7 @@ +=== + +These examples use real resources that will be billed to the +Google Cloud Platform project you use - so make sure that you +run "terraform destroy" before quitting! + +=== diff --git a/developer_connect_connection_github/tutorial.md b/developer_connect_connection_github/tutorial.md new file mode 100644 index 00000000..eaa56451 --- /dev/null +++ b/developer_connect_connection_github/tutorial.md @@ -0,0 +1,79 @@ +# Developer Connect Connection Github - Terraform + +## Setup + + + +Welcome to Terraform in Google Cloud Shell! We need you to let us know what project you'd like to use with Terraform. + + + +Terraform provisions real GCP resources, so anything you create in this session will be billed against this project. + +## Terraforming! + +Let's use {{project-id}} with Terraform! Click the Cloud Shell icon below to copy the command +to your shell, and then run it from the shell by pressing Enter/Return. Terraform will pick up +the project name from the environment variable. + +```bash +export GOOGLE_CLOUD_PROJECT={{project-id}} +``` + +After that, let's get Terraform started. Run the following to pull in the providers. + +```bash +terraform init +``` + +With the providers downloaded and a project set, you're ready to use Terraform. Go ahead! + +```bash +terraform apply +``` + +Terraform will show you what it plans to do, and prompt you to accept. Type "yes" to accept the plan. + +```bash +yes +``` + + +## Post-Apply + +### Editing your config + +Now you've provisioned your resources in GCP! If you run a "plan", you should see no changes needed. + +```bash +terraform plan +``` + +So let's make a change! Try editing a number, or appending a value to the name in the editor. Then, +run a 'plan' again. + +```bash +terraform plan +``` + +Afterwards you can run an apply, which implicitly does a plan and shows you the intended changes +at the 'yes' prompt. + +```bash +terraform apply +``` + +```bash +yes +``` + +## Cleanup + +Run the following to remove the resources Terraform provisioned: + +```bash +terraform destroy +``` +```bash +yes +``` diff --git a/developer_connect_connection_github_enterprise/backing_file.tf b/developer_connect_connection_github_enterprise/backing_file.tf new file mode 100644 index 00000000..c60b1199 --- /dev/null +++ b/developer_connect_connection_github_enterprise/backing_file.tf @@ -0,0 +1,15 @@ +# This file has some scaffolding to make sure that names are unique and that +# a region and zone are selected when you try to create your Terraform resources. + +locals { + name_suffix = "${random_pet.suffix.id}" +} + +resource "random_pet" "suffix" { + length = 2 +} + +provider "google" { + region = "us-central1" + zone = "us-central1-c" +} diff --git a/developer_connect_connection_github_enterprise/main.tf b/developer_connect_connection_github_enterprise/main.tf new file mode 100644 index 00000000..e0682f52 --- /dev/null +++ b/developer_connect_connection_github_enterprise/main.tf @@ -0,0 +1,12 @@ +resource "google_developer_connect_connection" "my-connection" { + location = "us-central1" + connection_id = "tf-test-connection-${local.name_suffix}" + + github_enterprise_config { + host_uri = "https://ghe.proctor-staging-test.com" + app_id = 864434 + private_key_secret_version = "projects/devconnect-terraform-creds/secrets/tf-test-ghe-do-not-change-ghe-private-key-f522d2/versions/latest" + webhook_secret_secret_version = "projects/devconnect-terraform-creds/secrets/tf-test-ghe-do-not-change-ghe-webhook-secret-3c806f/versions/latest" + app_installation_id = 837537 + } +} diff --git a/developer_connect_connection_github_enterprise/motd b/developer_connect_connection_github_enterprise/motd new file mode 100644 index 00000000..45a906e8 --- /dev/null +++ b/developer_connect_connection_github_enterprise/motd @@ -0,0 +1,7 @@ +=== + +These examples use real resources that will be billed to the +Google Cloud Platform project you use - so make sure that you +run "terraform destroy" before quitting! + +=== diff --git a/developer_connect_connection_github_enterprise/tutorial.md b/developer_connect_connection_github_enterprise/tutorial.md new file mode 100644 index 00000000..cad779c5 --- /dev/null +++ b/developer_connect_connection_github_enterprise/tutorial.md @@ -0,0 +1,79 @@ +# Developer Connect Connection Github Enterprise - Terraform + +## Setup + + + +Welcome to Terraform in Google Cloud Shell! We need you to let us know what project you'd like to use with Terraform. + + + +Terraform provisions real GCP resources, so anything you create in this session will be billed against this project. + +## Terraforming! + +Let's use {{project-id}} with Terraform! Click the Cloud Shell icon below to copy the command +to your shell, and then run it from the shell by pressing Enter/Return. Terraform will pick up +the project name from the environment variable. + +```bash +export GOOGLE_CLOUD_PROJECT={{project-id}} +``` + +After that, let's get Terraform started. Run the following to pull in the providers. + +```bash +terraform init +``` + +With the providers downloaded and a project set, you're ready to use Terraform. Go ahead! + +```bash +terraform apply +``` + +Terraform will show you what it plans to do, and prompt you to accept. Type "yes" to accept the plan. + +```bash +yes +``` + + +## Post-Apply + +### Editing your config + +Now you've provisioned your resources in GCP! If you run a "plan", you should see no changes needed. + +```bash +terraform plan +``` + +So let's make a change! Try editing a number, or appending a value to the name in the editor. Then, +run a 'plan' again. + +```bash +terraform plan +``` + +Afterwards you can run an apply, which implicitly does a plan and shows you the intended changes +at the 'yes' prompt. + +```bash +terraform apply +``` + +```bash +yes +``` + +## Cleanup + +Run the following to remove the resources Terraform provisioned: + +```bash +terraform destroy +``` +```bash +yes +``` diff --git a/developer_connect_connection_gitlab/backing_file.tf b/developer_connect_connection_gitlab/backing_file.tf new file mode 100644 index 00000000..c60b1199 --- /dev/null +++ b/developer_connect_connection_gitlab/backing_file.tf @@ -0,0 +1,15 @@ +# This file has some scaffolding to make sure that names are unique and that +# a region and zone are selected when you try to create your Terraform resources. + +locals { + name_suffix = "${random_pet.suffix.id}" +} + +resource "random_pet" "suffix" { + length = 2 +} + +provider "google" { + region = "us-central1" + zone = "us-central1-c" +} diff --git a/developer_connect_connection_gitlab/main.tf b/developer_connect_connection_gitlab/main.tf new file mode 100644 index 00000000..6d585e26 --- /dev/null +++ b/developer_connect_connection_gitlab/main.tf @@ -0,0 +1,16 @@ +resource "google_developer_connect_connection" "my-connection" { + location = "us-central1" + connection_id = "tf-test-connection-${local.name_suffix}" + + gitlab_config { + webhook_secret_secret_version = "projects/devconnect-terraform-creds/secrets/gitlab-webhook/versions/latest" + + read_authorizer_credential { + user_token_secret_version = "projects/devconnect-terraform-creds/secrets/gitlab-read-cred/versions/latest" + } + + authorizer_credential { + user_token_secret_version = "projects/devconnect-terraform-creds/secrets/gitlab-auth-cred/versions/latest" + } + } +} diff --git a/developer_connect_connection_gitlab/motd b/developer_connect_connection_gitlab/motd new file mode 100644 index 00000000..45a906e8 --- /dev/null +++ b/developer_connect_connection_gitlab/motd @@ -0,0 +1,7 @@ +=== + +These examples use real resources that will be billed to the +Google Cloud Platform project you use - so make sure that you +run "terraform destroy" before quitting! + +=== diff --git a/developer_connect_connection_gitlab/tutorial.md b/developer_connect_connection_gitlab/tutorial.md new file mode 100644 index 00000000..62857195 --- /dev/null +++ b/developer_connect_connection_gitlab/tutorial.md @@ -0,0 +1,79 @@ +# Developer Connect Connection Gitlab - Terraform + +## Setup + + + +Welcome to Terraform in Google Cloud Shell! We need you to let us know what project you'd like to use with Terraform. + + + +Terraform provisions real GCP resources, so anything you create in this session will be billed against this project. + +## Terraforming! + +Let's use {{project-id}} with Terraform! Click the Cloud Shell icon below to copy the command +to your shell, and then run it from the shell by pressing Enter/Return. Terraform will pick up +the project name from the environment variable. + +```bash +export GOOGLE_CLOUD_PROJECT={{project-id}} +``` + +After that, let's get Terraform started. Run the following to pull in the providers. + +```bash +terraform init +``` + +With the providers downloaded and a project set, you're ready to use Terraform. Go ahead! + +```bash +terraform apply +``` + +Terraform will show you what it plans to do, and prompt you to accept. Type "yes" to accept the plan. + +```bash +yes +``` + + +## Post-Apply + +### Editing your config + +Now you've provisioned your resources in GCP! If you run a "plan", you should see no changes needed. + +```bash +terraform plan +``` + +So let's make a change! Try editing a number, or appending a value to the name in the editor. Then, +run a 'plan' again. + +```bash +terraform plan +``` + +Afterwards you can run an apply, which implicitly does a plan and shows you the intended changes +at the 'yes' prompt. + +```bash +terraform apply +``` + +```bash +yes +``` + +## Cleanup + +Run the following to remove the resources Terraform provisioned: + +```bash +terraform destroy +``` +```bash +yes +``` diff --git a/developer_connect_connection_gitlab_enterprise/backing_file.tf b/developer_connect_connection_gitlab_enterprise/backing_file.tf new file mode 100644 index 00000000..c60b1199 --- /dev/null +++ b/developer_connect_connection_gitlab_enterprise/backing_file.tf @@ -0,0 +1,15 @@ +# This file has some scaffolding to make sure that names are unique and that +# a region and zone are selected when you try to create your Terraform resources. + +locals { + name_suffix = "${random_pet.suffix.id}" +} + +resource "random_pet" "suffix" { + length = 2 +} + +provider "google" { + region = "us-central1" + zone = "us-central1-c" +} diff --git a/developer_connect_connection_gitlab_enterprise/main.tf b/developer_connect_connection_gitlab_enterprise/main.tf new file mode 100644 index 00000000..2e65f34a --- /dev/null +++ b/developer_connect_connection_gitlab_enterprise/main.tf @@ -0,0 +1,18 @@ +resource "google_developer_connect_connection" "my-connection" { + location = "us-central1" + connection_id = "tf-test-connection-${local.name_suffix}" + + gitlab_enterprise_config { + host_uri = "https://gle-us-central1.gcb-test.com" + + webhook_secret_secret_version = "projects/devconnect-terraform-creds/secrets/gitlab-enterprise-webhook/versions/latest" + + read_authorizer_credential { + user_token_secret_version = "projects/devconnect-terraform-creds/secrets/gitlab-enterprise-read-cred/versions/latest" + } + + authorizer_credential { + user_token_secret_version = "projects/devconnect-terraform-creds/secrets/gitlab-enterprise-auth-cred/versions/latest" + } + } +} diff --git a/developer_connect_connection_gitlab_enterprise/motd b/developer_connect_connection_gitlab_enterprise/motd new file mode 100644 index 00000000..45a906e8 --- /dev/null +++ b/developer_connect_connection_gitlab_enterprise/motd @@ -0,0 +1,7 @@ +=== + +These examples use real resources that will be billed to the +Google Cloud Platform project you use - so make sure that you +run "terraform destroy" before quitting! + +=== diff --git a/developer_connect_connection_gitlab_enterprise/tutorial.md b/developer_connect_connection_gitlab_enterprise/tutorial.md new file mode 100644 index 00000000..e0df2da8 --- /dev/null +++ b/developer_connect_connection_gitlab_enterprise/tutorial.md @@ -0,0 +1,79 @@ +# Developer Connect Connection Gitlab Enterprise - Terraform + +## Setup + + + +Welcome to Terraform in Google Cloud Shell! We need you to let us know what project you'd like to use with Terraform. + + + +Terraform provisions real GCP resources, so anything you create in this session will be billed against this project. + +## Terraforming! + +Let's use {{project-id}} with Terraform! Click the Cloud Shell icon below to copy the command +to your shell, and then run it from the shell by pressing Enter/Return. Terraform will pick up +the project name from the environment variable. + +```bash +export GOOGLE_CLOUD_PROJECT={{project-id}} +``` + +After that, let's get Terraform started. Run the following to pull in the providers. + +```bash +terraform init +``` + +With the providers downloaded and a project set, you're ready to use Terraform. Go ahead! + +```bash +terraform apply +``` + +Terraform will show you what it plans to do, and prompt you to accept. Type "yes" to accept the plan. + +```bash +yes +``` + + +## Post-Apply + +### Editing your config + +Now you've provisioned your resources in GCP! If you run a "plan", you should see no changes needed. + +```bash +terraform plan +``` + +So let's make a change! Try editing a number, or appending a value to the name in the editor. Then, +run a 'plan' again. + +```bash +terraform plan +``` + +Afterwards you can run an apply, which implicitly does a plan and shows you the intended changes +at the 'yes' prompt. + +```bash +terraform apply +``` + +```bash +yes +``` + +## Cleanup + +Run the following to remove the resources Terraform provisioned: + +```bash +terraform destroy +``` +```bash +yes +``` diff --git a/developer_connect_git_repository_link_github/backing_file.tf b/developer_connect_git_repository_link_github/backing_file.tf new file mode 100644 index 00000000..c60b1199 --- /dev/null +++ b/developer_connect_git_repository_link_github/backing_file.tf @@ -0,0 +1,15 @@ +# This file has some scaffolding to make sure that names are unique and that +# a region and zone are selected when you try to create your Terraform resources. + +locals { + name_suffix = "${random_pet.suffix.id}" +} + +resource "random_pet" "suffix" { + length = 2 +} + +provider "google" { + region = "us-central1" + zone = "us-central1-c" +} diff --git a/developer_connect_git_repository_link_github/main.tf b/developer_connect_git_repository_link_github/main.tf new file mode 100644 index 00000000..af3df84a --- /dev/null +++ b/developer_connect_git_repository_link_github/main.tf @@ -0,0 +1,23 @@ +resource "google_developer_connect_git_repository_link" "primary" { + git_repository_link_id = "my-repository-${local.name_suffix}" + parent_connection = google_developer_connect_connection.github_conn.connection_id + clone_uri = "https://github.com/gcb-developerconnect-robot/tf-demo.git" + location = "us-central1" + annotations = {} +} + +resource "google_developer_connect_connection" "github_conn" { + + location = "us-central1" + connection_id = "my-connection-${local.name_suffix}" + disabled = false + + github_config { + github_app = "DEVELOPER_CONNECT" + app_installation_id = 49439208 + + authorizer_credential { + oauth_token_secret_version = "projects/devconnect-terraform-creds/secrets/tf-test-do-not-change-github-oauthtoken-e0b9e7/versions/1" + } + } +} diff --git a/developer_connect_git_repository_link_github/motd b/developer_connect_git_repository_link_github/motd new file mode 100644 index 00000000..45a906e8 --- /dev/null +++ b/developer_connect_git_repository_link_github/motd @@ -0,0 +1,7 @@ +=== + +These examples use real resources that will be billed to the +Google Cloud Platform project you use - so make sure that you +run "terraform destroy" before quitting! + +=== diff --git a/developer_connect_git_repository_link_github/tutorial.md b/developer_connect_git_repository_link_github/tutorial.md new file mode 100644 index 00000000..6556bfc7 --- /dev/null +++ b/developer_connect_git_repository_link_github/tutorial.md @@ -0,0 +1,79 @@ +# Developer Connect Git Repository Link Github - Terraform + +## Setup + + + +Welcome to Terraform in Google Cloud Shell! We need you to let us know what project you'd like to use with Terraform. + + + +Terraform provisions real GCP resources, so anything you create in this session will be billed against this project. + +## Terraforming! + +Let's use {{project-id}} with Terraform! Click the Cloud Shell icon below to copy the command +to your shell, and then run it from the shell by pressing Enter/Return. Terraform will pick up +the project name from the environment variable. + +```bash +export GOOGLE_CLOUD_PROJECT={{project-id}} +``` + +After that, let's get Terraform started. Run the following to pull in the providers. + +```bash +terraform init +``` + +With the providers downloaded and a project set, you're ready to use Terraform. Go ahead! + +```bash +terraform apply +``` + +Terraform will show you what it plans to do, and prompt you to accept. Type "yes" to accept the plan. + +```bash +yes +``` + + +## Post-Apply + +### Editing your config + +Now you've provisioned your resources in GCP! If you run a "plan", you should see no changes needed. + +```bash +terraform plan +``` + +So let's make a change! Try editing a number, or appending a value to the name in the editor. Then, +run a 'plan' again. + +```bash +terraform plan +``` + +Afterwards you can run an apply, which implicitly does a plan and shows you the intended changes +at the 'yes' prompt. + +```bash +terraform apply +``` + +```bash +yes +``` + +## Cleanup + +Run the following to remove the resources Terraform provisioned: + +```bash +terraform destroy +``` +```bash +yes +```