Skip to content

philips-labs/terraform-cloudfoundry-siderite-backend

Repository files navigation

terraform-cloudfoundry-siderite-backend

Module to deploy a Siderite backend for hsdp_function resource. The module is still evolving and getting new features. Be sure to follow the releases closely as we work towards the 1.0.0 release.

Disclaimer

Important

This repository is managed as Philips Inner-source / Open-source. This repository is NOT endorsed or supported by HSSA&P or I&S Cloud Operations. You are expected to self-support or raise tickets on the Github project and NOT raise tickets in HSP ServiceNow.

Requirements

Name Version
terraform >= 0.13.0
cloudfoundry >= 0.14.1
hsdp >= 0.20.5
random >= 2.2.1

Providers

Name Version
cloudfoundry >= 0.14.1
hsdp >= 0.20.5
random >= 2.2.1

Modules

Name Source Version
validate_space_variables ./modules/validate_space_variables

Resources

Name
cloudfoundry_app
cloudfoundry_domain
cloudfoundry_org
cloudfoundry_route
cloudfoundry_service
cloudfoundry_service_instance
cloudfoundry_service_key
cloudfoundry_space
hsdp_config
random_id
random_password

Inputs

Name Description Type Default Required
auth_iam_client_id The IAN OAuth2 client ID string "" no
auth_iam_client_secret The IAM OAuth2 client secret string "" no
auth_iam_environment IAM environment string "client-test" no
auth_iam_orgs List of IAM ORG IDs to allow list(string) [] no
auth_iam_region IAM region string "us-east" no
auth_iam_roles The roles within the IAM ORG that grants access list(string) [] no
base_url base URL for iron service string "" no
cf_org_name Cloudfoundry ORG name to use for reverse proxy string n/a yes
cf_space_id The space GUID where to deploy components string "" no
cf_space_name The spce name where to deploy components string "" no
docker_password Docker registry password string "" no
docker_username Docker registry username string "" no
enable_gateway Enable a gateway endpoint so you can trigger functions through HTTPS bool true no
environment Pass environment variable to the app map(any) {} no
function_gateway_image Image to use for Function Gateway app. Use a v* tagged version to prevent automatic updates string "philipslabs/hsdp-func-gateway:v1.0.0" no
gateway_auth_type Enable authorization for endpoints on the gateway. Supported types: ['none', 'token', 'iam'] string "token" no
gateway_disk_quota Gateway disk quota number 1024 no
gateway_memory Gateway memory number 64 no
iron_credentials Iron Service credentials map(any) {} no
iron_plan The Iron plan to use string "dev-large-encrypted" no
name_postfix The postfix string to append to the space, hostname, etc. Prevents namespace clashes string "" no

Outputs

Name Description
api_endpoint The API endpoint of the gateway (when enabled)
auth_type The API gateway auth type
credentials Siderite credentials
token The authentication token for the gateway

Contact / Getting help

Please post your questions on the HSDP Slack #terraform channel

License

License is MIT