Skip to content

Commit 707ea90

Browse files
authored
Merge pull request #2 from clouddrove/CD-147
fix labels managedby variables
2 parents daae11c + b2edfee commit 707ea90

File tree

6 files changed

+31
-23
lines changed

6 files changed

+31
-23
lines changed

README.md

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<hr>
3939

4040

41-
We eat, drink, sleep and most importantly love **DevOps**. We are working towards stratergies for standardizing architecture while ensuring security for the infrastructure. We are strong believer of the philosophy <b>Bigger problems are always solved by breaking them into smaller manageable problems</b>. Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller <b>connected yet manageable pieces</b> within the infrastructure.
41+
We eat, drink, sleep and most importantly love **DevOps**. We are working towards strategies for standardizing architecture while ensuring security for the infrastructure. We are strong believer of the philosophy <b>Bigger problems are always solved by breaking them into smaller manageable problems</b>. Resonating with microservices architecture, it is considered best-practice to run database, cluster, storage in smaller <b>connected yet manageable pieces</b> within the infrastructure.
4242

4343
This module is basically combination of [Terraform open source](https://www.terraform.io/) and includes automatation tests and examples. It also helps to create and improve your infrastructure with minimalistic code instead of maintaining the whole infrastructure code yourself.
4444

@@ -72,7 +72,7 @@ This module has a few dependencies:
7272
Here is an example of how you can use this module in your inventory structure:
7373
```hcl
7474
module "sftp" {
75-
source = "git::https://github.com/clouddrove/terraform-aws-sftp.git?ref=tags/0.12.0"
75+
source = "git::https://github.com/clouddrove/terraform-aws-sftp.git?ref=tags/0.12.2"
7676
name = "sftp"
7777
application = "clouddrove"
7878
environment = "test"
@@ -81,7 +81,7 @@ Here is an example of how you can use this module in your inventory structure:
8181
user_name = "ftp-user"
8282
enable_sftp = true
8383
s3_bucket_id = clouddrove_dev_s3_bucket
84-
}
84+
}
8585
```
8686

8787

@@ -93,26 +93,27 @@ Here is an example of how you can use this module in your inventory structure:
9393

9494
| Name | Description | Type | Default | Required |
9595
|------|-------------|:----:|:-----:|:-----:|
96-
| application | Application (e.g. `cd` or `clouddrove`). | string | `` | no |
97-
| attributes | Additional attributes (e.g. `1`). | list | `<list>` | no |
98-
| delimiter | Delimiter to be used between `organization`, `environment`, `name` and `attributes`. | string | `-` | no |
99-
| enable_sftp | Set to false to prevent the module from creating any resources. | bool | `true` | no |
100-
| environment | Environment (e.g. `prod`, `dev`, `staging`). | string | `` | no |
101-
| identity_provider_type | The mode of authentication enabled for this service. The default value is SERVICE_MANAGED, which allows you to store and access SFTP user credentials within the service. API_GATEWAY. | string | `SERVICE_MANAGED` | no |
102-
| key_path | Name (e.g. `~/.ssh/id_rsa.pub` or `ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD3F6tyPEFEzV0LX3X8BsXdMsQ`). | string | `` | no |
103-
| label_order | Label order, e.g. `name`,`application`. | list | `<list>` | no |
104-
| name | Name (e.g. `app` or `cluster`). | string | `` | no |
105-
| s3_bucket_id | The landing directory (folder) for a user when they log in to the server using their SFTP client. | string | - | yes |
106-
| sub_folder | Landind folder. | string | `` | no |
107-
| tags | Additional tags (e.g. map(`BusinessUnit`,`XYZ`). | map | `<map>` | no |
108-
| user_name | User name for SFTP server. | string | - | yes |
96+
| application | Application \(e.g. `cd` or `clouddrove`\). | string | `""` | no |
97+
| attributes | Additional attributes \(e.g. `1`\). | list | `<list>` | no |
98+
| delimiter | Delimiter to be used between `organization`, `environment`, `name` and `attributes`. | string | `"-"` | no |
99+
| enable\_sftp | Set to false to prevent the module from creating any resources. | bool | `"true"` | no |
100+
| environment | Environment \(e.g. `prod`, `dev`, `staging`\). | string | `""` | no |
101+
| identity\_provider\_type | The mode of authentication enabled for this service. The default value is SERVICE\_MANAGED, which allows you to store and access SFTP user credentials within the service. API\_GATEWAY. | string | `"SERVICE_MANAGED"` | no |
102+
| key\_path | Name \(e.g. `~/.ssh/id\_rsa.pub` or `ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQD3F6tyPEFEzV0LX3X8BsXdMsQ`\). | string | `""` | no |
103+
| label\_order | Label order, e.g. `name`,`application`. | list | `<list>` | no |
104+
| managedby | ManagedBy, eg 'CloudDrove' or 'AnmolNagpal'. | string | `"[email protected]"` | no |
105+
| name | Name \(e.g. `app` or `cluster`\). | string | `""` | no |
106+
| s3\_bucket\_id | The landing directory \(folder\) for a user when they log in to the server using their SFTP client. | string | n/a | yes |
107+
| sub\_folder | Landind folder. | string | `""` | no |
108+
| tags | Additional tags \(e.g. map\(`BusinessUnit`,`XYZ`\). | map | `<map>` | no |
109+
| user\_name | User name for SFTP server. | string | n/a | yes |
109110

110111
## Outputs
111112

112113
| Name | Description |
113114
|------|-------------|
114-
| transfer_server_endpoint | The endpoint of the Transfer Server (e.g. s-12345678.server.transfer.REGION.amazonaws.com). |
115-
| transfer_server_id | The Server ID of the Transfer Server (e.g. s-12345678). |
115+
| tags | A mapping of tags to assign to the resource. |
116+
| transfer\_server\_endpoint | The endpoint of the Transfer Server \(e.g. s-12345678.server.transfer.REGION.amazonaws.com\). |
116117

117118

118119

@@ -145,4 +146,4 @@ At [CloudDrove][website], we offer expert guidance, implementation support and s
145146
[linkedin]: https://cpco.io/linkedin
146147
[twitter]: https://twitter.com/clouddrove/
147148
[email]: https://clouddrove.com/contact-us.html
148-
[terraform_modules]: https://github.com/clouddrove?utf8=%E2%9C%93&q=terraform-&type=&language=
149+
[terraform_modules]: https://github.com/clouddrove?utf8=%E2%9C%93&q=terraform-&type=&language=

README.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ usage : |-
3636
Here is an example of how you can use this module in your inventory structure:
3737
```hcl
3838
module "sftp" {
39-
source = "git::https://github.com/clouddrove/terraform-aws-sftp.git?ref=tags/0.12.0"
39+
source = "git::https://github.com/clouddrove/terraform-aws-sftp.git?ref=tags/0.12.2"
4040
name = "sftp"
4141
application = "clouddrove"
4242
environment = "test"

_example/example.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ module "s3_bucket" {
1818
}
1919

2020
module "sftp" {
21-
source = "git::https://github.com/clouddrove/terraform-aws-sftp.git?ref=tags/0.12.1"
21+
source = "../"
2222
name = "sftp"
2323
application = "clouddrove"
2424
environment = "test"

main.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module "labels" {
99
name = var.name
1010
application = var.application
1111
environment = var.environment
12+
managedby = var.managedby
1213
label_order = var.label_order
1314
}
1415

outputs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
#Description : Terraform sftp module variables.
33

44
output "id" {
5-
value = join("", aws_transfer_server.transfer_server.*.id)
5+
value = join("", aws_transfer_server.transfer_server.*.id)
66
description = "The Server ID of the Transfer Server (e.g. s-12345678)."
77
}
88

99
output "transfer_server_endpoint" {
10-
value = join("", aws_transfer_server.transfer_server.*.endpoint)
10+
value = join("", aws_transfer_server.transfer_server.*.endpoint)
1111
description = "The endpoint of the Transfer Server (e.g. s-12345678.server.transfer.REGION.amazonaws.com)."
1212
}
1313

variables.tf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ variable "tags" {
3636
description = "Additional tags (e.g. map(`BusinessUnit`,`XYZ`)."
3737
}
3838

39+
variable "managedby" {
40+
type = string
41+
default = "[email protected]"
42+
description = "ManagedBy, eg 'CloudDrove' or 'AnmolNagpal'."
43+
}
44+
3945
variable "delimiter" {
4046
type = string
4147
default = "-"

0 commit comments

Comments
 (0)