1. Packages
  2. Local Provider
  3. API Docs
  4. File
local 2.5.2 published on Thursday, Feb 6, 2025 by hashicorp

local.File

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as local from "@pulumi/local";

const foo = new local.File("foo", {
    content: "foo!",
    filename: `${path.module}/foo.bar`,
});
Copy
import pulumi
import pulumi_local as local

foo = local.File("foo",
    content="foo!",
    filename=f"{path['module']}/foo.bar")
Copy
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-terraform-provider/sdks/go/local/v2/local"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := local.NewFile(ctx, "foo", &local.FileArgs{
			Content:  pulumi.String("foo!"),
			Filename: pulumi.Sprintf("%v/foo.bar", path.Module),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Local = Pulumi.Local;

return await Deployment.RunAsync(() => 
{
    var foo = new Local.File("foo", new()
    {
        Content = "foo!",
        Filename = $"{path.Module}/foo.bar",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.local.File;
import com.pulumi.local.FileArgs;
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 foo = new File("foo", FileArgs.builder()
            .content("foo!")
            .filename(String.format("%s/foo.bar", path.module()))
            .build());

    }
}
Copy
resources:
  foo:
    type: local:File
    properties:
      content: foo!
      filename: ${path.module}/foo.bar
Copy

Create File Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new File(name: string, args: FileArgs, opts?: CustomResourceOptions);
@overload
def File(resource_name: str,
         args: FileArgs,
         opts: Optional[ResourceOptions] = None)

@overload
def File(resource_name: str,
         opts: Optional[ResourceOptions] = None,
         filename: Optional[str] = None,
         content: Optional[str] = None,
         content_base64: Optional[str] = None,
         directory_permission: Optional[str] = None,
         file_permission: Optional[str] = None,
         sensitive_content: Optional[str] = None,
         source: Optional[str] = None)
func NewFile(ctx *Context, name string, args FileArgs, opts ...ResourceOption) (*File, error)
public File(string name, FileArgs args, CustomResourceOptions? opts = null)
public File(String name, FileArgs args)
public File(String name, FileArgs args, CustomResourceOptions options)
type: local:File
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. FileArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. FileArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. FileArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. FileArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. FileArgs
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 fileResource = new Local.File("fileResource", new()
{
    Filename = "string",
    Content = "string",
    ContentBase64 = "string",
    DirectoryPermission = "string",
    FilePermission = "string",
    Source = "string",
});
Copy
example, err := local.NewFile(ctx, "fileResource", &local.FileArgs{
	Filename:            pulumi.String("string"),
	Content:             pulumi.String("string"),
	ContentBase64:       pulumi.String("string"),
	DirectoryPermission: pulumi.String("string"),
	FilePermission:      pulumi.String("string"),
	Source:              pulumi.String("string"),
})
Copy
var fileResource = new File("fileResource", FileArgs.builder()
    .filename("string")
    .content("string")
    .contentBase64("string")
    .directoryPermission("string")
    .filePermission("string")
    .source("string")
    .build());
Copy
file_resource = local.File("fileResource",
    filename="string",
    content="string",
    content_base64="string",
    directory_permission="string",
    file_permission="string",
    source="string")
Copy
const fileResource = new local.File("fileResource", {
    filename: "string",
    content: "string",
    contentBase64: "string",
    directoryPermission: "string",
    filePermission: "string",
    source: "string",
});
Copy
type: local:File
properties:
    content: string
    contentBase64: string
    directoryPermission: string
    filePermission: string
    filename: string
    source: string
Copy

File 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 File resource accepts the following input properties:

Filename This property is required. string
The path to the file that will be created. Missing parent directories will be created. If the file already exists, it will be overridden with the given content.
Content string
Content to store in the file, expected to be a UTF-8 encoded string. Conflicts with sensitive_content, content_base64 and source. Exactly one of these four arguments must be specified.
ContentBase64 string
Content to store in the file, expected to be binary encoded as base64 string. Conflicts with content, sensitive_content and source. Exactly one of these four arguments must be specified.
DirectoryPermission string
Permissions to set for directories created (before umask), expressed as string in numeric notation. Default value is "0777".
FilePermission string
Permissions to set for the output file (before umask), expressed as string in numeric notation. Default value is "0777".
SensitiveContent string
Sensitive content to store in the file, expected to be an UTF-8 encoded string. Will not be displayed in diffs. Conflicts with content, content_base64 and source. Exactly one of these four arguments must be specified. If in need to use sensitive content, please use the local.SensitiveFile resource instead.

Deprecated: Deprecated

Source string
Path to file to use as source for the one we are creating. Conflicts with content, sensitive_content and content_base64. Exactly one of these four arguments must be specified.
Filename This property is required. string
The path to the file that will be created. Missing parent directories will be created. If the file already exists, it will be overridden with the given content.
Content string
Content to store in the file, expected to be a UTF-8 encoded string. Conflicts with sensitive_content, content_base64 and source. Exactly one of these four arguments must be specified.
ContentBase64 string
Content to store in the file, expected to be binary encoded as base64 string. Conflicts with content, sensitive_content and source. Exactly one of these four arguments must be specified.
DirectoryPermission string
Permissions to set for directories created (before umask), expressed as string in numeric notation. Default value is "0777".
FilePermission string
Permissions to set for the output file (before umask), expressed as string in numeric notation. Default value is "0777".
SensitiveContent string
Sensitive content to store in the file, expected to be an UTF-8 encoded string. Will not be displayed in diffs. Conflicts with content, content_base64 and source. Exactly one of these four arguments must be specified. If in need to use sensitive content, please use the local.SensitiveFile resource instead.

Deprecated: Deprecated

Source string
Path to file to use as source for the one we are creating. Conflicts with content, sensitive_content and content_base64. Exactly one of these four arguments must be specified.
filename This property is required. String
The path to the file that will be created. Missing parent directories will be created. If the file already exists, it will be overridden with the given content.
content String
Content to store in the file, expected to be a UTF-8 encoded string. Conflicts with sensitive_content, content_base64 and source. Exactly one of these four arguments must be specified.
contentBase64 String
Content to store in the file, expected to be binary encoded as base64 string. Conflicts with content, sensitive_content and source. Exactly one of these four arguments must be specified.
directoryPermission String
Permissions to set for directories created (before umask), expressed as string in numeric notation. Default value is "0777".
filePermission String
Permissions to set for the output file (before umask), expressed as string in numeric notation. Default value is "0777".
sensitiveContent String
Sensitive content to store in the file, expected to be an UTF-8 encoded string. Will not be displayed in diffs. Conflicts with content, content_base64 and source. Exactly one of these four arguments must be specified. If in need to use sensitive content, please use the local.SensitiveFile resource instead.

Deprecated: Deprecated

source String
Path to file to use as source for the one we are creating. Conflicts with content, sensitive_content and content_base64. Exactly one of these four arguments must be specified.
filename This property is required. string
The path to the file that will be created. Missing parent directories will be created. If the file already exists, it will be overridden with the given content.
content string
Content to store in the file, expected to be a UTF-8 encoded string. Conflicts with sensitive_content, content_base64 and source. Exactly one of these four arguments must be specified.
contentBase64 string
Content to store in the file, expected to be binary encoded as base64 string. Conflicts with content, sensitive_content and source. Exactly one of these four arguments must be specified.
directoryPermission string
Permissions to set for directories created (before umask), expressed as string in numeric notation. Default value is "0777".
filePermission string
Permissions to set for the output file (before umask), expressed as string in numeric notation. Default value is "0777".
sensitiveContent string
Sensitive content to store in the file, expected to be an UTF-8 encoded string. Will not be displayed in diffs. Conflicts with content, content_base64 and source. Exactly one of these four arguments must be specified. If in need to use sensitive content, please use the local.SensitiveFile resource instead.

Deprecated: Deprecated

source string
Path to file to use as source for the one we are creating. Conflicts with content, sensitive_content and content_base64. Exactly one of these four arguments must be specified.
filename This property is required. str
The path to the file that will be created. Missing parent directories will be created. If the file already exists, it will be overridden with the given content.
content str
Content to store in the file, expected to be a UTF-8 encoded string. Conflicts with sensitive_content, content_base64 and source. Exactly one of these four arguments must be specified.
content_base64 str
Content to store in the file, expected to be binary encoded as base64 string. Conflicts with content, sensitive_content and source. Exactly one of these four arguments must be specified.
directory_permission str
Permissions to set for directories created (before umask), expressed as string in numeric notation. Default value is "0777".
file_permission str
Permissions to set for the output file (before umask), expressed as string in numeric notation. Default value is "0777".
sensitive_content str
Sensitive content to store in the file, expected to be an UTF-8 encoded string. Will not be displayed in diffs. Conflicts with content, content_base64 and source. Exactly one of these four arguments must be specified. If in need to use sensitive content, please use the local.SensitiveFile resource instead.

Deprecated: Deprecated

source str
Path to file to use as source for the one we are creating. Conflicts with content, sensitive_content and content_base64. Exactly one of these four arguments must be specified.
filename This property is required. String
The path to the file that will be created. Missing parent directories will be created. If the file already exists, it will be overridden with the given content.
content String
Content to store in the file, expected to be a UTF-8 encoded string. Conflicts with sensitive_content, content_base64 and source. Exactly one of these four arguments must be specified.
contentBase64 String
Content to store in the file, expected to be binary encoded as base64 string. Conflicts with content, sensitive_content and source. Exactly one of these four arguments must be specified.
directoryPermission String
Permissions to set for directories created (before umask), expressed as string in numeric notation. Default value is "0777".
filePermission String
Permissions to set for the output file (before umask), expressed as string in numeric notation. Default value is "0777".
sensitiveContent String
Sensitive content to store in the file, expected to be an UTF-8 encoded string. Will not be displayed in diffs. Conflicts with content, content_base64 and source. Exactly one of these four arguments must be specified. If in need to use sensitive content, please use the local.SensitiveFile resource instead.

Deprecated: Deprecated

source String
Path to file to use as source for the one we are creating. Conflicts with content, sensitive_content and content_base64. Exactly one of these four arguments must be specified.

Outputs

All input properties are implicitly available as output properties. Additionally, the File resource produces the following output properties:

ContentBase64sha256 string
Base64 encoded SHA256 checksum of file content.
ContentBase64sha512 string
Base64 encoded SHA512 checksum of file content.
ContentMd5 string
MD5 checksum of file content.
ContentSha1 string
SHA1 checksum of file content.
ContentSha256 string
SHA256 checksum of file content.
ContentSha512 string
SHA512 checksum of file content.
Id string
The provider-assigned unique ID for this managed resource.
ContentBase64sha256 string
Base64 encoded SHA256 checksum of file content.
ContentBase64sha512 string
Base64 encoded SHA512 checksum of file content.
ContentMd5 string
MD5 checksum of file content.
ContentSha1 string
SHA1 checksum of file content.
ContentSha256 string
SHA256 checksum of file content.
ContentSha512 string
SHA512 checksum of file content.
Id string
The provider-assigned unique ID for this managed resource.
contentBase64sha256 String
Base64 encoded SHA256 checksum of file content.
contentBase64sha512 String
Base64 encoded SHA512 checksum of file content.
contentMd5 String
MD5 checksum of file content.
contentSha1 String
SHA1 checksum of file content.
contentSha256 String
SHA256 checksum of file content.
contentSha512 String
SHA512 checksum of file content.
id String
The provider-assigned unique ID for this managed resource.
contentBase64sha256 string
Base64 encoded SHA256 checksum of file content.
contentBase64sha512 string
Base64 encoded SHA512 checksum of file content.
contentMd5 string
MD5 checksum of file content.
contentSha1 string
SHA1 checksum of file content.
contentSha256 string
SHA256 checksum of file content.
contentSha512 string
SHA512 checksum of file content.
id string
The provider-assigned unique ID for this managed resource.
content_base64sha256 str
Base64 encoded SHA256 checksum of file content.
content_base64sha512 str
Base64 encoded SHA512 checksum of file content.
content_md5 str
MD5 checksum of file content.
content_sha1 str
SHA1 checksum of file content.
content_sha256 str
SHA256 checksum of file content.
content_sha512 str
SHA512 checksum of file content.
id str
The provider-assigned unique ID for this managed resource.
contentBase64sha256 String
Base64 encoded SHA256 checksum of file content.
contentBase64sha512 String
Base64 encoded SHA512 checksum of file content.
contentMd5 String
MD5 checksum of file content.
contentSha1 String
SHA1 checksum of file content.
contentSha256 String
SHA256 checksum of file content.
contentSha512 String
SHA512 checksum of file content.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing File Resource

Get an existing File 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?: FileState, opts?: CustomResourceOptions): File
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        content: Optional[str] = None,
        content_base64: Optional[str] = None,
        content_base64sha256: Optional[str] = None,
        content_base64sha512: Optional[str] = None,
        content_md5: Optional[str] = None,
        content_sha1: Optional[str] = None,
        content_sha256: Optional[str] = None,
        content_sha512: Optional[str] = None,
        directory_permission: Optional[str] = None,
        file_permission: Optional[str] = None,
        filename: Optional[str] = None,
        sensitive_content: Optional[str] = None,
        source: Optional[str] = None) -> File
func GetFile(ctx *Context, name string, id IDInput, state *FileState, opts ...ResourceOption) (*File, error)
public static File Get(string name, Input<string> id, FileState? state, CustomResourceOptions? opts = null)
public static File get(String name, Output<String> id, FileState state, CustomResourceOptions options)
resources:  _:    type: local:File    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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.
The following state arguments are supported:
Content string
Content to store in the file, expected to be a UTF-8 encoded string. Conflicts with sensitive_content, content_base64 and source. Exactly one of these four arguments must be specified.
ContentBase64 string
Content to store in the file, expected to be binary encoded as base64 string. Conflicts with content, sensitive_content and source. Exactly one of these four arguments must be specified.
ContentBase64sha256 string
Base64 encoded SHA256 checksum of file content.
ContentBase64sha512 string
Base64 encoded SHA512 checksum of file content.
ContentMd5 string
MD5 checksum of file content.
ContentSha1 string
SHA1 checksum of file content.
ContentSha256 string
SHA256 checksum of file content.
ContentSha512 string
SHA512 checksum of file content.
DirectoryPermission string
Permissions to set for directories created (before umask), expressed as string in numeric notation. Default value is "0777".
FilePermission string
Permissions to set for the output file (before umask), expressed as string in numeric notation. Default value is "0777".
Filename string
The path to the file that will be created. Missing parent directories will be created. If the file already exists, it will be overridden with the given content.
SensitiveContent string
Sensitive content to store in the file, expected to be an UTF-8 encoded string. Will not be displayed in diffs. Conflicts with content, content_base64 and source. Exactly one of these four arguments must be specified. If in need to use sensitive content, please use the local.SensitiveFile resource instead.

Deprecated: Deprecated

Source string
Path to file to use as source for the one we are creating. Conflicts with content, sensitive_content and content_base64. Exactly one of these four arguments must be specified.
Content string
Content to store in the file, expected to be a UTF-8 encoded string. Conflicts with sensitive_content, content_base64 and source. Exactly one of these four arguments must be specified.
ContentBase64 string
Content to store in the file, expected to be binary encoded as base64 string. Conflicts with content, sensitive_content and source. Exactly one of these four arguments must be specified.
ContentBase64sha256 string
Base64 encoded SHA256 checksum of file content.
ContentBase64sha512 string
Base64 encoded SHA512 checksum of file content.
ContentMd5 string
MD5 checksum of file content.
ContentSha1 string
SHA1 checksum of file content.
ContentSha256 string
SHA256 checksum of file content.
ContentSha512 string
SHA512 checksum of file content.
DirectoryPermission string
Permissions to set for directories created (before umask), expressed as string in numeric notation. Default value is "0777".
FilePermission string
Permissions to set for the output file (before umask), expressed as string in numeric notation. Default value is "0777".
Filename string
The path to the file that will be created. Missing parent directories will be created. If the file already exists, it will be overridden with the given content.
SensitiveContent string
Sensitive content to store in the file, expected to be an UTF-8 encoded string. Will not be displayed in diffs. Conflicts with content, content_base64 and source. Exactly one of these four arguments must be specified. If in need to use sensitive content, please use the local.SensitiveFile resource instead.

Deprecated: Deprecated

Source string
Path to file to use as source for the one we are creating. Conflicts with content, sensitive_content and content_base64. Exactly one of these four arguments must be specified.
content String
Content to store in the file, expected to be a UTF-8 encoded string. Conflicts with sensitive_content, content_base64 and source. Exactly one of these four arguments must be specified.
contentBase64 String
Content to store in the file, expected to be binary encoded as base64 string. Conflicts with content, sensitive_content and source. Exactly one of these four arguments must be specified.
contentBase64sha256 String
Base64 encoded SHA256 checksum of file content.
contentBase64sha512 String
Base64 encoded SHA512 checksum of file content.
contentMd5 String
MD5 checksum of file content.
contentSha1 String
SHA1 checksum of file content.
contentSha256 String
SHA256 checksum of file content.
contentSha512 String
SHA512 checksum of file content.
directoryPermission String
Permissions to set for directories created (before umask), expressed as string in numeric notation. Default value is "0777".
filePermission String
Permissions to set for the output file (before umask), expressed as string in numeric notation. Default value is "0777".
filename String
The path to the file that will be created. Missing parent directories will be created. If the file already exists, it will be overridden with the given content.
sensitiveContent String
Sensitive content to store in the file, expected to be an UTF-8 encoded string. Will not be displayed in diffs. Conflicts with content, content_base64 and source. Exactly one of these four arguments must be specified. If in need to use sensitive content, please use the local.SensitiveFile resource instead.

Deprecated: Deprecated

source String
Path to file to use as source for the one we are creating. Conflicts with content, sensitive_content and content_base64. Exactly one of these four arguments must be specified.
content string
Content to store in the file, expected to be a UTF-8 encoded string. Conflicts with sensitive_content, content_base64 and source. Exactly one of these four arguments must be specified.
contentBase64 string
Content to store in the file, expected to be binary encoded as base64 string. Conflicts with content, sensitive_content and source. Exactly one of these four arguments must be specified.
contentBase64sha256 string
Base64 encoded SHA256 checksum of file content.
contentBase64sha512 string
Base64 encoded SHA512 checksum of file content.
contentMd5 string
MD5 checksum of file content.
contentSha1 string
SHA1 checksum of file content.
contentSha256 string
SHA256 checksum of file content.
contentSha512 string
SHA512 checksum of file content.
directoryPermission string
Permissions to set for directories created (before umask), expressed as string in numeric notation. Default value is "0777".
filePermission string
Permissions to set for the output file (before umask), expressed as string in numeric notation. Default value is "0777".
filename string
The path to the file that will be created. Missing parent directories will be created. If the file already exists, it will be overridden with the given content.
sensitiveContent string
Sensitive content to store in the file, expected to be an UTF-8 encoded string. Will not be displayed in diffs. Conflicts with content, content_base64 and source. Exactly one of these four arguments must be specified. If in need to use sensitive content, please use the local.SensitiveFile resource instead.

Deprecated: Deprecated

source string
Path to file to use as source for the one we are creating. Conflicts with content, sensitive_content and content_base64. Exactly one of these four arguments must be specified.
content str
Content to store in the file, expected to be a UTF-8 encoded string. Conflicts with sensitive_content, content_base64 and source. Exactly one of these four arguments must be specified.
content_base64 str
Content to store in the file, expected to be binary encoded as base64 string. Conflicts with content, sensitive_content and source. Exactly one of these four arguments must be specified.
content_base64sha256 str
Base64 encoded SHA256 checksum of file content.
content_base64sha512 str
Base64 encoded SHA512 checksum of file content.
content_md5 str
MD5 checksum of file content.
content_sha1 str
SHA1 checksum of file content.
content_sha256 str
SHA256 checksum of file content.
content_sha512 str
SHA512 checksum of file content.
directory_permission str
Permissions to set for directories created (before umask), expressed as string in numeric notation. Default value is "0777".
file_permission str
Permissions to set for the output file (before umask), expressed as string in numeric notation. Default value is "0777".
filename str
The path to the file that will be created. Missing parent directories will be created. If the file already exists, it will be overridden with the given content.
sensitive_content str
Sensitive content to store in the file, expected to be an UTF-8 encoded string. Will not be displayed in diffs. Conflicts with content, content_base64 and source. Exactly one of these four arguments must be specified. If in need to use sensitive content, please use the local.SensitiveFile resource instead.

Deprecated: Deprecated

source str
Path to file to use as source for the one we are creating. Conflicts with content, sensitive_content and content_base64. Exactly one of these four arguments must be specified.
content String
Content to store in the file, expected to be a UTF-8 encoded string. Conflicts with sensitive_content, content_base64 and source. Exactly one of these four arguments must be specified.
contentBase64 String
Content to store in the file, expected to be binary encoded as base64 string. Conflicts with content, sensitive_content and source. Exactly one of these four arguments must be specified.
contentBase64sha256 String
Base64 encoded SHA256 checksum of file content.
contentBase64sha512 String
Base64 encoded SHA512 checksum of file content.
contentMd5 String
MD5 checksum of file content.
contentSha1 String
SHA1 checksum of file content.
contentSha256 String
SHA256 checksum of file content.
contentSha512 String
SHA512 checksum of file content.
directoryPermission String
Permissions to set for directories created (before umask), expressed as string in numeric notation. Default value is "0777".
filePermission String
Permissions to set for the output file (before umask), expressed as string in numeric notation. Default value is "0777".
filename String
The path to the file that will be created. Missing parent directories will be created. If the file already exists, it will be overridden with the given content.
sensitiveContent String
Sensitive content to store in the file, expected to be an UTF-8 encoded string. Will not be displayed in diffs. Conflicts with content, content_base64 and source. Exactly one of these four arguments must be specified. If in need to use sensitive content, please use the local.SensitiveFile resource instead.

Deprecated: Deprecated

source String
Path to file to use as source for the one we are creating. Conflicts with content, sensitive_content and content_base64. Exactly one of these four arguments must be specified.

Package Details

Repository
local hashicorp/terraform-provider-local
License
Notes
This Pulumi package is based on the local Terraform Provider.