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.
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.
- Install Terraform
- Create a file structure as shown in Example Usages
- Once resources are created via
terraform init
andterraform apply
, useterraform output -json
to view the generated passwords of replicator and metering (if none were provided as inputs) - Copy the usernames/passwords into your Cloud Foundry meshplatform configuration
Check examples for different use cases. As a quick start we recommend using basic-integration example.
Before opening a Pull Request, we recommend following the below steps to get a faster approval:
-
Install pre-commit
We use pre-commit to perform several terraform related tasks such as
terraform validate
,terraform fmt
, and generating terraform docs withterraform_docs
-
Execute
pre-commit install
: Hooks configured in.pre-commit-config.yaml
will be executed automatically on commit. For manual execution, you can usepre-commit run -a
.
Name | Version |
---|---|
cloudfoundry | 0.53.1 |
No providers.
Name | Source | Version |
---|---|---|
metering | ./modules/metering | n/a |
replicator | ./modules/replicator | n/a |
No resources.
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 |
Name | Description |
---|---|
metering_password | n/a |
metering_username | n/a |
replicator_password | n/a |
replicator_username | n/a |