published on Thursday, Jul 16, 2026 by Pulumi
published on Thursday, Jul 16, 2026 by Pulumi
Accepted Permissions
Secrets Store ReadSecrets Store Write
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as cloudflare from "@pulumi/cloudflare";
const exampleSecretsStoreSecret = new cloudflare.SecretsStoreSecret("example_secrets_store_secret", {
accountId: "985e105f4ecef8ad9ca31a8372d0c353",
storeId: "023e105f4ecef8ad9ca31a8372d0c353",
});
import pulumi
import pulumi_cloudflare as cloudflare
example_secrets_store_secret = cloudflare.SecretsStoreSecret("example_secrets_store_secret",
account_id="985e105f4ecef8ad9ca31a8372d0c353",
store_id="023e105f4ecef8ad9ca31a8372d0c353")
package main
import (
"github.com/pulumi/pulumi-cloudflare/sdk/v6/go/cloudflare"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cloudflare.NewSecretsStoreSecret(ctx, "example_secrets_store_secret", &cloudflare.SecretsStoreSecretArgs{
AccountId: pulumi.String("985e105f4ecef8ad9ca31a8372d0c353"),
StoreId: pulumi.String("023e105f4ecef8ad9ca31a8372d0c353"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Cloudflare = Pulumi.Cloudflare;
return await Deployment.RunAsync(() =>
{
var exampleSecretsStoreSecret = new Cloudflare.SecretsStoreSecret("example_secrets_store_secret", new()
{
AccountId = "985e105f4ecef8ad9ca31a8372d0c353",
StoreId = "023e105f4ecef8ad9ca31a8372d0c353",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.SecretsStoreSecret;
import com.pulumi.cloudflare.SecretsStoreSecretArgs;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleSecretsStoreSecret = new SecretsStoreSecret("exampleSecretsStoreSecret", SecretsStoreSecretArgs.builder()
.accountId("985e105f4ecef8ad9ca31a8372d0c353")
.storeId("023e105f4ecef8ad9ca31a8372d0c353")
.build());
}
}
resources:
exampleSecretsStoreSecret:
type: cloudflare:SecretsStoreSecret
name: example_secrets_store_secret
properties:
accountId: 985e105f4ecef8ad9ca31a8372d0c353
storeId: 023e105f4ecef8ad9ca31a8372d0c353
pulumi {
required_providers {
cloudflare = {
source = "pulumi/cloudflare"
}
}
}
resource "cloudflare_secretsstoresecret" "example_secrets_store_secret" {
account_id = "985e105f4ecef8ad9ca31a8372d0c353"
store_id = "023e105f4ecef8ad9ca31a8372d0c353"
}
Create SecretsStoreSecret Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecretsStoreSecret(name: string, args: SecretsStoreSecretArgs, opts?: CustomResourceOptions);@overload
def SecretsStoreSecret(resource_name: str,
args: SecretsStoreSecretArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecretsStoreSecret(resource_name: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
name: Optional[str] = None,
scopes: Optional[Sequence[str]] = None,
store_id: Optional[str] = None,
value: Optional[str] = None,
comment: Optional[str] = None)func NewSecretsStoreSecret(ctx *Context, name string, args SecretsStoreSecretArgs, opts ...ResourceOption) (*SecretsStoreSecret, error)public SecretsStoreSecret(string name, SecretsStoreSecretArgs args, CustomResourceOptions? opts = null)
public SecretsStoreSecret(String name, SecretsStoreSecretArgs args)
public SecretsStoreSecret(String name, SecretsStoreSecretArgs args, CustomResourceOptions options)
type: cloudflare:SecretsStoreSecret
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "cloudflare_secrets_store_secret" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args SecretsStoreSecretArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SecretsStoreSecretArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SecretsStoreSecretArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecretsStoreSecretArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecretsStoreSecretArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var secretsStoreSecretResource = new Cloudflare.SecretsStoreSecret("secretsStoreSecretResource", new()
{
AccountId = "string",
Name = "string",
Scopes = new[]
{
"string",
},
StoreId = "string",
Value = "string",
Comment = "string",
});
example, err := cloudflare.NewSecretsStoreSecret(ctx, "secretsStoreSecretResource", &cloudflare.SecretsStoreSecretArgs{
AccountId: pulumi.String("string"),
Name: pulumi.String("string"),
Scopes: pulumi.StringArray{
pulumi.String("string"),
},
StoreId: pulumi.String("string"),
Value: pulumi.String("string"),
Comment: pulumi.String("string"),
})
resource "cloudflare_secrets_store_secret" "secretsStoreSecretResource" {
lifecycle {
create_before_destroy = true
}
account_id = "string"
name = "string"
scopes = ["string"]
store_id = "string"
value = "string"
comment = "string"
}
var secretsStoreSecretResource = new SecretsStoreSecret("secretsStoreSecretResource", SecretsStoreSecretArgs.builder()
.accountId("string")
.name("string")
.scopes("string")
.storeId("string")
.value("string")
.comment("string")
.build());
secrets_store_secret_resource = cloudflare.SecretsStoreSecret("secretsStoreSecretResource",
account_id="string",
name="string",
scopes=["string"],
store_id="string",
value="string",
comment="string")
const secretsStoreSecretResource = new cloudflare.SecretsStoreSecret("secretsStoreSecretResource", {
accountId: "string",
name: "string",
scopes: ["string"],
storeId: "string",
value: "string",
comment: "string",
});
type: cloudflare:SecretsStoreSecret
properties:
accountId: string
comment: string
name: string
scopes:
- string
storeId: string
value: string
SecretsStoreSecret Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SecretsStoreSecret resource accepts the following input properties:
- Account
Id string - Account Identifier
- Name string
- The name of the secret
- Scopes List<string>
- The list of services that can use this secret. Valid values are
workers,aiGateway,dex, andaccess. Must be listed in alphabetical order. - Store
Id string - Store Identifier
- Value string
- The value of the secret. Maximum 64 KiB (65,536 bytes). Note that this is 'write only' - no API response will provide this value, it is only used to create/modify secrets.
- Comment string
- Freeform text describing the secret
- Account
Id string - Account Identifier
- Name string
- The name of the secret
- Scopes []string
- The list of services that can use this secret. Valid values are
workers,aiGateway,dex, andaccess. Must be listed in alphabetical order. - Store
Id string - Store Identifier
- Value string
- The value of the secret. Maximum 64 KiB (65,536 bytes). Note that this is 'write only' - no API response will provide this value, it is only used to create/modify secrets.
- Comment string
- Freeform text describing the secret
- account_
id string - Account Identifier
- name string
- The name of the secret
- scopes list(string)
- The list of services that can use this secret. Valid values are
workers,aiGateway,dex, andaccess. Must be listed in alphabetical order. - store_
id string - Store Identifier
- value string
- The value of the secret. Maximum 64 KiB (65,536 bytes). Note that this is 'write only' - no API response will provide this value, it is only used to create/modify secrets.
- comment string
- Freeform text describing the secret
- account
Id String - Account Identifier
- name String
- The name of the secret
- scopes List<String>
- The list of services that can use this secret. Valid values are
workers,aiGateway,dex, andaccess. Must be listed in alphabetical order. - store
Id String - Store Identifier
- value String
- The value of the secret. Maximum 64 KiB (65,536 bytes). Note that this is 'write only' - no API response will provide this value, it is only used to create/modify secrets.
- comment String
- Freeform text describing the secret
- account
Id string - Account Identifier
- name string
- The name of the secret
- scopes string[]
- The list of services that can use this secret. Valid values are
workers,aiGateway,dex, andaccess. Must be listed in alphabetical order. - store
Id string - Store Identifier
- value string
- The value of the secret. Maximum 64 KiB (65,536 bytes). Note that this is 'write only' - no API response will provide this value, it is only used to create/modify secrets.
- comment string
- Freeform text describing the secret
- account_
id str - Account Identifier
- name str
- The name of the secret
- scopes Sequence[str]
- The list of services that can use this secret. Valid values are
workers,aiGateway,dex, andaccess. Must be listed in alphabetical order. - store_
id str - Store Identifier
- value str
- The value of the secret. Maximum 64 KiB (65,536 bytes). Note that this is 'write only' - no API response will provide this value, it is only used to create/modify secrets.
- comment str
- Freeform text describing the secret
- account
Id String - Account Identifier
- name String
- The name of the secret
- scopes List<String>
- The list of services that can use this secret. Valid values are
workers,aiGateway,dex, andaccess. Must be listed in alphabetical order. - store
Id String - Store Identifier
- value String
- The value of the secret. Maximum 64 KiB (65,536 bytes). Note that this is 'write only' - no API response will provide this value, it is only used to create/modify secrets.
- comment String
- Freeform text describing the secret
Outputs
All input properties are implicitly available as output properties. Additionally, the SecretsStoreSecret resource produces the following output properties:
Look up Existing SecretsStoreSecret Resource
Get an existing SecretsStoreSecret resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SecretsStoreSecretState, opts?: CustomResourceOptions): SecretsStoreSecret@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
account_id: Optional[str] = None,
comment: Optional[str] = None,
created: Optional[str] = None,
modified: Optional[str] = None,
name: Optional[str] = None,
scopes: Optional[Sequence[str]] = None,
status: Optional[str] = None,
store_id: Optional[str] = None,
value: Optional[str] = None) -> SecretsStoreSecretfunc GetSecretsStoreSecret(ctx *Context, name string, id IDInput, state *SecretsStoreSecretState, opts ...ResourceOption) (*SecretsStoreSecret, error)public static SecretsStoreSecret Get(string name, Input<string> id, SecretsStoreSecretState? state, CustomResourceOptions? opts = null)public static SecretsStoreSecret get(String name, Output<String> id, SecretsStoreSecretState state, CustomResourceOptions options)resources: _: type: cloudflare:SecretsStoreSecret get: id: ${id}import {
to = cloudflare_secrets_store_secret.example
id = "${id}"
}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Account
Id string - Account Identifier
- Comment string
- Freeform text describing the secret
- Created string
- Whenthe secret was created.
- Modified string
- When the secret was modified.
- Name string
- The name of the secret
- Scopes List<string>
- The list of services that can use this secret. Valid values are
workers,aiGateway,dex, andaccess. Must be listed in alphabetical order. - Status string
- Available values: "pending", "active", "deleted".
- Store
Id string - Store Identifier
- Value string
- The value of the secret. Maximum 64 KiB (65,536 bytes). Note that this is 'write only' - no API response will provide this value, it is only used to create/modify secrets.
- Account
Id string - Account Identifier
- Comment string
- Freeform text describing the secret
- Created string
- Whenthe secret was created.
- Modified string
- When the secret was modified.
- Name string
- The name of the secret
- Scopes []string
- The list of services that can use this secret. Valid values are
workers,aiGateway,dex, andaccess. Must be listed in alphabetical order. - Status string
- Available values: "pending", "active", "deleted".
- Store
Id string - Store Identifier
- Value string
- The value of the secret. Maximum 64 KiB (65,536 bytes). Note that this is 'write only' - no API response will provide this value, it is only used to create/modify secrets.
- account_
id string - Account Identifier
- comment string
- Freeform text describing the secret
- created string
- Whenthe secret was created.
- modified string
- When the secret was modified.
- name string
- The name of the secret
- scopes list(string)
- The list of services that can use this secret. Valid values are
workers,aiGateway,dex, andaccess. Must be listed in alphabetical order. - status string
- Available values: "pending", "active", "deleted".
- store_
id string - Store Identifier
- value string
- The value of the secret. Maximum 64 KiB (65,536 bytes). Note that this is 'write only' - no API response will provide this value, it is only used to create/modify secrets.
- account
Id String - Account Identifier
- comment String
- Freeform text describing the secret
- created String
- Whenthe secret was created.
- modified String
- When the secret was modified.
- name String
- The name of the secret
- scopes List<String>
- The list of services that can use this secret. Valid values are
workers,aiGateway,dex, andaccess. Must be listed in alphabetical order. - status String
- Available values: "pending", "active", "deleted".
- store
Id String - Store Identifier
- value String
- The value of the secret. Maximum 64 KiB (65,536 bytes). Note that this is 'write only' - no API response will provide this value, it is only used to create/modify secrets.
- account
Id string - Account Identifier
- comment string
- Freeform text describing the secret
- created string
- Whenthe secret was created.
- modified string
- When the secret was modified.
- name string
- The name of the secret
- scopes string[]
- The list of services that can use this secret. Valid values are
workers,aiGateway,dex, andaccess. Must be listed in alphabetical order. - status string
- Available values: "pending", "active", "deleted".
- store
Id string - Store Identifier
- value string
- The value of the secret. Maximum 64 KiB (65,536 bytes). Note that this is 'write only' - no API response will provide this value, it is only used to create/modify secrets.
- account_
id str - Account Identifier
- comment str
- Freeform text describing the secret
- created str
- Whenthe secret was created.
- modified str
- When the secret was modified.
- name str
- The name of the secret
- scopes Sequence[str]
- The list of services that can use this secret. Valid values are
workers,aiGateway,dex, andaccess. Must be listed in alphabetical order. - status str
- Available values: "pending", "active", "deleted".
- store_
id str - Store Identifier
- value str
- The value of the secret. Maximum 64 KiB (65,536 bytes). Note that this is 'write only' - no API response will provide this value, it is only used to create/modify secrets.
- account
Id String - Account Identifier
- comment String
- Freeform text describing the secret
- created String
- Whenthe secret was created.
- modified String
- When the secret was modified.
- name String
- The name of the secret
- scopes List<String>
- The list of services that can use this secret. Valid values are
workers,aiGateway,dex, andaccess. Must be listed in alphabetical order. - status String
- Available values: "pending", "active", "deleted".
- store
Id String - Store Identifier
- value String
- The value of the secret. Maximum 64 KiB (65,536 bytes). Note that this is 'write only' - no API response will provide this value, it is only used to create/modify secrets.
Import
$ pulumi import cloudflare:index/secretsStoreSecret:SecretsStoreSecret example '<account_id>/<store_id>/<secret_id>'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Cloudflare pulumi/pulumi-cloudflare
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
cloudflareTerraform Provider.
published on Thursday, Jul 16, 2026 by Pulumi