Skip to content

meshcloud/terraform-cloudfoundry-meshplatform

Repository files navigation

Cloud Foundry meshPlatform Module

Terraform module to integrate Cloud Foundry as a meshPlatform into meshStack instance. With this module, cloud foundry users used by meshStack are created with the required permissions. The output of this module is a set of credentials that need to be configured in meshStack as described in meshcloud public docs.

Prerequisites

To run this module, you need to use cloud foundry admin user and UAA admin client.

You can create an admin user with UAA CLI.

How to Use This Module

  1. Install Terraform
  2. Create a file structure as shown in Example Usages
  3. Once resources are created via terraform init and terraform apply, use terraform output -json to view the generated passwords of replicator and metering (if none were provided as inputs)
  4. Copy the usernames/passwords into your Cloud Foundry meshplatform configuration

Example Usages

Check examples for different use cases. As a quick start we recommend using basic-integration example.

Contributing Guide

Before opening a Pull Request, we recommend following the below steps to get a faster approval:

  1. Install pre-commit

    We use pre-commit to perform several terraform related tasks such as terraform validate, terraform fmt, and generating terraform docs with terraform_docs

  2. Execute pre-commit install: Hooks configured in .pre-commit-config.yaml will be executed automatically on commit. For manual execution, you can use pre-commit run -a.

Requirements

Name Version
cloudfoundry 0.53.1

Providers

No providers.

Modules

Name Source Version
metering ./modules/metering n/a
replicator ./modules/replicator n/a

Resources

No resources.

Inputs

Name Description Type Default Required
metering_password Password of the metering service user. A random password is generated if omitted. string "thisvalueisnotactuallyused" no
metering_username Username of the service user used in Metering Configuration in meshStack. string "meshcloud-metering" no
replicator_password Password of the replicator service user. A random password is generated if omitted. string "thisvalueisnotactuallyused" no
replicator_username Username of the service user used in Replication Configuration in meshStack. string "meshcloud-replicator" no

Outputs

Name Description
metering_password n/a
metering_username n/a
replicator_password n/a
replicator_username n/a

About

Terraform module to integrate Cloud Foundry as a meshPlatform

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages