Skip to content

Instantly share code, notes, and snippets.

@ryaz
Created July 7, 2020 18:43
Show Gist options
  • Save ryaz/16c5f01003479ea93e3ee5ef02790144 to your computer and use it in GitHub Desktop.
Save ryaz/16c5f01003479ea93e3ee5ef02790144 to your computer and use it in GitHub Desktop.
terraform output
$ make build PROJECT_ID="alooma-new-approach" PROJECT_NUMBER="181693460159"
Setup Webhook Variables for project: alooma-new-approach
Dead Letter Table: alooma-new-approach:webhook.errors
echo "Building Webhook Application for project: alooma-new-approach"
Building Webhook Application for project: alooma-new-approach
./build.sh
Apply Terraform Resources
Initializing the backend...
Initializing provider plugins...
The following providers do not have any version constraints in configuration,
so the latest version was installed.
To prevent automatic upgrades to new major versions that may contain breaking
changes, it is recommended to add version = "..." constraints to the
corresponding provider blocks in configuration, with the constraint strings
suggested below.
* provider.google: version = "~> 3.28"
Terraform has been successfully initialized!
You may now begin working with Terraform. Try running "terraform plan" to see
any changes that are required for your infrastructure. All Terraform commands
should now work.
If you ever set or change modules or backend configuration for Terraform,
rerun this command to reinitialize your working directory. If you forget, other
commands will detect it and remind you to do so if necessary.
google_app_engine_application.app: Importing from ID "alooma-new-approach"...
google_app_engine_application.app: Import prepared!
Prepared google_app_engine_application for import
google_app_engine_application.app: Refreshing state... [id=alooma-new-approach]
Error: Error when reading or editing App Engine Application "alooma-new-approach": Get "https://appengine.googleapis.com/v1/apps/alooma-new-approach?alt=json&prettyPrint=false": oauth2: cannot fetch token: 400 Bad Request
Response: {
"error": "invalid_grant",
"error_description": "Bad Request"
}
google_project_service.dataflow_api: Creating...
google_pubsub_topic.webhook_topic: Creating...
google_project_service.data_pipeline_api: Creating...
google_service_account.webhook_sa: Creating...
google_app_engine_application.app: Creating...
google_storage_bucket.webhook_gcs_stage: Creating...
Error: Error creating App Engine application: Post "https://appengine.googleapis.com/v1/apps?alt=json&prettyPrint=false": oauth2: cannot fetch token: 400 Bad Request
Response: {
"error": "invalid_grant",
"error_description": "Bad Request"
}
on app_engine.tf line 54, in resource "google_app_engine_application" "app":
54: resource "google_app_engine_application" "app" {
Error: Error when reading or editing Project Service : Request "List Project Services alooma-new-approach" returned error: Batch request and retried single request "List Project Services alooma-new-approach" both failed. Final error: Failed to list enabled services for project alooma-new-approach: Get "https://serviceusage.googleapis.com/v1/projects/alooma-new-approach/services?alt=json&fields=services%2Fname%2CnextPageToken&filter=state%3AENABLED&prettyPrint=false": oauth2: cannot fetch token: 400 Bad Request
Response: {
"error": "invalid_grant",
"error_description": "Bad Request"
}
on dataflow.tf line 17, in resource "google_project_service" "dataflow_api":
17: resource "google_project_service" "dataflow_api" {
Error: Post "https://www.googleapis.com/storage/v1/b?alt=json&prettyPrint=false&project=alooma-new-approach": oauth2: cannot fetch token: 400 Bad Request
Response: {
"error": "invalid_grant",
"error_description": "Bad Request"
}
on gcs.tf line 16, in resource "google_storage_bucket" "webhook_gcs_stage":
16: resource "google_storage_bucket" "webhook_gcs_stage" {
Error: Error when reading or editing Project Service : Request "List Project Services alooma-new-approach" returned error: Batch request and retried single request "List Project Services alooma-new-approach" both failed. Final error: Failed to list enabled services for project alooma-new-approach: Get "https://serviceusage.googleapis.com/v1/projects/alooma-new-approach/services?alt=json&fields=services%2Fname%2CnextPageToken&filter=state%3AENABLED&prettyPrint=false": oauth2: cannot fetch token: 400 Bad Request
Response: {
"error": "invalid_grant",
"error_description": "Bad Request"
}
on network.tf line 15, in resource "google_project_service" "data_pipeline_api":
15: resource "google_project_service" "data_pipeline_api" {
Error: Error creating Topic: Put "https://pubsub.googleapis.com/v1/projects/alooma-new-approach/topics/alooma-new-approach-webhook?alt=json": oauth2: cannot fetch token: 400 Bad Request
Response: {
"error": "invalid_grant",
"error_description": "Bad Request"
}
on pub_sub.tf line 15, in resource "google_pubsub_topic" "webhook_topic":
15: resource "google_pubsub_topic" "webhook_topic" {
Error: Error creating service account: Post "https://iam.googleapis.com/v1/projects/alooma-new-approach/serviceAccounts?alt=json&prettyPrint=false": oauth2: cannot fetch token: 400 Bad Request
Response: {
"error": "invalid_grant",
"error_description": "Bad Request"
}
on service_account.tf line 15, in resource "google_service_account" "webhook_sa":
15: resource "google_service_account" "webhook_sa" {
tr: Illegal byte sequence
ERROR: (gcloud.beta.dataflow) Invalid choice: 'flex-template'.
Maybe you meant:
gcloud app
To search the help text of gcloud commands, run:
gcloud help -- SEARCH_TERMS
make: *** [build] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment