published on Thursday, Apr 16, 2026 by Pulumi
published on Thursday, Apr 16, 2026 by Pulumi
Manages an S3 Files Mount Target.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.s3.FilesMountTarget("example", {
fileSystemId: exampleAwsS3filesFileSystem.id,
subnetId: exampleAwsSubnet.id,
});
import pulumi
import pulumi_aws as aws
example = aws.s3.FilesMountTarget("example",
file_system_id=example_aws_s3files_file_system["id"],
subnet_id=example_aws_subnet["id"])
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v7/go/aws/s3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := s3.NewFilesMountTarget(ctx, "example", &s3.FilesMountTargetArgs{
FileSystemId: pulumi.Any(exampleAwsS3filesFileSystem.Id),
SubnetId: pulumi.Any(exampleAwsSubnet.Id),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.S3.FilesMountTarget("example", new()
{
FileSystemId = exampleAwsS3filesFileSystem.Id,
SubnetId = exampleAwsSubnet.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.s3.FilesMountTarget;
import com.pulumi.aws.s3.FilesMountTargetArgs;
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 FilesMountTarget("example", FilesMountTargetArgs.builder()
.fileSystemId(exampleAwsS3filesFileSystem.id())
.subnetId(exampleAwsSubnet.id())
.build());
}
}
resources:
example:
type: aws:s3:FilesMountTarget
properties:
fileSystemId: ${exampleAwsS3filesFileSystem.id}
subnetId: ${exampleAwsSubnet.id}
Create FilesMountTarget Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FilesMountTarget(name: string, args: FilesMountTargetArgs, opts?: CustomResourceOptions);@overload
def FilesMountTarget(resource_name: str,
args: FilesMountTargetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def FilesMountTarget(resource_name: str,
opts: Optional[ResourceOptions] = None,
file_system_id: Optional[str] = None,
subnet_id: Optional[str] = None,
ip_address_type: Optional[str] = None,
ipv4_address: Optional[str] = None,
ipv6_address: Optional[str] = None,
region: Optional[str] = None,
security_groups: Optional[Sequence[str]] = None,
timeouts: Optional[FilesMountTargetTimeoutsArgs] = None)func NewFilesMountTarget(ctx *Context, name string, args FilesMountTargetArgs, opts ...ResourceOption) (*FilesMountTarget, error)public FilesMountTarget(string name, FilesMountTargetArgs args, CustomResourceOptions? opts = null)
public FilesMountTarget(String name, FilesMountTargetArgs args)
public FilesMountTarget(String name, FilesMountTargetArgs args, CustomResourceOptions options)
type: aws:s3:FilesMountTarget
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 FilesMountTargetArgs
- 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 FilesMountTargetArgs
- 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 FilesMountTargetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FilesMountTargetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FilesMountTargetArgs
- 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 filesMountTargetResource = new Aws.S3.FilesMountTarget("filesMountTargetResource", new()
{
FileSystemId = "string",
SubnetId = "string",
IpAddressType = "string",
Ipv4Address = "string",
Ipv6Address = "string",
Region = "string",
SecurityGroups = new[]
{
"string",
},
Timeouts = new Aws.S3.Inputs.FilesMountTargetTimeoutsArgs
{
Create = "string",
Delete = "string",
Update = "string",
},
});
example, err := s3.NewFilesMountTarget(ctx, "filesMountTargetResource", &s3.FilesMountTargetArgs{
FileSystemId: pulumi.String("string"),
SubnetId: pulumi.String("string"),
IpAddressType: pulumi.String("string"),
Ipv4Address: pulumi.String("string"),
Ipv6Address: pulumi.String("string"),
Region: pulumi.String("string"),
SecurityGroups: pulumi.StringArray{
pulumi.String("string"),
},
Timeouts: &s3.FilesMountTargetTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Update: pulumi.String("string"),
},
})
var filesMountTargetResource = new FilesMountTarget("filesMountTargetResource", FilesMountTargetArgs.builder()
.fileSystemId("string")
.subnetId("string")
.ipAddressType("string")
.ipv4Address("string")
.ipv6Address("string")
.region("string")
.securityGroups("string")
.timeouts(FilesMountTargetTimeoutsArgs.builder()
.create("string")
.delete("string")
.update("string")
.build())
.build());
files_mount_target_resource = aws.s3.FilesMountTarget("filesMountTargetResource",
file_system_id="string",
subnet_id="string",
ip_address_type="string",
ipv4_address="string",
ipv6_address="string",
region="string",
security_groups=["string"],
timeouts={
"create": "string",
"delete": "string",
"update": "string",
})
const filesMountTargetResource = new aws.s3.FilesMountTarget("filesMountTargetResource", {
fileSystemId: "string",
subnetId: "string",
ipAddressType: "string",
ipv4Address: "string",
ipv6Address: "string",
region: "string",
securityGroups: ["string"],
timeouts: {
create: "string",
"delete": "string",
update: "string",
},
});
type: aws:s3:FilesMountTarget
properties:
fileSystemId: string
ipAddressType: string
ipv4Address: string
ipv6Address: string
region: string
securityGroups:
- string
subnetId: string
timeouts:
create: string
delete: string
update: string
FilesMountTarget 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 FilesMountTarget resource accepts the following input properties:
- File
System stringId - File system ID. Changing this value forces replacement.
- Subnet
Id string Subnet ID. Changing this value forces replacement.
The following arguments are optional:
- Ip
Address stringType - IP address type.
- Ipv4Address string
- IPv4 address.
- Ipv6Address string
- IPv6 address.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Security
Groups List<string> - Security group IDs.
- Timeouts
Files
Mount Target Timeouts
- File
System stringId - File system ID. Changing this value forces replacement.
- Subnet
Id string Subnet ID. Changing this value forces replacement.
The following arguments are optional:
- Ip
Address stringType - IP address type.
- Ipv4Address string
- IPv4 address.
- Ipv6Address string
- IPv6 address.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Security
Groups []string - Security group IDs.
- Timeouts
Files
Mount Target Timeouts Args
- file
System StringId - File system ID. Changing this value forces replacement.
- subnet
Id String Subnet ID. Changing this value forces replacement.
The following arguments are optional:
- ip
Address StringType - IP address type.
- ipv4Address String
- IPv4 address.
- ipv6Address String
- IPv6 address.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- security
Groups List<String> - Security group IDs.
- timeouts
Files
Mount Target Timeouts
- file
System stringId - File system ID. Changing this value forces replacement.
- subnet
Id string Subnet ID. Changing this value forces replacement.
The following arguments are optional:
- ip
Address stringType - IP address type.
- ipv4Address string
- IPv4 address.
- ipv6Address string
- IPv6 address.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- security
Groups string[] - Security group IDs.
- timeouts
Files
Mount Target Timeouts
- file_
system_ strid - File system ID. Changing this value forces replacement.
- subnet_
id str Subnet ID. Changing this value forces replacement.
The following arguments are optional:
- ip_
address_ strtype - IP address type.
- ipv4_
address str - IPv4 address.
- ipv6_
address str - IPv6 address.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- security_
groups Sequence[str] - Security group IDs.
- timeouts
Files
Mount Target Timeouts Args
- file
System StringId - File system ID. Changing this value forces replacement.
- subnet
Id String Subnet ID. Changing this value forces replacement.
The following arguments are optional:
- ip
Address StringType - IP address type.
- ipv4Address String
- IPv4 address.
- ipv6Address String
- IPv6 address.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- security
Groups List<String> - Security group IDs.
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the FilesMountTarget resource produces the following output properties:
- Availability
Zone stringId - Availability Zone ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Interface stringId - Network interface ID.
- Owner
Id string - AWS account ID of the owner.
- Status string
- Mount target status.
- Status
Message string - Status message.
- Vpc
Id string - VPC ID.
- Availability
Zone stringId - Availability Zone ID.
- Id string
- The provider-assigned unique ID for this managed resource.
- Network
Interface stringId - Network interface ID.
- Owner
Id string - AWS account ID of the owner.
- Status string
- Mount target status.
- Status
Message string - Status message.
- Vpc
Id string - VPC ID.
- availability
Zone StringId - Availability Zone ID.
- id String
- The provider-assigned unique ID for this managed resource.
- network
Interface StringId - Network interface ID.
- owner
Id String - AWS account ID of the owner.
- status String
- Mount target status.
- status
Message String - Status message.
- vpc
Id String - VPC ID.
- availability
Zone stringId - Availability Zone ID.
- id string
- The provider-assigned unique ID for this managed resource.
- network
Interface stringId - Network interface ID.
- owner
Id string - AWS account ID of the owner.
- status string
- Mount target status.
- status
Message string - Status message.
- vpc
Id string - VPC ID.
- availability_
zone_ strid - Availability Zone ID.
- id str
- The provider-assigned unique ID for this managed resource.
- network_
interface_ strid - Network interface ID.
- owner_
id str - AWS account ID of the owner.
- status str
- Mount target status.
- status_
message str - Status message.
- vpc_
id str - VPC ID.
- availability
Zone StringId - Availability Zone ID.
- id String
- The provider-assigned unique ID for this managed resource.
- network
Interface StringId - Network interface ID.
- owner
Id String - AWS account ID of the owner.
- status String
- Mount target status.
- status
Message String - Status message.
- vpc
Id String - VPC ID.
Look up Existing FilesMountTarget Resource
Get an existing FilesMountTarget 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?: FilesMountTargetState, opts?: CustomResourceOptions): FilesMountTarget@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
availability_zone_id: Optional[str] = None,
file_system_id: Optional[str] = None,
ip_address_type: Optional[str] = None,
ipv4_address: Optional[str] = None,
ipv6_address: Optional[str] = None,
network_interface_id: Optional[str] = None,
owner_id: Optional[str] = None,
region: Optional[str] = None,
security_groups: Optional[Sequence[str]] = None,
status: Optional[str] = None,
status_message: Optional[str] = None,
subnet_id: Optional[str] = None,
timeouts: Optional[FilesMountTargetTimeoutsArgs] = None,
vpc_id: Optional[str] = None) -> FilesMountTargetfunc GetFilesMountTarget(ctx *Context, name string, id IDInput, state *FilesMountTargetState, opts ...ResourceOption) (*FilesMountTarget, error)public static FilesMountTarget Get(string name, Input<string> id, FilesMountTargetState? state, CustomResourceOptions? opts = null)public static FilesMountTarget get(String name, Output<String> id, FilesMountTargetState state, CustomResourceOptions options)resources: _: type: aws:s3:FilesMountTarget 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.
- Availability
Zone stringId - Availability Zone ID.
- File
System stringId - File system ID. Changing this value forces replacement.
- Ip
Address stringType - IP address type.
- Ipv4Address string
- IPv4 address.
- Ipv6Address string
- IPv6 address.
- Network
Interface stringId - Network interface ID.
- Owner
Id string - AWS account ID of the owner.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Security
Groups List<string> - Security group IDs.
- Status string
- Mount target status.
- Status
Message string - Status message.
- Subnet
Id string Subnet ID. Changing this value forces replacement.
The following arguments are optional:
- Timeouts
Files
Mount Target Timeouts - Vpc
Id string - VPC ID.
- Availability
Zone stringId - Availability Zone ID.
- File
System stringId - File system ID. Changing this value forces replacement.
- Ip
Address stringType - IP address type.
- Ipv4Address string
- IPv4 address.
- Ipv6Address string
- IPv6 address.
- Network
Interface stringId - Network interface ID.
- Owner
Id string - AWS account ID of the owner.
- Region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- Security
Groups []string - Security group IDs.
- Status string
- Mount target status.
- Status
Message string - Status message.
- Subnet
Id string Subnet ID. Changing this value forces replacement.
The following arguments are optional:
- Timeouts
Files
Mount Target Timeouts Args - Vpc
Id string - VPC ID.
- availability
Zone StringId - Availability Zone ID.
- file
System StringId - File system ID. Changing this value forces replacement.
- ip
Address StringType - IP address type.
- ipv4Address String
- IPv4 address.
- ipv6Address String
- IPv6 address.
- network
Interface StringId - Network interface ID.
- owner
Id String - AWS account ID of the owner.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- security
Groups List<String> - Security group IDs.
- status String
- Mount target status.
- status
Message String - Status message.
- subnet
Id String Subnet ID. Changing this value forces replacement.
The following arguments are optional:
- timeouts
Files
Mount Target Timeouts - vpc
Id String - VPC ID.
- availability
Zone stringId - Availability Zone ID.
- file
System stringId - File system ID. Changing this value forces replacement.
- ip
Address stringType - IP address type.
- ipv4Address string
- IPv4 address.
- ipv6Address string
- IPv6 address.
- network
Interface stringId - Network interface ID.
- owner
Id string - AWS account ID of the owner.
- region string
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- security
Groups string[] - Security group IDs.
- status string
- Mount target status.
- status
Message string - Status message.
- subnet
Id string Subnet ID. Changing this value forces replacement.
The following arguments are optional:
- timeouts
Files
Mount Target Timeouts - vpc
Id string - VPC ID.
- availability_
zone_ strid - Availability Zone ID.
- file_
system_ strid - File system ID. Changing this value forces replacement.
- ip_
address_ strtype - IP address type.
- ipv4_
address str - IPv4 address.
- ipv6_
address str - IPv6 address.
- network_
interface_ strid - Network interface ID.
- owner_
id str - AWS account ID of the owner.
- region str
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- security_
groups Sequence[str] - Security group IDs.
- status str
- Mount target status.
- status_
message str - Status message.
- subnet_
id str Subnet ID. Changing this value forces replacement.
The following arguments are optional:
- timeouts
Files
Mount Target Timeouts Args - vpc_
id str - VPC ID.
- availability
Zone StringId - Availability Zone ID.
- file
System StringId - File system ID. Changing this value forces replacement.
- ip
Address StringType - IP address type.
- ipv4Address String
- IPv4 address.
- ipv6Address String
- IPv6 address.
- network
Interface StringId - Network interface ID.
- owner
Id String - AWS account ID of the owner.
- region String
- Region where this resource will be managed. Defaults to the Region set in the provider configuration.
- security
Groups List<String> - Security group IDs.
- status String
- Mount target status.
- status
Message String - Status message.
- subnet
Id String Subnet ID. Changing this value forces replacement.
The following arguments are optional:
- timeouts Property Map
- vpc
Id String - VPC ID.
Supporting Types
FilesMountTargetTimeouts, FilesMountTargetTimeoutsArgs
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- Delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- Update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update string
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update str
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- create String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
- delete String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
- update String
- A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
Import
Identity Schema
Required
id- Identifier of the mount target.
Optional
accountId(String) AWS Account where this resource is managed.region(String) Region where this resource is managed.
Using pulumi import, import S3 Files Mount Target using id. For example:
$ pulumi import aws:s3/filesMountTarget:FilesMountTarget example fsmt-1234567890abcdef0
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- AWS Classic pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.
published on Thursday, Apr 16, 2026 by Pulumi
