Use this resource to create a Nexus S3 blobstore.
resource "nexus_blobstore_s3" "aws" {
name = "blobstore-s3"
bucket_configuration {
bucket {
name = "aws-bucket-name"
region = "us-central-1"
}
bucket_security {
access_key_id = "<your-aws-access-key-id>"
secret_access_key = "<your-aws-secret-access-key>"
}
}
soft_quota {
limit = 1024
type = "spaceRemainingQuota"
}
}
bucket_configuration
(Block List, Min: 1, Max: 1) The S3 bucket configuration. (see below for nested schema)name
(String) Blobstore namesoft_quota
(Block List, Max: 1) Soft quota of the blobstore (see below for nested schema)blob_count
(Number) Count of blobsid
(String) Used to identify resource at nexustotal_size_in_bytes
(Number) The total size of the blobstore in Bytesbucket_configuration
Required:
bucket
(Block List, Min: 1, Max: 1) The S3 bucket configuration (see below for nested schema)Optional:
advanced_bucket_connection
(Block List, Max: 1) Additional connection configurations (see below for nested schema)bucket_security
(Block List, Max: 1) Additional security configurations (see below for nested schema)encryption
(Block List, Max: 1) Additional bucket encryption configurations (see below for nested schema)bucket_configuration.bucket
Required:
expiration
(Number) How many days until deleted blobs are finally removed from the S3 bucket (-1 to disable)name
(String) The name of the S3 bucketregion
(String) The AWS region to create a new S3 bucket in or an existing S3 bucket's regionOptional:
prefix
(String) The S3 blob store (i.e S3 object) key prefixbucket_configuration.advanced_bucket_connection
Optional:
endpoint
(String) A custom endpoint URL for third party object stores using the S3 API.force_path_style
(Boolean) Setting this flag will result in path-style access being used for all requests.max_connection_pool_size
(Number) Setting this value will override the default connection pool size of Nexus of the s3 client for this blobstore.signer_type
(String) An API signature version which may be required for third party object stores using the S3 API.bucket_configuration.bucket_security
Optional:
access_key_id
(String) An IAM access key ID for granting access to the S3 bucketrole
(String) An IAM role to assume in order to access the S3 bucketsecret_access_key
(String, Sensitive) The secret access key associated with the specified IAM access key IDsession_token
(String, Sensitive) An AWS STS session token associated with temporary security credentials which grant access to the S3 bucketbucket_configuration.encryption
Optional:
encryption_key
(String) The encryption key.encryption_type
(String) The type of S3 server side encryption to use.soft_quota
Required:
limit
(Number) The limit in Bytes. Minimum value is 1000000type
(String) The type to use such as spaceRemainingQuota, or spaceUsedQuota
Import is supported using the following syntax:
# import using the name of blobstore
terraform import nexus_blobstore_s3.aws blobstore-s3