---
apiVersion: tf.upbound.io/v1beta1
kind: StoreConfig
metadata:
name: vault
spec:
type: Vault
defaultScope: crossplane-system
vault:
server: http://vault.vault-system:8200
mountPath: secret/
version: v2
auth:
method: Token
token:
source: Filesystem
fs:
path: /vault/secrets/token
---
apiVersion: tf.upbound.io/v1beta1
kind: Workspace
metadata:
name: example-random-generator
annotations:
meta.upbound.io/example-id: tf/v1beta1/workspace
# The terraform workspace will be named 'random'. If you omit this
# annotation it would be derived from metadata.name - e.g. 'example-random-generator.
# crossplane.io/external-name: crossplane
spec:
forProvider:
source: Inline
module: |
resource "random_id" "example_id" {
byte_length = 8
}
resource "random_password" "password" {
length = 16
special = true
}
// Non-sensitive Outputs are written to status.atProvider.outputs and to the connection secret.
output "random_id_hex" {
value = random_id.example_id.hex
}
// Sensitive Outputs are only written to the connection secret
output "random_password" {
value = random_password.password
sensitive = true
}
// Terraform has several other random resources, see the random provider for details
providerConfigRef:
name: ess-terraform
publishConnectionDetailsTo:
name: random-to-vault
configRef:
name: vault
writeConnectionSecretToRef:
namespace: vault-system
name: terraform-workspace-example-random-generator
Description of your changes
Missing Tls injection when![20240303_00h18m16s_grim](https://github.com/upbound/provider-terraform/assets/26741817/795cdad5-e669-4f59-807f-8a807f420794)
--enable-secrets-store
the error message regading the issue message disapearsFixes #228
I have:
make reviewable
to ensure this PR is ready for review.How has this code been tested
this code as been tested has this
then install as the doc says
=> https://docs.crossplane.io/knowledge-base/integrations/vault-as-secret-store/#add-the-vault-helm-chart
then use the example giva in configuration marketplace terraform-provider ==>https://marketplace.upbound.io/providers/upbound/provider-terraform/v0.14.1/docs/configuration