Namespace Pulumi.Aws.StorageGateway
Classes
Cache
Manages an AWS Storage Gateway cache.
NOTE: The Storage Gateway API provides no method to remove a cache disk. Destroying this resource does not perform any Storage Gateway actions.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.StorageGateway.Cache("example", new Aws.StorageGateway.CacheArgs
{
DiskId = data.Aws_storagegateway_local_disk.Example.Id,
GatewayArn = aws_storagegateway_gateway.Example.Arn,
});
}
}
CacheArgs
CachesIscsiVolume
Manages an AWS Storage Gateway cached iSCSI volume.
NOTE: The gateway must have cache added (e.g. via the
aws.storagegateway.Cacheresource) before creating volumes otherwise the Storage Gateway API will return an error.
NOTE: The gateway must have an upload buffer added (e.g. via the
aws.storagegateway.UploadBufferresource) before the volume is operational to clients, however the Storage Gateway API will allow volume creation without error in that case and return volume status asUPLOAD BUFFER NOT CONFIGURED.
Example Usage
Create Empty Cached iSCSI Volume
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.StorageGateway.CachesIscsiVolume("example", new Aws.StorageGateway.CachesIscsiVolumeArgs
{
GatewayArn = aws_storagegateway_cache.Example.Gateway_arn,
NetworkInterfaceId = aws_instance.Example.Private_ip,
TargetName = "example",
VolumeSizeInBytes = 5368709120,
});
// 5 GB
}
}
Create Cached iSCSI Volume From Snapshot
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.StorageGateway.CachesIscsiVolume("example", new Aws.StorageGateway.CachesIscsiVolumeArgs
{
GatewayArn = aws_storagegateway_cache.Example.Gateway_arn,
NetworkInterfaceId = aws_instance.Example.Private_ip,
SnapshotId = aws_ebs_snapshot.Example.Id,
TargetName = "example",
VolumeSizeInBytes = aws_ebs_snapshot.Example.Volume_size * 1024 * 1024 * 1024,
});
}
}
Create Cached iSCSI Volume From Source Volume
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.StorageGateway.CachesIscsiVolume("example", new Aws.StorageGateway.CachesIscsiVolumeArgs
{
GatewayArn = aws_storagegateway_cache.Example.Gateway_arn,
NetworkInterfaceId = aws_instance.Example.Private_ip,
SourceVolumeArn = aws_storagegateway_cached_iscsi_volume.Existing.Arn,
TargetName = "example",
VolumeSizeInBytes = aws_storagegateway_cached_iscsi_volume.Existing.Volume_size_in_bytes,
});
}
}
CachesIscsiVolumeArgs
CachesIscsiVolumeState
CacheState
Gateway
Manages an AWS Storage Gateway file, tape, or volume gateway in the provider region.
NOTE: The Storage Gateway API requires the gateway to be connected to properly return information after activation. If you are receiving
The specified gateway is not connectederrors during resource creation (gateway activation), ensure your gateway instance meets the Storage Gateway requirements.
Example Usage
File Gateway
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.StorageGateway.Gateway("example", new Aws.StorageGateway.GatewayArgs
{
GatewayIpAddress = "1.2.3.4",
GatewayName = "example",
GatewayTimezone = "GMT",
GatewayType = "FILE_S3",
});
}
}
Volume Gateway (Cached)
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.StorageGateway.Gateway("example", new Aws.StorageGateway.GatewayArgs
{
GatewayIpAddress = "1.2.3.4",
GatewayName = "example",
GatewayTimezone = "GMT",
GatewayType = "CACHED",
});
}
}
Volume Gateway (Stored)
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.StorageGateway.Gateway("example", new Aws.StorageGateway.GatewayArgs
{
GatewayIpAddress = "1.2.3.4",
GatewayName = "example",
GatewayTimezone = "GMT",
GatewayType = "STORED",
});
}
}
GatewayArgs
GatewayState
GetLocalDisk
GetLocalDiskArgs
GetLocalDiskResult
NfsFileShare
Manages an AWS Storage Gateway NFS File Share.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.StorageGateway.NfsFileShare("example", new Aws.StorageGateway.NfsFileShareArgs
{
ClientLists =
{
"0.0.0.0/0",
},
GatewayArn = aws_storagegateway_gateway.Example.Arn,
LocationArn = aws_s3_bucket.Example.Arn,
RoleArn = aws_iam_role.Example.Arn,
});
}
}
NfsFileShareArgs
NfsFileShareState
SmbFileShare
Manages an AWS Storage Gateway SMB File Share.
Example Usage
Active Directory Authentication
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.StorageGateway.SmbFileShare("example", new Aws.StorageGateway.SmbFileShareArgs
{
Authentication = "ActiveDirectory",
GatewayArn = aws_storagegateway_gateway.Example.Arn,
LocationArn = aws_s3_bucket.Example.Arn,
RoleArn = aws_iam_role.Example.Arn,
});
}
}
Guest Authentication
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.StorageGateway.SmbFileShare("example", new Aws.StorageGateway.SmbFileShareArgs
{
Authentication = "GuestAccess",
GatewayArn = aws_storagegateway_gateway.Example.Arn,
LocationArn = aws_s3_bucket.Example.Arn,
RoleArn = aws_iam_role.Example.Arn,
});
}
}
SmbFileShareArgs
SmbFileShareState
UploadBuffer
Manages an AWS Storage Gateway upload buffer.
NOTE: The Storage Gateway API provides no method to remove an upload buffer disk. Destroying this resource does not perform any Storage Gateway actions.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.StorageGateway.UploadBuffer("example", new Aws.StorageGateway.UploadBufferArgs
{
DiskId = data.Aws_storagegateway_local_disk.Example.Id,
GatewayArn = aws_storagegateway_gateway.Example.Arn,
});
}
}
UploadBufferArgs
UploadBufferState
WorkingStorage
Manages an AWS Storage Gateway working storage.
NOTE: The Storage Gateway API provides no method to remove a working storage disk. Destroying this resource does not perform any Storage Gateway actions.
Example Usage
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.StorageGateway.WorkingStorage("example", new Aws.StorageGateway.WorkingStorageArgs
{
DiskId = data.Aws_storagegateway_local_disk.Example.Id,
GatewayArn = aws_storagegateway_gateway.Example.Arn,
});
}
}