Error while building an environment group in apigee using terrafrom

Hi,

I am trying to create environment group and environments in apigee using terraform, the script I am using is:

provider "google" {
credentials = "service_account.json"
project = "my_project_id"
region = "us-east-1"
}

data "google_client_config" "current" {}

resource "google_apigee_envgroup" "env_grp" {
name = "test_env_grp"
org_id = "my_org_id"
}

Error:

<a href=//www.google.com/><span id=logo aria-label=Google></span></a>
│ <p><b>404.</b> <ins>That’s an error.</ins>
│ <p>The requested URL <code>/v1/{org_id}/environments?alt=json</code> was not found on this server. <ins>That’s all we know.</ins>

 Can you please help me here, as far as the apigee docs backend url should be /v1/organizations/{org_ig}/environments and that is causing issue as terraform backend url is not correct, I think I am doing something wrong here. Please do let me know!

Thanks in advance!!

1 0 116
0 REPLIES 0