- Understand the concept of Continuous Deployment and Infrastructure as code(Terraform)
- You need to set up a lab environment (Google Cloud and GitHub) to proceed with this exercise
- Modify Go code and see automatic deployment
- Add configuration via Terraform
- (optional) read code
-
Access Cloud Run
- https://console.cloud.google.com/run
- You can get a URL from the console (Click the name of Cloud Run)
https://training-helloworld-*****.a.run.app
-
Modify message
-
Re-Access Cloud Run
- Confirm an automated deployment
- Document: https://registry.terraform.io/providers/hashicorp/google/latest/docs
- For instance, you can create a new service account like this configuration
resource "google_service_account" "test" {
account_id = "service-account-id"
}
- You can see the result on the web console: https://console.cloud.google.com/iam-admin/serviceaccounts
- Understand what happens from the source codes