Efs Location Args
Manages an AWS DataSync EFS Location.
NOTE: The EFS File System must have a mounted EFS Mount Target before creating this resource.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.datasync.EfsLocation;
import com.pulumi.aws.datasync.EfsLocationArgs;
import com.pulumi.aws.datasync.inputs.EfsLocationEc2ConfigArgs;
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 EfsLocation("example", EfsLocationArgs.builder()
.efsFileSystemArn(aws_efs_mount_target.example().file_system_arn())
.ec2Config(EfsLocationEc2ConfigArgs.builder()
.securityGroupArns(aws_security_group.example().arn())
.subnetArn(aws_subnet.example().arn())
.build())
.build());
}
}
Import
aws_datasync_location_efs
can be imported by using the DataSync Task Amazon Resource Name (ARN), e.g.,
$ pulumi import aws:datasync/efsLocation:EfsLocation example arn:aws:datasync:us-east-1:123456789012:location/loc-12345678901234567
Constructors
Properties
Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the Amazon EFS file system.
Configuration block containing EC2 configurations for connecting to the EFS File System.
Amazon Resource Name (ARN) of EFS File System.
Specifies an Identity and Access Management (IAM) role that DataSync assumes when mounting the Amazon EFS file system.
Specifies whether you want DataSync to use TLS encryption when transferring data to or from your Amazon EFS file system. Valid values are NONE
and TLS1_2
.
Subdirectory to perform actions as source or destination. Default /
.