Terraform GCP: Always use local account for resource creation (#571)

* Terraform GCP: Always use local account for resource creation
* Update CHANGELOG
This commit is contained in:
Malte Poll 2022-11-17 10:33:36 +01:00 committed by GitHub
parent fe36de8826
commit df0cd43f92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 8 deletions

View File

@ -36,6 +36,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Security ### Security
<!-- For security related changes. --> <!-- For security related changes. -->
### Fixed
- `constellation create` on GCP now always uses the local default credentials.
## [2.2.1] - 2022-11-14 ## [2.2.1] - 2022-11-14

View File

@ -12,8 +12,6 @@ terraform {
} }
provider "google" { provider "google" {
credentials = file(var.credentials_file)
project = var.project project = var.project
region = var.region region = var.region
zone = var.zone zone = var.zone

View File

@ -35,11 +35,6 @@ variable "zone" {
description = "The GCP zone to deploy the cluster in." description = "The GCP zone to deploy the cluster in."
} }
variable "credentials_file" {
type = string
description = "The path to the GCP credentials file."
}
variable "instance_type" { variable "instance_type" {
type = string type = string
description = "The GCP instance type to deploy." description = "The GCP instance type to deploy."

View File

@ -106,7 +106,6 @@ func (v *GCPVariables) String() string {
writeLinef(b, "project = %q", v.Project) writeLinef(b, "project = %q", v.Project)
writeLinef(b, "region = %q", v.Region) writeLinef(b, "region = %q", v.Region)
writeLinef(b, "zone = %q", v.Zone) writeLinef(b, "zone = %q", v.Zone)
writeLinef(b, "credentials_file = %q", v.CredentialsFile)
writeLinef(b, "instance_type = %q", v.InstanceType) writeLinef(b, "instance_type = %q", v.InstanceType)
writeLinef(b, "state_disk_type = %q", v.StateDiskType) writeLinef(b, "state_disk_type = %q", v.StateDiskType)
writeLinef(b, "image_id = %q", v.ImageID) writeLinef(b, "image_id = %q", v.ImageID)