-
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.
source path pointing to hashicorp regsitry
- Loading branch information
1 parent
49effba
commit 0c417e0
Showing
24 changed files
with
183 additions
and
172 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
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,31 @@ | ||
##################################################### | ||
# COS Bucket | ||
# Copyright 2020 IBM | ||
##################################################### | ||
|
||
provider "ibm" { | ||
} | ||
|
||
data "ibm_resource_group" "cos_group" { | ||
name = var.resource_group | ||
} | ||
|
||
module "cos" { | ||
|
||
source = "terraform-ibm-modules/cos/ibm//modules/cos_instance" | ||
|
||
service_name = var.service_name | ||
resource_group_id = data.ibm_resource_group.cos_group.id | ||
plan = var.plan | ||
region = var.region | ||
} | ||
|
||
module "cos_bucket" { | ||
source = "terraform-ibm-modules/cos/ibm//modules/cos_bucket" | ||
|
||
bucket_name = var.bucket_name | ||
cos_instance_id = module.cos.cos_instance_id | ||
location = var.location | ||
storage_class = var.storage_class | ||
|
||
} |
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
examples/cos_bucket/.terraform/plugins/darwin_amd64/lock.json
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
3 changes: 0 additions & 3 deletions
3
examples/cos_instance/.terraform/plugins/darwin_amd64/lock.json
This file was deleted.
Oops, something went wrong.
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
File renamed without changes.
File renamed without changes.
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,49 @@ | ||
# Module cos_bucket | ||
|
||
This module is used to create a cloud object storage bucket | ||
|
||
## Example Usage | ||
``` | ||
provider "ibm" { | ||
} | ||
data "ibm_resource_group" "cos_group" { | ||
name = var.resource_group | ||
} | ||
module "cos" { | ||
source = "terraform-ibm-modules/cos/ibm//modules/cos_instance" | ||
service_name = var.service_name | ||
resource_group_id = data.ibm_resource_group.cos_group.id | ||
plan = var.plan | ||
region = var.region | ||
} | ||
module "cos_bucket" { | ||
source = "terraform-ibm-modules/cos/ibm//modules/cos_bucket" | ||
bucket_name = var.bucket_name | ||
cos_instance_id = module.cos.cos_instance_id | ||
location = var.location | ||
storage_class = var.storage_class | ||
} | ||
``` | ||
|
||
<!-- BEGINNING OF PRE-COMMIT-TERRAFORM DOCS HOOK --> | ||
## Inputs | ||
|
||
|
||
| Name | Description | Type | Default | Required | | ||
|-----------------|------------------------------------------------------------------|:-------|---------|----------| | ||
| bucket\_name | Name of the bucket | string | n/a | yes | | ||
| storage\_class | Storage class to use for the bucket | string | n/a | yes | | ||
| location | The location of a regional bucket | string | n/a | no | | ||
| name | A descriptive name used to identify the resource instance | string | n/a | yes | | ||
| plan | The name of the plan type supported by service. | string | n/a | yes | | ||
| region | Target location or environment to create the resource instance. | string | n/a | yes | | ||
| resource\_group | Name of the resource group | string | n/a | yes | | ||
|
||
## NOTE: If we want to make use of a particular version of module, then set the argument "version" to respective module version. |
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
File renamed without changes.
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.