Connect-VBRAmazonS3Service
Short Description
Connects to Amazon S3 object storage.
Applies to
Platform: VMware, Hyper-V
Product Edition: Community, Standard, Enterprise, Enterprise Plus
Syntax
Connect-VBRAmazonS3Service -Account <VBRAmazonAccount> -RegionType <VBRAmazonRegionType> {Global | Government |China} [-GatewayServer <CHost>] [-ServiceType <VBRAmazonServiceType> {ExternalRepository | CapacityTier}][<CommonParameters>] |
Detailed Description
This cmdlet connects to Amazon S3 object storage. It creates the IVBRAmazonS3Connection object that contains connection settings for Amazon S3 object storage. You can use these settings to add Amazon S3 object storage into your Veeam Backup & Replication infrastructure as an external repository or as an object storage repository.
Run Add-VBRAmazonS3Repository to add Amazon S3 as an object storage repository. Veeam Backup & Replication will use this repository to implement the capacity tier option for the scale-out repository.
Run Add-VBRAmazonS3ExternalRepository to add Amazon S3 as an external repository.
|
Mind the following:
|
Parameters
Parameter | Description | Required | Position | Accept | Accept |
Account | Specifies an Amazon S3 credentials record. Veeam Backup & Replication will use this credentials record to connect to Amazon S3 object storage. Accepts the VBRAmazonAccount type. | True | Named | True (ByValue) |
|
RegionType | Specifies the region type of Amazon S3 object storage. Veeam Backup & Replication will connect to the selected region type to set up a connection with Amazon S3 object storage. You can select the following types of regions:
| True | Named | False |
|
GatewayServer | Specifies a gateway server that you want to use to access Amazon S3 object storage. | False | Named | False |
|
ServiceType | Specifies the type of the backup repository. The cmdlet will add the object storage as the specified type of the backup repository to backup infrastructure.
| False | Named | False |
|
<CommonParameters>
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.
Return Type
Example 1
This example shows how to connect to Amazon S3 object storage and to use it as an object storage repository.
- Run Get-VBRAmazonAccount to get the Amazon S3 credentials record. Use the AccessKey parameter to get the credentials record by the Amazon S3 access key. Save the result to the $account variable.
- Run Connect-VBRAmazonS3Service with the $account variable. Specify the CapacityTier option for the ServiceType parameter and the Global option for the RegionType parameter. Save the result to the $connect variable. You will need this variable to disconnect from Amazon S3 object storage.
$account = Get-VBRAmazonAccount -AccessKey "ABCDEFGHIGKLMNOP" $connect = Connect-VBRAmazonS3Service -Account $account -RegionType Global -ServiceType CapacityTier |
Example 2
This example shows how to connect to Amazon S3 object storage to use it as an external repository.
- Run Get-VBRAmazonAccount to get the Amazon S3 credentials records. Use the Id parameter to get the credentials record by the Amazon S3 access key. Save the result to the $account variable.
- Run Connect-VBRAmazonS3Service with the $account variable. Specify the ExternalRepository option for the ServiceType parameter and the Global option for the RegionType parameter. Save the result to the $connect variable. You will need this variable to disconnect from Amazon S3 object storage.
$account = Get-VBRAmazonAccount -Id "936edf7c-7cf3-4ddc-9895-c7485ef4bb2c" $connect = Connect-VBRAmazonS3Service -Account $account -RegionType Global -ServiceType ExternalRepository |
Related Commands