3.0 KiB

title_tag, meta_desc, title, h1, meta_image, menu
title_tag meta_desc title h1 meta_image menu
gcp-secrets Pulumi ESC Provider The gcp-secrets Pulumi ESC Provider enables you to dynamically import Secrets from Google Cloud Secrets Manager into your Environment. gcp-secrets gcp-secrets /images/docs/meta-images/docs-meta.png
pulumicloud
identifier parent weight
gcp-secrets esc-providers 6

The gcp-secrets provider enables you to dynamically import Secrets from Google Cloud Secrets Manager into your Environment. The provider will return a map of names to Secrets.

Example

  gcp:
    login:
      fn::open::gcp-login:
        project: 123456789
        oidc:
          workloadPoolId: pulumi-esc
          providerId: pulumi-esc
          serviceAccount: pulumi-esc@foo-bar-123456.iam.gserviceaccount.com
    secrets:
      fn::open::gcp-secrets:
        login: ${gcp.login}
        access:
          api-key:
            name: api-key
          app-secret:
            name: app-secret

Inputs

Property Type Description
login GCPSecretsLogin Credentials used to log in to Google Cloud.
access map[string]GCPSecretsAccess A map from names to secrets to read from Google Cloud Secrets Manager. The outputs will map each name to the secret's sensitive data.

GCPSecretsLogin

Property Type Description
project string The numerical ID of the GCP project, aka project number. (e.g. 951040570662)
accessToken string The access token used to authenticate with Google Cloud.
tokenType string The type of the access token.
expiry string [Optional] - The access token's expiry time.

GCPSecretsAccess

Property Type Description
name string The name of the secret to import.
version string [Optional] - The version of the secret to import.

Outputs

Property Type Description
N/A object A map of names to imported Secrets.