hi all,
I want to migrate saas proxies to opdk using terraform for that I have already downloaded proxy bundles
I am using the below terraform providers
https://registry.terraform.io/providers/scastria/apigee/latest/docs
so but i am not able to configure the provider because opdk is on a private cloud having an IP and where pass the IP and configure
i've tried below thing
terraform {
required_providers {
apigee = {
source = "scastria/apigee"
version = "~> 0.1.0"
}
}
}
provider "apigee" {
username = "apigee@opdk.com"
password = "Apigee@123"
organization = "myorg"
server = "11.22.33.44:9000" // ip and port where apigee opdk is running
port = 80
oauth_port = 80
}
resource "apigee_proxy" "example" {
name = "ShawnTest"
bundle = "C:\\Users\\LP45\\Desktop\\opdk-migration\\demo_rev1_2021_10_26.zip"
bundle_hash = filebase64sha256("C:\\Users\\LP45\\Desktop\\opdk-migration\\demo_rev1_2021_10_26.zip")
}
but it is not working
could you please let me know how to configure
even though i tried with management API but not working
@Denis_KALITVI @API-Evangelist @dchiesa1 @cjking
Thanks
From the docs you linked the server should only be the IP, and the port is separate. Furthermore, 9000 is the UI port but you need the management API port (default 8080 on OPDK). But I've never used this terraform before so there might be other issues I'm not aware of.
You might also consider https://github.com/apigeecs/apigee-migrate-tool for this task.
@cjking yaa thanks for the response I did that change but by default, it is forwarding to HTTPS and my opdk setup is not secure it is HTTP how I mention that
error code = "http: server gave HTTP response to HTTPS client"
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |