Resource for creating a secret of type secret file in Harness.
[!NOTE]
- Selecting a Customer managed Key (CMK) for encryption is supported in Harness Delegate version 25.11.87300 or later and is behind the feature flag
PL_ENABLE_NON_DEFAULT_ENCRYPTION_KEY. Contact Harness Support to enable the feature.- This option would be unavailable if the AWS Secret Manager connector has the option Use “put-secret-value” action to update secret value enabled.
Refer to the documentation for details.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
const example = new harness.platform.SecretFile("example", {
identifier: "identifier",
name: "name",
description: "test",
tags: ["foo:bar"],
filePath: "file_path",
secretManagerIdentifier: "harnessSecretManager",
});
// With AWS Secret Manager KMS Key
const awsSecretManager = new harness.platform.SecretFile("aws_secret_manager", {
identifier: "identifier",
name: "name",
description: "example",
tags: ["foo:bar"],
filePath: "file_path",
secretManagerIdentifier: "awsSecretManager",
additionalMetadatas: [{
values: [{
kmsKeyId: "kmsKeyId",
}],
}],
});
// With GCP Secret Manager project ID and region
const gcpSecretManager = new harness.platform.SecretFile("gcp_secret_manager", {
identifier: "identifier",
name: "name",
description: "example",
tags: ["foo:bar"],
filePath: "file_path",
secretManagerIdentifier: "gcpSecretManager",
additionalMetadatas: [{
values: [{
regions: "us-east1",
gcpProjectId: "my-gcp-project-id",
}],
}],
});
import pulumi
import pulumi_harness as harness
example = harness.platform.SecretFile("example",
identifier="identifier",
name="name",
description="test",
tags=["foo:bar"],
file_path="file_path",
secret_manager_identifier="harnessSecretManager")
# With AWS Secret Manager KMS Key
aws_secret_manager = harness.platform.SecretFile("aws_secret_manager",
identifier="identifier",
name="name",
description="example",
tags=["foo:bar"],
file_path="file_path",
secret_manager_identifier="awsSecretManager",
additional_metadatas=[{
"values": [{
"kms_key_id": "kmsKeyId",
}],
}])
# With GCP Secret Manager project ID and region
gcp_secret_manager = harness.platform.SecretFile("gcp_secret_manager",
identifier="identifier",
name="name",
description="example",
tags=["foo:bar"],
file_path="file_path",
secret_manager_identifier="gcpSecretManager",
additional_metadatas=[{
"values": [{
"regions": "us-east1",
"gcp_project_id": "my-gcp-project-id",
}],
}])
package main
import (
"github.com/pulumi/pulumi-harness/sdk/go/harness/platform"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := platform.NewSecretFile(ctx, "example", &platform.SecretFileArgs{
Identifier: pulumi.String("identifier"),
Name: pulumi.String("name"),
Description: pulumi.String("test"),
Tags: pulumi.StringArray{
pulumi.String("foo:bar"),
},
FilePath: pulumi.String("file_path"),
SecretManagerIdentifier: pulumi.String("harnessSecretManager"),
})
if err != nil {
return err
}
// With AWS Secret Manager KMS Key
_, err = platform.NewSecretFile(ctx, "aws_secret_manager", &platform.SecretFileArgs{
Identifier: pulumi.String("identifier"),
Name: pulumi.String("name"),
Description: pulumi.String("example"),
Tags: pulumi.StringArray{
pulumi.String("foo:bar"),
},
FilePath: pulumi.String("file_path"),
SecretManagerIdentifier: pulumi.String("awsSecretManager"),
AdditionalMetadatas: platform.SecretFileAdditionalMetadataArray{
&platform.SecretFileAdditionalMetadataArgs{
Values: platform.SecretFileAdditionalMetadataValueArray{
&platform.SecretFileAdditionalMetadataValueArgs{
KmsKeyId: pulumi.String("kmsKeyId"),
},
},
},
},
})
if err != nil {
return err
}
// With GCP Secret Manager project ID and region
_, err = platform.NewSecretFile(ctx, "gcp_secret_manager", &platform.SecretFileArgs{
Identifier: pulumi.String("identifier"),
Name: pulumi.String("name"),
Description: pulumi.String("example"),
Tags: pulumi.StringArray{
pulumi.String("foo:bar"),
},
FilePath: pulumi.String("file_path"),
SecretManagerIdentifier: pulumi.String("gcpSecretManager"),
AdditionalMetadatas: platform.SecretFileAdditionalMetadataArray{
&platform.SecretFileAdditionalMetadataArgs{
Values: platform.SecretFileAdditionalMetadataValueArray{
&platform.SecretFileAdditionalMetadataValueArgs{
Regions: pulumi.String("us-east1"),
GcpProjectId: pulumi.String("my-gcp-project-id"),
},
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
return await Deployment.RunAsync(() =>
{
var example = new Harness.Platform.SecretFile("example", new()
{
Identifier = "identifier",
Name = "name",
Description = "test",
Tags = new[]
{
"foo:bar",
},
FilePath = "file_path",
SecretManagerIdentifier = "harnessSecretManager",
});
// With AWS Secret Manager KMS Key
var awsSecretManager = new Harness.Platform.SecretFile("aws_secret_manager", new()
{
Identifier = "identifier",
Name = "name",
Description = "example",
Tags = new[]
{
"foo:bar",
},
FilePath = "file_path",
SecretManagerIdentifier = "awsSecretManager",
AdditionalMetadatas = new[]
{
new Harness.Platform.Inputs.SecretFileAdditionalMetadataArgs
{
Values = new[]
{
new Harness.Platform.Inputs.SecretFileAdditionalMetadataValueArgs
{
KmsKeyId = "kmsKeyId",
},
},
},
},
});
// With GCP Secret Manager project ID and region
var gcpSecretManager = new Harness.Platform.SecretFile("gcp_secret_manager", new()
{
Identifier = "identifier",
Name = "name",
Description = "example",
Tags = new[]
{
"foo:bar",
},
FilePath = "file_path",
SecretManagerIdentifier = "gcpSecretManager",
AdditionalMetadatas = new[]
{
new Harness.Platform.Inputs.SecretFileAdditionalMetadataArgs
{
Values = new[]
{
new Harness.Platform.Inputs.SecretFileAdditionalMetadataValueArgs
{
Regions = "us-east1",
GcpProjectId = "my-gcp-project-id",
},
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.harness.platform.SecretFile;
import com.pulumi.harness.platform.SecretFileArgs;
import com.pulumi.harness.platform.inputs.SecretFileAdditionalMetadataArgs;
import java.util.List;
import java.util.ArrayList;
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 example = new SecretFile("example", SecretFileArgs.builder()
.identifier("identifier")
.name("name")
.description("test")
.tags("foo:bar")
.filePath("file_path")
.secretManagerIdentifier("harnessSecretManager")
.build());
// With AWS Secret Manager KMS Key
var awsSecretManager = new SecretFile("awsSecretManager", SecretFileArgs.builder()
.identifier("identifier")
.name("name")
.description("example")
.tags("foo:bar")
.filePath("file_path")
.secretManagerIdentifier("awsSecretManager")
.additionalMetadatas(SecretFileAdditionalMetadataArgs.builder()
.values(SecretFileAdditionalMetadataValueArgs.builder()
.kmsKeyId("kmsKeyId")
.build())
.build())
.build());
// With GCP Secret Manager project ID and region
var gcpSecretManager = new SecretFile("gcpSecretManager", SecretFileArgs.builder()
.identifier("identifier")
.name("name")
.description("example")
.tags("foo:bar")
.filePath("file_path")
.secretManagerIdentifier("gcpSecretManager")
.additionalMetadatas(SecretFileAdditionalMetadataArgs.builder()
.values(SecretFileAdditionalMetadataValueArgs.builder()
.regions("us-east1")
.gcpProjectId("my-gcp-project-id")
.build())
.build())
.build());
}
}
resources:
example:
type: harness:platform:SecretFile
properties:
identifier: identifier
name: name
description: test
tags:
- foo:bar
filePath: file_path
secretManagerIdentifier: harnessSecretManager
# With AWS Secret Manager KMS Key
awsSecretManager:
type: harness:platform:SecretFile
name: aws_secret_manager
properties:
identifier: identifier
name: name
description: example
tags:
- foo:bar
filePath: file_path
secretManagerIdentifier: awsSecretManager
additionalMetadatas:
- values:
- kmsKeyId: kmsKeyId
# With GCP Secret Manager project ID and region
gcpSecretManager:
type: harness:platform:SecretFile
name: gcp_secret_manager
properties:
identifier: identifier
name: name
description: example
tags:
- foo:bar
filePath: file_path
secretManagerIdentifier: gcpSecretManager
additionalMetadatas:
- values:
- regions: us-east1
gcpProjectId: my-gcp-project-id
Create SecretFile Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SecretFile(name: string, args: SecretFileArgs, opts?: CustomResourceOptions);@overload
def SecretFile(resource_name: str,
args: SecretFileArgs,
opts: Optional[ResourceOptions] = None)
@overload
def SecretFile(resource_name: str,
opts: Optional[ResourceOptions] = None,
file_path: Optional[str] = None,
identifier: Optional[str] = None,
secret_manager_identifier: Optional[str] = None,
additional_metadatas: Optional[Sequence[SecretFileAdditionalMetadataArgs]] = None,
description: Optional[str] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
tags: Optional[Sequence[str]] = None)func NewSecretFile(ctx *Context, name string, args SecretFileArgs, opts ...ResourceOption) (*SecretFile, error)public SecretFile(string name, SecretFileArgs args, CustomResourceOptions? opts = null)
public SecretFile(String name, SecretFileArgs args)
public SecretFile(String name, SecretFileArgs args, CustomResourceOptions options)
type: harness:platform:SecretFile
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SecretFileArgs
- 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 SecretFileArgs
- 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 SecretFileArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SecretFileArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SecretFileArgs
- 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 secretFileResource = new Harness.Platform.SecretFile("secretFileResource", new()
{
FilePath = "string",
Identifier = "string",
SecretManagerIdentifier = "string",
AdditionalMetadatas = new[]
{
new Harness.Platform.Inputs.SecretFileAdditionalMetadataArgs
{
Values = new[]
{
new Harness.Platform.Inputs.SecretFileAdditionalMetadataValueArgs
{
GcpProjectId = "string",
KmsKeyId = "string",
Regions = "string",
Version = "string",
},
},
},
},
Description = "string",
Name = "string",
OrgId = "string",
ProjectId = "string",
Tags = new[]
{
"string",
},
});
example, err := platform.NewSecretFile(ctx, "secretFileResource", &platform.SecretFileArgs{
FilePath: pulumi.String("string"),
Identifier: pulumi.String("string"),
SecretManagerIdentifier: pulumi.String("string"),
AdditionalMetadatas: platform.SecretFileAdditionalMetadataArray{
&platform.SecretFileAdditionalMetadataArgs{
Values: platform.SecretFileAdditionalMetadataValueArray{
&platform.SecretFileAdditionalMetadataValueArgs{
GcpProjectId: pulumi.String("string"),
KmsKeyId: pulumi.String("string"),
Regions: pulumi.String("string"),
Version: pulumi.String("string"),
},
},
},
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
OrgId: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Tags: pulumi.StringArray{
pulumi.String("string"),
},
})
var secretFileResource = new SecretFile("secretFileResource", SecretFileArgs.builder()
.filePath("string")
.identifier("string")
.secretManagerIdentifier("string")
.additionalMetadatas(SecretFileAdditionalMetadataArgs.builder()
.values(SecretFileAdditionalMetadataValueArgs.builder()
.gcpProjectId("string")
.kmsKeyId("string")
.regions("string")
.version("string")
.build())
.build())
.description("string")
.name("string")
.orgId("string")
.projectId("string")
.tags("string")
.build());
secret_file_resource = harness.platform.SecretFile("secretFileResource",
file_path="string",
identifier="string",
secret_manager_identifier="string",
additional_metadatas=[{
"values": [{
"gcp_project_id": "string",
"kms_key_id": "string",
"regions": "string",
"version": "string",
}],
}],
description="string",
name="string",
org_id="string",
project_id="string",
tags=["string"])
const secretFileResource = new harness.platform.SecretFile("secretFileResource", {
filePath: "string",
identifier: "string",
secretManagerIdentifier: "string",
additionalMetadatas: [{
values: [{
gcpProjectId: "string",
kmsKeyId: "string",
regions: "string",
version: "string",
}],
}],
description: "string",
name: "string",
orgId: "string",
projectId: "string",
tags: ["string"],
});
type: harness:platform:SecretFile
properties:
additionalMetadatas:
- values:
- gcpProjectId: string
kmsKeyId: string
regions: string
version: string
description: string
filePath: string
identifier: string
name: string
orgId: string
projectId: string
secretManagerIdentifier: string
tags:
- string
SecretFile 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 SecretFile resource accepts the following input properties:
- File
Path string - Path of the file containing secret value
- Identifier string
- Unique identifier of the resource.
- Secret
Manager stringIdentifier - Identifier of the Secret Manager used to manage the secret.
- Additional
Metadatas List<SecretFile Additional Metadata> - Additional Metadata for the Secret
- Description string
- Description of the resource.
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- List<string>
- Tags to associate with the resource.
- File
Path string - Path of the file containing secret value
- Identifier string
- Unique identifier of the resource.
- Secret
Manager stringIdentifier - Identifier of the Secret Manager used to manage the secret.
- Additional
Metadatas []SecretFile Additional Metadata Args - Additional Metadata for the Secret
- Description string
- Description of the resource.
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- []string
- Tags to associate with the resource.
- file
Path String - Path of the file containing secret value
- identifier String
- Unique identifier of the resource.
- secret
Manager StringIdentifier - Identifier of the Secret Manager used to manage the secret.
- additional
Metadatas List<SecretFile Additional Metadata> - Additional Metadata for the Secret
- description String
- Description of the resource.
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
- file
Path string - Path of the file containing secret value
- identifier string
- Unique identifier of the resource.
- secret
Manager stringIdentifier - Identifier of the Secret Manager used to manage the secret.
- additional
Metadatas SecretFile Additional Metadata[] - Additional Metadata for the Secret
- description string
- Description of the resource.
- name string
- Name of the resource.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- string[]
- Tags to associate with the resource.
- file_
path str - Path of the file containing secret value
- identifier str
- Unique identifier of the resource.
- secret_
manager_ stridentifier - Identifier of the Secret Manager used to manage the secret.
- additional_
metadatas Sequence[SecretFile Additional Metadata Args] - Additional Metadata for the Secret
- description str
- Description of the resource.
- name str
- Name of the resource.
- org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
- Sequence[str]
- Tags to associate with the resource.
- file
Path String - Path of the file containing secret value
- identifier String
- Unique identifier of the resource.
- secret
Manager StringIdentifier - Identifier of the Secret Manager used to manage the secret.
- additional
Metadatas List<Property Map> - Additional Metadata for the Secret
- description String
- Description of the resource.
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- List<String>
- Tags to associate with the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the SecretFile resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SecretFile Resource
Get an existing SecretFile 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?: SecretFileState, opts?: CustomResourceOptions): SecretFile@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
additional_metadatas: Optional[Sequence[SecretFileAdditionalMetadataArgs]] = None,
description: Optional[str] = None,
file_path: Optional[str] = None,
identifier: Optional[str] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
secret_manager_identifier: Optional[str] = None,
tags: Optional[Sequence[str]] = None) -> SecretFilefunc GetSecretFile(ctx *Context, name string, id IDInput, state *SecretFileState, opts ...ResourceOption) (*SecretFile, error)public static SecretFile Get(string name, Input<string> id, SecretFileState? state, CustomResourceOptions? opts = null)public static SecretFile get(String name, Output<String> id, SecretFileState state, CustomResourceOptions options)resources: _: type: harness:platform:SecretFile get: 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.
- Additional
Metadatas List<SecretFile Additional Metadata> - Additional Metadata for the Secret
- Description string
- Description of the resource.
- File
Path string - Path of the file containing secret value
- Identifier string
- Unique identifier of the resource.
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Secret
Manager stringIdentifier - Identifier of the Secret Manager used to manage the secret.
- List<string>
- Tags to associate with the resource.
- Additional
Metadatas []SecretFile Additional Metadata Args - Additional Metadata for the Secret
- Description string
- Description of the resource.
- File
Path string - Path of the file containing secret value
- Identifier string
- Unique identifier of the resource.
- Name string
- Name of the resource.
- Org
Id string - Unique identifier of the organization.
- Project
Id string - Unique identifier of the project.
- Secret
Manager stringIdentifier - Identifier of the Secret Manager used to manage the secret.
- []string
- Tags to associate with the resource.
- additional
Metadatas List<SecretFile Additional Metadata> - Additional Metadata for the Secret
- description String
- Description of the resource.
- file
Path String - Path of the file containing secret value
- identifier String
- Unique identifier of the resource.
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- secret
Manager StringIdentifier - Identifier of the Secret Manager used to manage the secret.
- List<String>
- Tags to associate with the resource.
- additional
Metadatas SecretFile Additional Metadata[] - Additional Metadata for the Secret
- description string
- Description of the resource.
- file
Path string - Path of the file containing secret value
- identifier string
- Unique identifier of the resource.
- name string
- Name of the resource.
- org
Id string - Unique identifier of the organization.
- project
Id string - Unique identifier of the project.
- secret
Manager stringIdentifier - Identifier of the Secret Manager used to manage the secret.
- string[]
- Tags to associate with the resource.
- additional_
metadatas Sequence[SecretFile Additional Metadata Args] - Additional Metadata for the Secret
- description str
- Description of the resource.
- file_
path str - Path of the file containing secret value
- identifier str
- Unique identifier of the resource.
- name str
- Name of the resource.
- org_
id str - Unique identifier of the organization.
- project_
id str - Unique identifier of the project.
- secret_
manager_ stridentifier - Identifier of the Secret Manager used to manage the secret.
- Sequence[str]
- Tags to associate with the resource.
- additional
Metadatas List<Property Map> - Additional Metadata for the Secret
- description String
- Description of the resource.
- file
Path String - Path of the file containing secret value
- identifier String
- Unique identifier of the resource.
- name String
- Name of the resource.
- org
Id String - Unique identifier of the organization.
- project
Id String - Unique identifier of the project.
- secret
Manager StringIdentifier - Identifier of the Secret Manager used to manage the secret.
- List<String>
- Tags to associate with the resource.
Supporting Types
SecretFileAdditionalMetadata, SecretFileAdditionalMetadataArgs
SecretFileAdditionalMetadataValue, SecretFileAdditionalMetadataValueArgs
- Gcp
Project stringId - GCP Project ID (for GCP Secret Manager)
- Kms
Key stringId - KMS Key ID (for AWS Secret Manager)
- Regions string
- GCP region for the secret (for GCP Secret Manager)
- Version string
- Version of the secret (for AWS/Azure Secret Manager)
- Gcp
Project stringId - GCP Project ID (for GCP Secret Manager)
- Kms
Key stringId - KMS Key ID (for AWS Secret Manager)
- Regions string
- GCP region for the secret (for GCP Secret Manager)
- Version string
- Version of the secret (for AWS/Azure Secret Manager)
- gcp
Project StringId - GCP Project ID (for GCP Secret Manager)
- kms
Key StringId - KMS Key ID (for AWS Secret Manager)
- regions String
- GCP region for the secret (for GCP Secret Manager)
- version String
- Version of the secret (for AWS/Azure Secret Manager)
- gcp
Project stringId - GCP Project ID (for GCP Secret Manager)
- kms
Key stringId - KMS Key ID (for AWS Secret Manager)
- regions string
- GCP region for the secret (for GCP Secret Manager)
- version string
- Version of the secret (for AWS/Azure Secret Manager)
- gcp_
project_ strid - GCP Project ID (for GCP Secret Manager)
- kms_
key_ strid - KMS Key ID (for AWS Secret Manager)
- regions str
- GCP region for the secret (for GCP Secret Manager)
- version str
- Version of the secret (for AWS/Azure Secret Manager)
- gcp
Project StringId - GCP Project ID (for GCP Secret Manager)
- kms
Key StringId - KMS Key ID (for AWS Secret Manager)
- regions String
- GCP region for the secret (for GCP Secret Manager)
- version String
- Version of the secret (for AWS/Azure Secret Manager)
Import
The pulumi import command can be used, for example:
Import account level secret file
$ pulumi import harness:platform/secretFile:SecretFile example <secret_file_id>
Import org level secret file
$ pulumi import harness:platform/secretFile:SecretFile example <ord_id>/<secret_file_id>
Import project level secret file
$ pulumi import harness:platform/secretFile:SecretFile example <org_id>/<project_id>/<secret_file_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harnessTerraform Provider.
