-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #363 from philips-software/feature/blobstorepolicy
Initial Blob Repository support
- Loading branch information
Showing
13 changed files
with
794 additions
and
8 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,35 @@ | ||
--- | ||
subcategory: "Blob Repository (BLR)" | ||
--- | ||
|
||
# hsdp_blr_bucket | ||
|
||
Retrieve details on a Blob Repository Bucket resource | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
data "hsdp_blr_bucket" "store" { | ||
name = "bucket-store-1" | ||
} | ||
output "bucket_id" { | ||
value = data.hsdp_connect_mdm_bucket.store.id | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are available: | ||
|
||
* `name` - (Required) The name of the bucket to look up | ||
|
||
## Attribute Reference | ||
|
||
In addition to all arguments above, the following attributes are exported: | ||
|
||
* `id` - The ID reference of the service action (format: `Bucket/${GUID}`) | ||
* `guid` - The GUID of the bucket | ||
* `cdn_enabled` - CDN enabled or not | ||
* `cache_control_age` - Cache control age settings | ||
* `cors_config_json` - The Bucket CORS configuration in JSON |
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,40 @@ | ||
--- | ||
subcategory: "Blob Repository (BLR)" | ||
page_title: "HSDP: hsdp_blr_blob_store_policy" | ||
description: |- | ||
Manages HSDP Connect Blob Store Repository Policies | ||
--- | ||
|
||
# hsdp_blr_blob_store_policy | ||
|
||
Create and manage Blob Repository Policies | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "hsdp_blr_blob_store_policy" "policy" { | ||
statement { | ||
effect = "Allow" | ||
action = ["GET", "PUT", "DELETE"] | ||
principal = ["prn:hsdp:iam:${data.hsdp_iam_org.myorg.id}:${hsdp_connect_mdm_proposition.first.guid}:User/*"] | ||
resource = ["${hsdp_blr_bucket.store.name}/*"] | ||
} | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are available: | ||
|
||
* `statement` - (Required) | ||
* `effect` - (Required, string) Effect of policy [`Allow`, `Deny`] | ||
* `action` - (Required, list(string)) Allowed methods: [`GET`, `PUT`, `DELETE`] | ||
* `principal` - (Required, list(string)) The principals the policy applies to | ||
* `resource` - (Required, list(string)) The resources the policy applies to | ||
|
||
## Attributes reference | ||
|
||
In addition to all arguments above, the following attributes are exported: | ||
|
||
* `id` - The ID reference of the service action (format: `BlobStorePolicy/${GUID}`) | ||
* `guid` - The GUID of the bucket |
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,52 @@ | ||
--- | ||
subcategory: "Blob Repository (BLR)" | ||
page_title: "HSDP: hsdp_blr_bucket" | ||
description: |- | ||
Manages HSDP Connect Blob Repository Buckets | ||
--- | ||
|
||
# hsdp_blr_bucket | ||
|
||
Create and manage Blob Repository Buckets | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "hsdp_blr_bucket" "store" { | ||
name = "bucket-store-1" | ||
proposition_id = data.hsdp_connect_mdm_propososition.prop.id | ||
enable_cdn = false | ||
cors_configuration { | ||
allowed_origins = ["https://foo.hsdp.io"] | ||
allowed_methods = ["GET"] | ||
expose_headers = ["X-Hsdp-Signature"] | ||
} | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are available: | ||
|
||
* `name` - (Required) The name of the device group | ||
* `proposition_id` - (Required) The proposition ID where this bucket falls under | ||
* `versioning_enabled` - (Required) Set versioning | ||
* `enable_cdn` - (Optional) Enable CDN or not | ||
* `enable_create_or_delete_blob_meta` - (Optional) Enables creation or deletion of Blob meta data | ||
* `enable_hsdp_domain` - (Optional) Enable HSDP domain mapping | ||
* `cache_control_age` - (Optional) Cache control age settings (Max: `1800`, Min: `300`, Default: `1`) | ||
* `cors_configuration` - (Optional) | ||
* `allowed_origins` - (Required, list(string)) List of allowed origins | ||
* `allowed_methods` - (Required, list(string)) Allowed methods: [`GET`, `PUT`, `POST`, `DELETE`, `HEAD`] | ||
* `max_age_seconds` - (Optional) Max age in seconds | ||
* `expose_headers` - (Optional, list(string)) List of headers to expose | ||
|
||
## Attributes reference | ||
|
||
In addition to all arguments above, the following attributes are exported: | ||
|
||
* `id` - The ID reference of the service action (format: `Bucket/${GUID}`) | ||
* `guid` - The GUID of the bucket |
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.