Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Error: local-exec provisioner error when I perform "terraform apply" command #1

Open
mehadi92 opened this issue Nov 13, 2022 · 0 comments

Comments

@mehadi92
Copy link

Hi, I'm getting the below when trying to deploy it. Please let me know If anything that I missing

module.composer-environment.google_composer_environment.composer: Provisioning with 'local-exec'...
module.composer-environment.google_composer_environment.composer (local-exec): Executing: ["/bin/sh" "-c" "./patch.sh"]
module.composer-environment.google_composer_environment.composer (local-exec): ERROR: (gcloud.composer.environments.describe) Error parsing [environment].
module.composer-environment.google_composer_environment.composer (local-exec): The [environment] resource is not properly specified.
module.composer-environment.google_composer_environment.composer (local-exec): Failed to find attribute [project]. The attribute can be set in the following ways:
module.composer-environment.google_composer_environment.composer (local-exec): - provide the argument `--project` on the command line
module.composer-environment.google_composer_environment.composer (local-exec): - set the property `core/project`
module.composer-environment.google_composer_environment.composer: Still creating... [26m20s elapsed]
module.composer-environment.google_composer_environment.composer (local-exec): ERROR: (gcloud.container.clusters.get-credentials) argument NAME: Must be specified.
module.composer-environment.google_composer_environment.composer (local-exec): Usage: gcloud container clusters get-credentials NAME [optional flags]
module.composer-environment.google_composer_environment.composer (local-exec):   optional flags may be  --help | --internal-ip | --region | --zone

module.composer-environment.google_composer_environment.composer (local-exec): For detailed information on this command and its flags, run:
module.composer-environment.google_composer_environment.composer (local-exec):   gcloud container clusters get-credentials --help
module.composer-environment.google_composer_environment.composer (local-exec): The connection to the server 127.0.0.1:30086 was refused - did you specify the right host or port?

module.composer-environment.google_composer_environment.composer (local-exec): error: failed to create secret Post "https://127.0.0.1:30086/api/v1/namespaces/default/secrets?fieldManager=kubectl-create&fieldValidation=Strict": dial tcp 127.0.0.1:30086: connect: connection refused
module.composer-environment.google_composer_environment.composer (local-exec): ERROR: (gcloud.composer.environments.run) Error parsing [environment].
module.composer-environment.google_composer_environment.composer (local-exec): The [environment] resource is not properly specified.
module.composer-environment.google_composer_environment.composer (local-exec): Failed to find attribute [project]. The attribute can be set in the following ways:
module.composer-environment.google_composer_environment.composer (local-exec): - provide the argument `--project` on the command line
module.composer-environment.google_composer_environment.composer (local-exec): - set the property `core/project`
╷
│ Error: local-exec provisioner error
│ 
│   with module.composer-environment.google_composer_environment.composer,
│   on modules/gcp-composer/main.tf line 39, in resource "google_composer_environment" "composer":
│   39:   provisioner "local-exec" {
│ 
│ Error running command './patch.sh': exit status 1. Output: ERROR: (gcloud.composer.environments.describe) Error parsing [environment].
│ The [environment] resource is not properly specified.
│ Failed to find attribute [project]. The attribute can be set in the following ways: 
│ - provide the argument `--project` on the command line
│ - set the property `core/project`
│ ERROR: (gcloud.container.clusters.get-credentials) argument NAME: Must be specified.
│ Usage: gcloud container clusters get-credentials NAME [optional flags]
│   optional flags may be  --help | --internal-ip | --region | --zone
│ 
│ For detailed information on this command and its flags, run:
│   gcloud container clusters get-credentials --help
│ The connection to the server 127.0.0.1:30086 was refused - did you specify the right host or port?
│ 
│ error: failed to create secret Post "https://127.0.0.1:30086/api/v1/namespaces/default/secrets?fieldManager=kubectl-create&fieldValidation=Strict": dial tcp 127.0.0.1:30086: connect: connection refused
│ ERROR: (gcloud.composer.environments.run) Error parsing [environment].
│ The [environment] resource is not properly specified.
│ Failed to find attribute [project]. The attribute can be set in the following ways: 
│ - provide the argument `--project` on the command line
│ - set the property `core/project`

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant