Skip to content

Commit

Permalink
Updated docs that reference how to base64 encode binary files (#5282)
Browse files Browse the repository at this point in the history
  • Loading branch information
melinath committed Oct 5, 2021
1 parent d2070ec commit d8353a2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ resource "google_endpoints_service" "grpc_service" {
service_name = "api-name.endpoints.project-id.cloud.goog"
project = "project-id"
grpc_config = file("service_spec.yml")
protoc_output_base64 = base64encode(file("compiled_descriptor_file.pb"))
protoc_output_base64 = filebase64("compiled_descriptor_file.pb")
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ resource "google_runtimeconfig_config" "my-runtime-config" {
resource "google_runtimeconfig_variable" "my-secret" {
parent = google_runtimeconfig_config.my-runtime-config.name
name = "secret"
value = base64encode(file("my-encrypted-secret.dat"))
value = filebase64("my-encrypted-secret.dat")
}
```

Expand Down

0 comments on commit d8353a2

Please sign in to comment.