Namespace Pulumi.Aws.Efs
Classes
AccessPoint
Provides an Elastic File System (EFS) access point.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var test = new Aws.Efs.AccessPoint("test", new Aws.Efs.AccessPointArgs
{
FileSystemId = aws_efs_file_system.Foo.Id,
});
}
}
AccessPointArgs
AccessPointState
FileSystem
Provides an Elastic File System (EFS) File System resource.
Example Usage
EFS File System w/ tags
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var foo = new Aws.Efs.FileSystem("foo", new Aws.Efs.FileSystemArgs
{
Tags =
{
{ "Name", "MyProduct" },
},
});
}
}
Using lifecycle policy
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var fooWithLifecylePolicy = new Aws.Efs.FileSystem("fooWithLifecylePolicy", new Aws.Efs.FileSystemArgs
{
LifecyclePolicy = new Aws.Efs.Inputs.FileSystemLifecyclePolicyArgs
{
TransitionToIa = "AFTER_30_DAYS",
},
});
}
}
FileSystemArgs
FileSystemPolicy
Provides an Elastic File System (EFS) File System Policy resource.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var fs = new Aws.Efs.FileSystem("fs", new Aws.Efs.FileSystemArgs
{
});
var policy = new Aws.Efs.FileSystemPolicy("policy", new Aws.Efs.FileSystemPolicyArgs
{
FileSystemId = fs.Id,
Policy = @$"{{
""Version"": ""2012-10-17"",
""Id"": ""ExamplePolicy01"",
""Statement"": [
{{
""Sid"": ""ExampleSatement01"",
""Effect"": ""Allow"",
""Principal"": {{
""AWS"": ""*""
}},
""Resource"": ""{aws_efs_file_system.Test.Arn}"",
""Action"": [
""elasticfilesystem:ClientMount"",
""elasticfilesystem:ClientWrite""
],
""Condition"": {{
""Bool"": {{
""aws:SecureTransport"": ""true""
}}
}}
}}
]
}}
",
});
}
}
FileSystemPolicyArgs
FileSystemPolicyState
FileSystemState
GetAccessPoint
GetAccessPointArgs
GetAccessPointResult
GetFileSystem
GetFileSystemArgs
GetFileSystemResult
GetMountTarget
GetMountTargetArgs
GetMountTargetResult
MountTarget
Provides an Elastic File System (EFS) mount target.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var foo = new Aws.Ec2.Vpc("foo", new Aws.Ec2.VpcArgs
{
CidrBlock = "10.0.0.0/16",
});
var alphaSubnet = new Aws.Ec2.Subnet("alphaSubnet", new Aws.Ec2.SubnetArgs
{
AvailabilityZone = "us-west-2a",
CidrBlock = "10.0.1.0/24",
VpcId = foo.Id,
});
var alphaMountTarget = new Aws.Efs.MountTarget("alphaMountTarget", new Aws.Efs.MountTargetArgs
{
FileSystemId = aws_efs_file_system.Foo.Id,
SubnetId = alphaSubnet.Id,
});
}
}