Hi Team,
We are trying to create an iron job using terraform, please find below the function we have created in main.tf
resource "hsdp_function" "reporting_service" {
name = "reporting_service"
docker_image = var.docker_image_path_reporting
docker_credentials = {
username = var.docker_username
password = var.docker_pwd
}
command = ["node", "reportingService.js"]
environment = {
ALARM_DERIVED_LABEL_COLOR_API = "https://ClinicalInsightsGateway.us-east.philips-healthsuite.com/api/DerivedLabelColor",
ALARM_DB_LABEL_COLOR = "https://ClinicalInsightsGateway.us-east.philips-healthsuite.com/api/api/LabelColor",
EMAIL_API = "https://ClinicalInsightsGateway.us-east.philips-healthsuite.com/api/email",
ALARM_REPORT_NEXT_RUN = "https://ClinicalInsightsGateway.us-east.philips-healthsuite.com/api/Report/NextRun/",
IMAGE_PATH = "/usr/src/app/google-chart.jpeg",
ALARM_REPORT_DATA_API = "https://ClinicalInsightsGateway.us-east.philips-healthsuite.com/api/ReportsData",
ALARM_DB_QUERY_API = "https://ClinicalInsightsGateway.us-east.philips-healthsuite.com/api/query/",
TOKEN_API = "https://ClinicalInsightsGateway.us-east.philips-healthsuite.com/api/Token",
TENANTNAME = "PCMSACPOrg",
SERVICEID = "aim_reporting_service.aim__reporting__app.reporting@pcmsacporg.philips-healthsuite.com",
PRIVATEKEY = "xxxx",
SIDERITE_LOGINGESTOR_URL = "https://logingestor2.us-east.philips-healthsuite.com",
SIDERITE_LOGINGESTOR_PRODUCT_KEY = "e08b628b-9491-4109-8a31-bf2fb8b2cddf",
SIDERITE_LOGINGESTOR_KEY = "ufKgovy7P9DIMsfrkPwRPTsz5U9zjIkJ7M81OBt39TA=",
SIDERITE_LOGINGESTOR_SECRET = "7RyFbieMnnv2LadYUyN5CunTao5GRP1g5zKTcBUQTjA="
}
run_every = "24h"
timeout = 500
backend {
credentials = module.cci-tasy-iron-service.credentials
}
}
module "cci-tasy-iron-service" {
source = "philips-labs/siderite-backend/cloudfoundry"
name_postfix = "aim-prod"
version = "0.8.0"
cf_region = "us-east-1"
cf_org_name = var.org_name
cf_space = var.space_name
cf_user = var.cf_username
iron_plan = "dev-large-encrypted"
enable_gateway = false
}
Please find below the error screenshots we observed with different versions of philips-software/hsdp
- Version = v1.2.1, got the below error during terraform plan
- Version = v1.0.0, got the below error during terraform apply
- Version = v0.71.1, got the below error during terraform apply

Hi Team,
We are trying to create an iron job using terraform, please find below the function we have created in main.tf
resource "hsdp_function" "reporting_service" {
name = "reporting_service"
docker_image = var.docker_image_path_reporting
docker_credentials = {
username = var.docker_username
password = var.docker_pwd
}
command = ["node", "reportingService.js"]
environment = {
ALARM_DERIVED_LABEL_COLOR_API = "https://ClinicalInsightsGateway.us-east.philips-healthsuite.com/api/DerivedLabelColor",
ALARM_DB_LABEL_COLOR = "https://ClinicalInsightsGateway.us-east.philips-healthsuite.com/api/api/LabelColor",
EMAIL_API = "https://ClinicalInsightsGateway.us-east.philips-healthsuite.com/api/email",
ALARM_REPORT_NEXT_RUN = "https://ClinicalInsightsGateway.us-east.philips-healthsuite.com/api/Report/NextRun/",
IMAGE_PATH = "/usr/src/app/google-chart.jpeg",
ALARM_REPORT_DATA_API = "https://ClinicalInsightsGateway.us-east.philips-healthsuite.com/api/ReportsData",
ALARM_DB_QUERY_API = "https://ClinicalInsightsGateway.us-east.philips-healthsuite.com/api/query/",
TOKEN_API = "https://ClinicalInsightsGateway.us-east.philips-healthsuite.com/api/Token",
TENANTNAME = "PCMSACPOrg",
SERVICEID = "aim_reporting_service.aim__reporting__app.reporting@pcmsacporg.philips-healthsuite.com",
PRIVATEKEY = "xxxx",
SIDERITE_LOGINGESTOR_URL = "https://logingestor2.us-east.philips-healthsuite.com",
SIDERITE_LOGINGESTOR_PRODUCT_KEY = "e08b628b-9491-4109-8a31-bf2fb8b2cddf",
SIDERITE_LOGINGESTOR_KEY = "ufKgovy7P9DIMsfrkPwRPTsz5U9zjIkJ7M81OBt39TA=",
SIDERITE_LOGINGESTOR_SECRET = "7RyFbieMnnv2LadYUyN5CunTao5GRP1g5zKTcBUQTjA="
}
run_every = "24h"
timeout = 500
backend {
credentials = module.cci-tasy-iron-service.credentials
}
}
module "cci-tasy-iron-service" {
source = "philips-labs/siderite-backend/cloudfoundry"
name_postfix = "aim-prod"
version = "0.8.0"
cf_region = "us-east-1"
cf_org_name = var.org_name
cf_space = var.space_name
cf_user = var.cf_username
iron_plan = "dev-large-encrypted"
enable_gateway = false
}
Please find below the error screenshots we observed with different versions of philips-software/hsdp