Use the commvault_aws_storage
resource type to create or delete an AWS cloud storage in the CommCell environment.
Syntax
resource "commvault_aws_storage" "<local_name>"{
storage_name = "<AWS storage name>"
mediaagent = "<MediaAgent name>"
service_host = "<AWS service host>"
access_key_id = "<AWS access key>"
secret_access_key = "<AWS secret access key>" //Base64 encoded password
bucket = "<AWS bucket name>"
ddb_location = "<DDB location>"
company_id = <company ID>
}
Where local name is the name that is used by the Commvault Terraform module to refer to the resource and has no significance in the target platform.
Arguments
Name | Description | Required | More Information |
---|---|---|---|
storage_name | The name of the AWS storage. | Yes | |
mediaagent | The MediaAgent that is used for the AWS storage. | Yes | |
service_host | The service host name for the AWS storage. | Yes | |
bucket | The name of the bucket that is used for the AWS storage. | Yes | |
credentials_name | The name of the credential that you want to use for the AWS cloud storage account. | No | If you include the |
access_key_id | The access key ID of the AWS cloud storage account. | No | |
secret_access_key | The secret access key of the AWS cloud storage account. | No | |
ddb_location | The deduplication path for the AWS cloud storage. | No | |
company_id | The ID of the company that you want to associate the AWS cloud storage with. | No |
Example
The following resource block manages the aws_cvlt_us AWS storage:
resource "commvault_aws_storage" "CAWS"{
storage_name = "aws_cvlt_us"
mediaagent = "MediaAgent"
service_host = "s3.us-east-1.amazonaws.com"
access_key_id = "AccessKey_ID"
secret_access_key = "Y29tbXZhdWx0" //Base64 encoded password
bucket = "Bucket12"
ddb_location = "c:\\DemoDiskStorage-Dedup-DDB"
company_id = 22
}