Skip to content
This repository was archived by the owner on Jun 3, 2023. It is now read-only.

Commit 4d8bc74

Browse files
author
Sohan Yadav
authored
Merge pull request #1 from clouddrove/0.15
update
2 parents 5f38e3b + 3e945c1 commit 4d8bc74

File tree

6 files changed

+30
-34
lines changed

6 files changed

+30
-34
lines changed

.github/workflows/readme.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
python-version: '3.x'
1919

2020
- name: 'create readme'
21-
uses: 'clouddrove/github-actions@v9.0'
21+
uses: 'clouddrove/github-actions@9.0.1'
2222
with:
2323
actions_subcommand: 'readme'
2424
github_token: '${{ secrets.GITHUB }}'
@@ -35,7 +35,7 @@ jobs:
3535
continue-on-error: true
3636

3737
- name: 'push readme'
38-
uses: 'clouddrove/github-actions@v9.0'
38+
uses: 'clouddrove/github-actions@9.0.1'
3939
continue-on-error: true
4040
with:
4141
actions_subcommand: 'push'

README.md

Lines changed: 23 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,16 @@
44

55

66
<h1 align="center">
7-
Terraform DigitalOcean VPC
7+
Terraform DigitalOcean spaces
88
</h1>
99

1010
<p align="center" style="font-size: 1.2rem;">
11-
VPCs are virtual networks containing resources that can communicate with each other in full isolation, using private IP addresses.
12-
</p>
11+
Provides a bucket resource for Spaces, DigitalOcean's object storage product. </p>
1312

1413
<p align="center">
1514

1615
<a href="https://www.terraform.io">
17-
<img src="https://img.shields.io/badge/Terraform-v0.13-green" alt="Terraform">
16+
<img src="https://img.shields.io/badge/Terraform-v0.15-green" alt="Terraform">
1817
</a>
1918
<a href="LICENSE.md">
2019
<img src="https://img.shields.io/badge/License-MIT-blue.svg" alt="Licence">
@@ -24,13 +23,13 @@
2423
</p>
2524
<p align="center">
2625

27-
<a href='https://facebook.com/sharer/sharer.php?u=https://github.com/clouddrove/terraform-digitalocean-vpc'>
26+
<a href='https://facebook.com/sharer/sharer.php?u=https://github.com/clouddrove/terraform-digitalocean-spaces'>
2827
<img title="Share on Facebook" src="https://user-images.githubusercontent.com/50652676/62817743-4f64cb80-bb59-11e9-90c7-b057252ded50.png" />
2928
</a>
30-
<a href='https://www.linkedin.com/shareArticle?mini=true&title=Terraform+DigitalOcean+VPC&url=https://github.com/clouddrove/terraform-digitalocean-vpc'>
29+
<a href='https://www.linkedin.com/shareArticle?mini=true&title=Terraform+DigitalOcean+spaces&url=https://github.com/clouddrove/terraform-digitalocean-spaces'>
3130
<img title="Share on LinkedIn" src="https://user-images.githubusercontent.com/50652676/62817742-4e339e80-bb59-11e9-87b9-a1f68cae1049.png" />
3231
</a>
33-
<a href='https://twitter.com/intent/tweet/?text=Terraform+DigitalOcean+VPC&url=https://github.com/clouddrove/terraform-digitalocean-vpc'>
32+
<a href='https://twitter.com/intent/tweet/?text=Terraform+DigitalOcean+spaces&url=https://github.com/clouddrove/terraform-digitalocean-spaces'>
3433
<img title="Share on Twitter" src="https://user-images.githubusercontent.com/50652676/62817740-4c69db00-bb59-11e9-8a79-3580fbbf6d5c.png" />
3534
</a>
3635

@@ -51,7 +50,7 @@ We have [*fifty plus terraform modules*][terraform_modules]. A few of them are c
5150

5251
This module has a few dependencies:
5352

54-
- [Terraform 0.13](https://learn.hashicorp.com/terraform/getting-started/install.html)
53+
- [Terraform 0.15](https://learn.hashicorp.com/terraform/getting-started/install.html)
5554
- [Go](https://golang.org/doc/install)
5655
- [github.com/stretchr/testify/assert](https://github.com/stretchr/testify)
5756
- [github.com/gruntwork-io/terratest/modules/terraform](https://github.com/gruntwork-io/terratest)
@@ -65,20 +64,19 @@ This module has a few dependencies:
6564
## Examples
6665

6766

68-
**IMPORTANT:** Since the `master` branch used in `source` varies based on new modifications, we suggest that you use the release versions [here](https://github.com/clouddrove/terraform-digitalocean-vpc/releases).
67+
**IMPORTANT:** Since the `master` branch used in `source` varies based on new modifications, we suggest that you use the release versions [here](https://github.com/clouddrove/terraform-digitalocean-spaces/releases).
6968

7069

7170
### Simple Example
7271
Here is an example of how you can use this module in your inventory structure:
7372
```hcl
74-
module "vpc" {
75-
source = "clouddrove/vpc/digitalocean"
76-
version = "0.13.0"
77-
name = "vpc"
78-
application = "clouddrove"
73+
module "spaces" {
74+
source = "terraform-do-modules/spaces/digitalocean"
75+
version = "0.15.0"
76+
name = "spaces"
7977
environment = "test"
80-
label_order = ["environment", "application", "name"]
81-
enable_vpc = true
78+
label_order = ["environment", "name"]
79+
enable_spaces = true
8280
region = "bangalore-1"
8381
}
8482
```
@@ -94,22 +92,21 @@ Here is an example of how you can use this module in your inventory structure:
9492
|------|-------------|------|---------|:--------:|
9593
| application | Application (e.g. `cd` or `clouddrove`). | `string` | `""` | no |
9694
| delimiter | Delimiter to be used between `organization`, `environment`, `name` and `attributes`. | `string` | `"-"` | no |
97-
| description | A free-form text field up to a limit of 255 characters to describe the VPC. | `string` | `"VPC"` | no |
98-
| enable\_vpc | A boolean flag to enable/disable vpc. | `bool` | `true` | no |
95+
| description | A free-form text field up to a limit of 255 characters to describe the spaces. | `string` | `"spaces"` | no |
96+
| enable\_spaces | A boolean flag to enable/disable spaces. | `bool` | `true` | no |
9997
| environment | Environment (e.g. `prod`, `dev`, `staging`). | `string` | `""` | no |
100-
| ip\_range | The range of IP addresses for the VPC in CIDR notation. Network ranges cannot overlap with other networks in the same account and must be in range of private addresses as defined in RFC1918. It may not be larger than /16 or smaller than /24. | `string` | `"10.10.0.0/16"` | no |
10198
| label\_order | Label order, e.g. `name`,`application`. | `list` | `[]` | no |
10299
| name | Name (e.g. `app` or `cluster`). | `string` | `""` | no |
103-
| region | The region to create VPC, like `london-1` , `bangalore-1` ,`newyork-3` `toronto-1`. | `string` | `"bangalore-1"` | no |
100+
| region | The region to create spaces, like `london-1` , `bangalore-1` ,`newyork-3` `toronto-1`. | `string` | `"bangalore-1"` | no |
104101

105102
## Outputs
106103

107104
| Name | Description |
108105
|------|-------------|
109-
| created\_at | The date and time of when the VPC was created. |
110-
| default | A boolean indicating whether or not the VPC is the default one for the region. |
111-
| id | The unique identifier for the VPC.. |
112-
| urn | The uniform resource name (URN) for the VPC. |
106+
| created\_at | The date and time of when the spaces was created. |
107+
| default | A boolean indicating whether or not the spaces is the default one for the region. |
108+
| id | The unique identifier for the spaces.. |
109+
| urn | The uniform resource name (URN) for the spaces. |
113110

114111

115112

@@ -125,9 +122,9 @@ You need to run the following command in the testing folder:
125122

126123

127124
## Feedback
128-
If you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/clouddrove/terraform-digitalocean-vpc/issues), or feel free to drop us an email at [[email protected]](mailto:[email protected]).
125+
If you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/clouddrove/terraform-digitalocean-spaces/issues), or feel free to drop us an email at [[email protected]](mailto:[email protected]).
129126

130-
If you have found it worth your time, go ahead and give us a ★ on [our GitHub](https://github.com/clouddrove/terraform-digitalocean-vpc)!
127+
If you have found it worth your time, go ahead and give us a ★ on [our GitHub](https://github.com/clouddrove/terraform-digitalocean-spaces)!
131128

132129
## About us
133130

README.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
#
66

77
# Name of this project
8-
name : Terraform DigitalOcean spaces
8+
name : Terraform Digitalocean spaces
99

1010
# License of this project
1111
license: "MIT"
@@ -37,7 +37,7 @@ usage : |-
3737
```hcl
3838
module "spaces" {
3939
source = "terraform-do-modules/spaces/digitalocean"
40-
version = "0.15.0"
40+
version = "0.15.0"
4141
name = "clouddrove"
4242
environment = "test"
4343
label_order = ["name"]

_test/vpc_test.go renamed to _test/spaces_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Managed By : CloudDrove
2-
// Description : This Terratest is used to test the Terraform SES module.
2+
// Description : This Terratest is used to test the Terraform spaces module.
33
// Copyright @ CloudDrove. All Right Reserved.
44
package test
55

@@ -28,5 +28,5 @@ func Test(t *testing.T) {
2828
Arn := terraform.Output(t, terraformOptions, "urn")
2929

3030
// Check that we get back the outputs that we expect
31-
assert.Contains(t, Arn, "do:vpc:")
31+
assert.Contains(t, Arn, "do:spaces:")
3232
}

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ locals {
2222
#Module : LABEL
2323
#Description : Terraform label module variables.
2424
module "labels" {
25-
source = ""
25+
source = "terraform-do-modules/labels/digitalocean"
2626
version = "0.15.0"
2727
name = var.name
2828
environment = var.environment

outputs.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ output "name" {
1111
description = "The date and time of when the VPC was created."
1212
}
1313

14-
1514
output "bucket_domain_name" {
1615
value = join("", digitalocean_spaces_bucket.spaces.*.bucket_domain_name)
1716
description = "The date and time of when the VPC was created."

0 commit comments

Comments
 (0)