The HCP Provider allows you to manage your Vault Secrets apps and secrets.

The Vault Secrets app resource allows you to manage your application through the following configuration:

resource "hcp_vault_secrets_app" "example" {
  app_name    = "example-app-name"
  description = "My new app!"
}

We can also use this to create secrets based off our new application.

resource "hcp_vault_secrets_app" "example" {
  app_name    = "example-app-name"
  description = "My new app!"
}
resource "hcp_vault_secrets_secret" "secret-example" {
  app_name     = hcp.hcp_vault_secrets_app.example.app_name
  secret_name  = "a-new-secret"
  secret_value = "a test secret"
}