-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: object storage management (#676)
* feat: added accessKeys resource * fixed some plugin framework compatibilities * feat: added data sources, some refactoring * fix: working data sources, use valueString and other fixes * fix: getting version and terraform version like in the old provider * fix: rename bucket references * doc: added docs * test: added tests wip, renamed files * test: fix tests * fix: get specific client from bundle, added some checks to tests * fix: check for err and return if not nil to reduce complexity * doc: added comments * fix: made s3 work with sdk bundle * refactor: move cloudapi client initialization in method, sonar fixes * doc: added comments * sonar fixes * added the sdk to run linter * fix: linter issues * fix: linter issues 2 * fix: try fix imports * fix: try fix imports 2 * chore: added sdk from repo, some renaming changes * chore: rename to object-storage-management * chore: pr review changes and linter * chore: linter error * chore: undo linter changes * fix: make description computed * feat: added option to get access key using accesskeyid or description * doc: added changelog, summary, use sdk from github * fix: added check for when no identifier is set or calls fail, linter errors
- Loading branch information
1 parent
5307ac5
commit 3655af1
Showing
81 changed files
with
14,421 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
subcategory: "Object storage management" | ||
layout: "ionoscloud" | ||
page_title: "IonosCloud : object_storage_accesskey" | ||
sidebar_current: "docs-datasource-object_storage_accesskey" | ||
description: |- | ||
Get information on a IonosCloud Object storage Accesskey | ||
--- | ||
|
||
# ionoscloud_object_storage_accesskey | ||
|
||
The **Object Storage Accesskey data source** can be used to search for and return an existing Object Storage Accesskeys. | ||
|
||
## Example Usage | ||
|
||
### By ID | ||
```hcl | ||
data "ionoscloud_object_storage_accesskey" "example" { | ||
id = "accesskey_id" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
* `id` - (Optional) Id of an existing object storage accesskey that you want to search for. | ||
* `accesskey` - (Optional) Access key metadata is a string of 92 characters. | ||
* `description` - (Optional) Description of the Access key. | ||
|
||
## Attributes Reference | ||
|
||
The following attributes are returned by the datasource: | ||
|
||
- `id` - The ID (UUID) of the AccessKey. | ||
- `description` - Description of the Access key. | ||
- `accesskey` - Access key metadata is a string of 92 characters. | ||
- `canonical_user_id` - The canonical user ID which is valid for user-owned buckets. | ||
- `contract_user_id` - The contract user ID which is valid for contract-owned buckets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- | ||
subcategory: "Object storage management" | ||
layout: "ionoscloud" | ||
page_title: "IonosCloud : object_storage_region" | ||
sidebar_current: "docs-datasource-object_storage_region" | ||
description: |- | ||
Get information on a IonosCloud Object Storage Region | ||
--- | ||
|
||
# ionoscloud_object_storage_region | ||
|
||
The **Object storage region data source** can be used to search for and return an existing S3 Regions. | ||
|
||
## Example Usage | ||
|
||
### By ID | ||
```hcl | ||
data "ionoscloud_object_storage_region" "example" { | ||
id = "region_id" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
* `id` - (Required) Id of an existing object storage Region that you want to search for. | ||
|
||
## Attributes Reference | ||
|
||
The following attributes are returned by the datasource: | ||
|
||
- `id` - The id of the region | ||
- `version` - The version of the region properties | ||
- `endpoint` - The endpoint URL for the region | ||
- `website` - The website URL for the region | ||
- `storage_classes` - The available classes in the region | ||
- `location` - The data center location of the region as per [Get Location](/docs/cloud/v6/#tag/Locations/operation/locationsGet). *Can't be used as `LocationConstraint` on bucket creation.* | ||
- `capability` - The capabilities of the region | ||
* `iam` - Indicates if IAM policy based access is supported | ||
* `s3select` - Indicates if S3 Select is supported |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
subcategory: "Object storage management" | ||
layout: "ionoscloud" | ||
page_title: "IonosCloud: object_storage_accesskey" | ||
sidebar_current: "docs-resource-object_storage_accesskey" | ||
description: |- | ||
Creates and manages IonosCloud Object Storage Accesskeys. | ||
--- | ||
|
||
# ionoscloud_object_storage_accesskey | ||
|
||
Manages an **Object Storage Accesskey** on IonosCloud. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "ionoscloud_object_storage_accesskey" "example" { | ||
description = "my description" | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
- `description` - (Optional)[string] Description of the Access key. | ||
- `id` - (Computed) The ID (UUID) of the AccessKey. | ||
- `accesskey` - (Computed) Access key metadata is a string of 92 characters. | ||
- `secretkey` - (Computed) The secret key of the Access key. | ||
- `canonical_user_id` - (Computed) The canonical user ID which is valid for user-owned buckets. | ||
- `contract_user_id` - (Computed) The contract user ID which is valid for contract-owned buckets | ||
- `timeouts` - (Optional) Timeouts for this resource. | ||
- `create` - (Optional)[string] Time to wait for the bucket to be created. Default is `10m`. | ||
- `delete` - (Optional)[string] Time to wait for the bucket to be deleted. Default is `10m`. | ||
|
||
## Import | ||
|
||
An object storage accesskey resource can be imported using its `resource id`, e.g. | ||
|
||
```shell | ||
terraform import ionoscloud_object_storage_accesskey.demo {objectStorageAccesskeyId} | ||
``` | ||
|
||
This can be helpful when you want to import Object Storage Accesskeys which you have already created manually or using other means, outside of terraform. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.