Skip to content

Commit 5af035a

Browse files
authored
Merge pull request #319 from Rycieos/default-disable-default-sa
Change default for default compute SA to disable
2 parents b5bc2e7 + 6a4ef7e commit 5af035a

File tree

8 files changed

+11
-7
lines changed

8 files changed

+11
-7
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ Extending the adopted spec, each change should have a link to its corresponding
1212

1313
- Option to disable the default compute service account. [#313]
1414

15+
### Changed
16+
17+
- **Breaking**: Default for default compute service account changed to disable from delete. [#313]
18+
1519
### Fixed
1620

1721
- Fixed an issue with passing an empty list to activate_apis. [#300]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ determining that location is as follows:
120120
| bucket\_name | A name for a GCS bucket to create (in the bucket_project project), useful for Terraform state (optional) | string | `""` | no |
121121
| bucket\_project | A project to create a GCS bucket (bucket_name) in, useful for Terraform state (optional) | string | `""` | no |
122122
| credentials\_path | Path to a service account credentials file with rights to run the Project Factory. If this file is absent Terraform will fall back to Application Default Credentials. | string | `""` | no |
123-
| default\_service\_account | Project default service account setting: can be one of `delete`, `depriviledge`, `disable`, or `keep`. | string | `"delete"` | no |
123+
| default\_service\_account | Project default service account setting: can be one of `delete`, `depriviledge`, `disable`, or `keep`. | string | `"disable"` | no |
124124
| disable\_dependent\_services | Whether services that are enabled and which depend on this service should also be disabled when this service is destroyed. | bool | `"true"` | no |
125125
| disable\_services\_on\_destroy | Whether project services will be disabled when the resources are destroyed | string | `"true"` | no |
126126
| domain | The domain name (optional). | string | `""` | no |

docs/TROUBLESHOOTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ requires that the default compute service account be in place in the project.
249249
**Solution:**
250250

251251
In order to deploy an App Engine Flex application into a project created by Project Factory,
252-
the default service account must not be deleted (as is the default behavior). To prevent the
252+
the default service account must not be disabled (as is the default behavior) or deleted. To prevent the
253253
default service account from being deleted, ensure that the `default_service_account` input
254254
is set to either `depriviledge` or `keep`.
255255

modules/core_project_factory/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ variable "disable_services_on_destroy" {
157157

158158
variable "default_service_account" {
159159
description = "Project default service account setting: can be one of `delete`, `depriviledge`, `disable`, or `keep`."
160-
default = "delete"
160+
default = "disable"
161161
type = string
162162
}
163163

modules/gsuite_enabled/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ The roles granted are specifically:
6767
| bucket\_project | A project to create a GCS bucket (bucket_name) in, useful for Terraform state (optional) | string | `""` | no |
6868
| create\_group | Whether to create the group or not | bool | `"false"` | no |
6969
| credentials\_path | Path to a service account credentials file with rights to run the Project Factory. If this file is absent Terraform will fall back to Application Default Credentials. | string | `""` | no |
70-
| default\_service\_account | Project default service account setting: can be one of `delete`, `depriviledge`, `disable`, or `keep`. | string | `"delete"` | no |
70+
| default\_service\_account | Project default service account setting: can be one of `delete`, `depriviledge`, `disable`, or `keep`. | string | `"disable"` | no |
7171
| disable\_dependent\_services | Whether services that are enabled and which depend on this service should also be disabled when this service is destroyed. | string | `"true"` | no |
7272
| disable\_services\_on\_destroy | Whether project services will be disabled when the resources are destroyed | string | `"true"` | no |
7373
| domain | The domain name (optional). | string | `""` | no |

modules/gsuite_enabled/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ variable "disable_services_on_destroy" {
155155

156156
variable "default_service_account" {
157157
description = "Project default service account setting: can be one of `delete`, `depriviledge`, `disable`, or `keep`."
158-
default = "delete"
158+
default = "disable"
159159
type = string
160160
}
161161

modules/shared_vpc/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ variable "disable_services_on_destroy" {
149149

150150
variable "default_service_account" {
151151
description = "Project default service account setting: can be one of `delete`, `depriviledge`, `disable`, or `keep`."
152-
default = "delete"
152+
default = "disable"
153153
type = string
154154
}
155155

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ variable "disable_services_on_destroy" {
157157

158158
variable "default_service_account" {
159159
description = "Project default service account setting: can be one of `delete`, `depriviledge`, `disable`, or `keep`."
160-
default = "delete"
160+
default = "disable"
161161
type = string
162162
}
163163

0 commit comments

Comments
 (0)