Skip to content

Commit 6a8fe30

Browse files
authored
fix(gcs): project_id should be optional (#693)
* fix(gcs): project_id should be optional * docs(gcs): project_id should be optional
1 parent a7557f3 commit 6a8fe30

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

docs/resources/service_compute.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@ Required:
336336

337337
- `bucket_name` (String) The name of the bucket in which to store the logs
338338
- `name` (String) A unique name to identify this GCS endpoint. It is important to note that changing this attribute will delete and recreate the resource
339-
- `project_id` (String) The ID of your Google Cloud Platform project
340339

341340
Optional:
342341

@@ -346,6 +345,7 @@ Optional:
346345
- `message_type` (String) How the message should be formatted. Can be either `classic`, `loggly`, `logplex` or `blank`. Default is `classic`
347346
- `path` (String) Path to store the files. Must end with a trailing slash. If this field is left empty, the files will be saved in the bucket's root path
348347
- `period` (Number) How frequently the logs should be transferred, in seconds (Default 3600)
348+
- `project_id` (String) The ID of your Google Cloud Platform project
349349
- `secret_key` (String, Sensitive) The secret key associated with the target gcs bucket on your account. You may optionally provide this secret via an environment variable, `FASTLY_GCS_SECRET_KEY`. A typical format for the key is PEM format, containing actual newline characters where required
350350
- `timestamp_format` (String) The `strftime` specified timestamp formatting (default `%Y-%m-%dT%H:%M:%S.000`)
351351
- `user` (String) Your Google Cloud Platform service account email address. The `client_email` field in your service account authentication JSON. You may optionally provide this via an environment variable, `FASTLY_GCS_EMAIL`.

docs/resources/service_vcl.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,6 @@ Required:
678678

679679
- `bucket_name` (String) The name of the bucket in which to store the logs
680680
- `name` (String) A unique name to identify this GCS endpoint. It is important to note that changing this attribute will delete and recreate the resource
681-
- `project_id` (String) The ID of your Google Cloud Platform project
682681

683682
Optional:
684683

@@ -691,6 +690,7 @@ Optional:
691690
- `path` (String) Path to store the files. Must end with a trailing slash. If this field is left empty, the files will be saved in the bucket's root path
692691
- `period` (Number) How frequently the logs should be transferred, in seconds (Default 3600)
693692
- `placement` (String) Where in the generated VCL the logging call should be placed.
693+
- `project_id` (String) The ID of your Google Cloud Platform project
694694
- `response_condition` (String) Name of a condition to apply this logging.
695695
- `secret_key` (String, Sensitive) The secret key associated with the target gcs bucket on your account. You may optionally provide this secret via an environment variable, `FASTLY_GCS_SECRET_KEY`. A typical format for the key is PEM format, containing actual newline characters where required
696696
- `timestamp_format` (String) The `strftime` specified timestamp formatting (default `%Y-%m-%dT%H:%M:%S.000`)

fastly/block_fastly_service_logging_gcs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func (h *GCSLoggingServiceAttributeHandler) GetSchema() *schema.Schema {
8484
},
8585
"project_id": {
8686
Type: schema.TypeString,
87-
Required: true,
87+
Optional: true,
8888
Description: "The ID of your Google Cloud Platform project",
8989
},
9090
"secret_key": {

0 commit comments

Comments
 (0)