File tree Expand file tree Collapse file tree
infra/terraform/modules/ec_deployment Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,6 +48,6 @@ output "moxy_ip" {
4848}
4949
5050output "admin_console_url" {
51- value = var. run_standalone ? " https://cloud.elastic. co/deployments" : module. ec_deployment [0 ]. admin_console_url
51+ value = var. run_standalone ? ( lower (var . ec_target ) == " qa " ? " https://admin.qa.cld.elstc. co/deployments" : " https://admin.found.no/deployments " ) : module. ec_deployment [0 ]. admin_console_url
5252 description = " The admin console URL"
5353}
Original file line number Diff line number Diff line change 11locals {
22 admin_console_urls = {
33 qa = " https://admin.qa.cld.elstc.co"
4- pro = " https://cloud.elastic.co "
4+ pro = " https://admin.found.no "
55 }
66}
77
Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ ec_api_base_url() {
77 local ec_target=" ${EC_TARGET:- pro} "
88 case " ${ec_target} " in
99 qa)
10- echo " https://public-api.qa.cld.elstc.co/api/v1 "
10+ echo " https://public-api.qa.cld.elstc.co"
1111 ;;
1212 pro)
13- echo " https://api.elastic-cloud.com/api/v1 "
13+ echo " https://api.elastic-cloud.com"
1414 ;;
1515 * )
1616 echo " -> Unsupported EC_TARGET: ${ec_target} . Valid values are: qa, pro." >&2
@@ -28,7 +28,7 @@ get_versions() {
2828 terraform_init
2929
3030 local REGION=$( echo var.region | terraform console | tr -d ' "' )
31- local EC_VERSION_ENDPOINT=" $( ec_api_base_url) /regions/${REGION} /stack/versions?show_deleted=false&show_unusable=false"
31+ local EC_VERSION_ENDPOINT=" $( ec_api_base_url) /api/v1/ regions/${REGION} /stack/versions?show_deleted=false&show_unusable=false"
3232 local RES
3333 local RC=0
3434 RES=$( curl_fail -H " Authorization: ApiKey ${EC_API_KEY} " ${EC_VERSION_ENDPOINT} ) || RC=$?
@@ -64,7 +64,7 @@ get_latest_snapshot() {
6464 terraform_init
6565
6666 local REGION=$( echo var.region | terraform console | tr -d ' "' )
67- local EC_VERSION_ENDPOINT=" $( ec_api_base_url) /regions/${REGION} /stack/versions?show_deleted=false&show_unusable=true"
67+ local EC_VERSION_ENDPOINT=" $( ec_api_base_url) /api/v1/ regions/${REGION} /stack/versions?show_deleted=false&show_unusable=true"
6868 local RES
6969 local RC=0
7070 RES=$( curl_fail -H " Authorization: ApiKey ${EC_API_KEY} " ${EC_VERSION_ENDPOINT} ) || RC=$?
You can’t perform that action at this time.
0 commit comments