Skip to content
GitHubXDiscordRSS

LocationAzureBlob

Learn how to create, update, and manage AWS DataSync LocationAzureBlobs using Alchemy Cloud Control.

The LocationAzureBlob resource allows you to manage AWS DataSync LocationAzureBlobs for transferring data between AWS and Azure Blob Storage.

Create a basic Azure Blob location with required properties and a common optional property.

import AWS from "alchemy/aws/control";
const azureBlobLocation = await AWS.DataSync.LocationAzureBlob("myAzureBlobLocation", {
AzureBlobContainerUrl: "https://myaccount.blob.core.windows.net/mycontainer",
AzureBlobAuthenticationType: "SAS",
AgentArns: ["arn:aws:datasync:us-east-1:123456789012:agent/my-agent"],
AzureBlobSasConfiguration: {
SasToken: "my-sas-token"
}
});

Configure an Azure Blob location with additional options such as access tier and subdirectory.

const advancedAzureBlobLocation = await AWS.DataSync.LocationAzureBlob("advancedAzureBlobLocation", {
AzureBlobContainerUrl: "https://myaccount.blob.core.windows.net/mycontainer",
AzureBlobAuthenticationType: "SAS",
AgentArns: ["arn:aws:datasync:us-east-1:123456789012:agent/my-agent"],
AzureAccessTier: "Hot",
Subdirectory: "/data",
AzureBlobSasConfiguration: {
SasToken: "my-sas-token"
},
Tags: [
{ Key: "Environment", Value: "Production" },
{ Key: "Project", Value: "DataMigration" }
]
});

Demonstrate creating an Azure Blob location with a specific access tier for cost optimization.

const costOptimizedAzureBlobLocation = await AWS.DataSync.LocationAzureBlob("costOptimizedAzureBlobLocation", {
AzureBlobContainerUrl: "https://myaccount.blob.core.windows.net/mycontainer",
AzureBlobAuthenticationType: "SAS",
AgentArns: ["arn:aws:datasync:us-east-1:123456789012:agent/my-agent"],
AzureAccessTier: "Cool",
AzureBlobSasConfiguration: {
SasToken: "my-sas-token"
}
});