Skip to content
This repository was archived by the owner on Jan 31, 2021. It is now read-only.

Commit 44a408e

Browse files
authored
Fix readme (#9)
1 parent 83559b6 commit 44a408e

File tree

3 files changed

+32
-10
lines changed

3 files changed

+32
-10
lines changed

Diff for: README.md

+11
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,11 @@ Available targets:
9797
| acm_primary_domain | A domain name for which the certificate should be issued | string | - | yes |
9898
| acm_san_domains | A list of domains that should be SANs in the issued certificate | list | `<list>` | no |
9999
| attributes | Additional attributes (e.g. `1`) | list | `<list>` | no |
100+
| backup_enabled | Set to false to prevent the module from creating any resources | string | `` | no |
101+
| backup_s3_access_key_name | Backup s3 user IAM access key name for storing in SSM. Default to aws_acces_key_id so chamber exports as AWS_ACCESS_KEY_ID, a standard AWS IAM ENV variable | string | `codefresh_backups_aws_access_key_id` | no |
102+
| backup_s3_allowed_bucket_actions | List of actions to permit for backup s3 bucket | list | `<list>` | no |
103+
| backup_s3_secret_key_name | Backup s3 user IAM secret key name for storing in SSM. Default to aws_secret_acces_key so chamber exports as AWS_SECRET_ACCESS_KEY, a standard AWS IAM ENV variable | string | `codefresh_backups_aws_secret_access_key` | no |
104+
| backup_s3_user_enabled | Set to `true` to create an user with permission to access the backup s3 bucket | string | `` | no |
100105
| chamber_format | Format to store parameters in SSM, for consumption with `chamber` | string | `/%s/%s` | no |
101106
| chamber_service | `chamber` service name. See [chamber usage](https://github.com/segmentio/chamber#usage) for more details | string | `` | no |
102107
| delimiter | Delimiter to be used between `namespace`, `stage`, `name` and `attributes` | string | `-` | no |
@@ -165,6 +170,12 @@ Available targets:
165170
| aurora_postgres_master_hostname | Aurora Postgres DB Master hostname |
166171
| aurora_postgres_master_username | Aurora Postgres Username for the master DB user |
167172
| aurora_postgres_replicas_hostname | Aurora Postgres Replicas hostname |
173+
| backup_s3_access_key_id | The access key ID for backup user |
174+
| backup_s3_bucket_arn | The backup s3 bucket ARN |
175+
| backup_s3_secret_access_key | The secret access key for backup user. This will be written to the state file in plain-text |
176+
| backup_s3_user_arn | The ARN assigned by AWS for the backup user |
177+
| backup_s3_user_name | Normalized IAM backup user name |
178+
| backup_s3_user_unique_id | The backup user unique ID assigned by AWS |
168179
| documentdb_arn | Amazon Resource Name (ARN) of the DocumentDB cluster |
169180
| documentdb_cluster_name | DocumentDB Cluster Identifier |
170181
| documentdb_endpoint | Endpoint of the DocumentDB cluster |

Diff for: docs/terraform.md

+11
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
| acm_primary_domain | A domain name for which the certificate should be issued | string | - | yes |
77
| acm_san_domains | A list of domains that should be SANs in the issued certificate | list | `<list>` | no |
88
| attributes | Additional attributes (e.g. `1`) | list | `<list>` | no |
9+
| backup_enabled | Set to false to prevent the module from creating any resources | string | `` | no |
10+
| backup_s3_access_key_name | Backup s3 user IAM access key name for storing in SSM. Default to aws_acces_key_id so chamber exports as AWS_ACCESS_KEY_ID, a standard AWS IAM ENV variable | string | `codefresh_backups_aws_access_key_id` | no |
11+
| backup_s3_allowed_bucket_actions | List of actions to permit for backup s3 bucket | list | `<list>` | no |
12+
| backup_s3_secret_key_name | Backup s3 user IAM secret key name for storing in SSM. Default to aws_secret_acces_key so chamber exports as AWS_SECRET_ACCESS_KEY, a standard AWS IAM ENV variable | string | `codefresh_backups_aws_secret_access_key` | no |
13+
| backup_s3_user_enabled | Set to `true` to create an user with permission to access the backup s3 bucket | string | `` | no |
914
| chamber_format | Format to store parameters in SSM, for consumption with `chamber` | string | `/%s/%s` | no |
1015
| chamber_service | `chamber` service name. See [chamber usage](https://github.com/segmentio/chamber#usage) for more details | string | `` | no |
1116
| delimiter | Delimiter to be used between `namespace`, `stage`, `name` and `attributes` | string | `-` | no |
@@ -74,6 +79,12 @@
7479
| aurora_postgres_master_hostname | Aurora Postgres DB Master hostname |
7580
| aurora_postgres_master_username | Aurora Postgres Username for the master DB user |
7681
| aurora_postgres_replicas_hostname | Aurora Postgres Replicas hostname |
82+
| backup_s3_access_key_id | The access key ID for backup user |
83+
| backup_s3_bucket_arn | The backup s3 bucket ARN |
84+
| backup_s3_secret_access_key | The secret access key for backup user. This will be written to the state file in plain-text |
85+
| backup_s3_user_arn | The ARN assigned by AWS for the backup user |
86+
| backup_s3_user_name | Normalized IAM backup user name |
87+
| backup_s3_user_unique_id | The backup user unique ID assigned by AWS |
7788
| documentdb_arn | Amazon Resource Name (ARN) of the DocumentDB cluster |
7889
| documentdb_cluster_name | DocumentDB Cluster Identifier |
7990
| documentdb_endpoint | Endpoint of the DocumentDB cluster |

Diff for: s3-backup.tf

+10-10
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,25 @@ variable "backup_enabled" {
77
variable "backup_s3_user_enabled" {
88
type = "string"
99
default = ""
10-
description = "Set to `true` to create an backup_s3 user with permission to access the bucket"
10+
description = "Set to `true` to create an user with permission to access the backup s3 bucket"
1111
}
1212

1313
variable "backup_s3_allowed_bucket_actions" {
1414
type = "list"
1515
default = ["s3:PutObject", "s3:PutObjectAcl", "s3:GetObject", "s3:DeleteObject", "s3:ListBucket", "s3:ListBucketMultipartUploads", "s3:GetBucketLocation", "s3:AbortMultipartUpload"]
16-
description = "List of actions to permit for backup_s3 bucket"
16+
description = "List of actions to permit for backup s3 bucket"
1717
}
1818

1919
variable "backup_s3_access_key_name" {
2020
type = "string"
2121
default = "codefresh_backups_aws_access_key_id"
22-
description = "backup_s3 user IAM access key name for storing in SSM. Default to aws_acces_key_id so chamber exports as AWS_ACCESS_KEY_ID, a standard AWS IAM ENV variable"
22+
description = "Backup s3 user IAM access key name for storing in SSM. Default to aws_acces_key_id so chamber exports as AWS_ACCESS_KEY_ID, a standard AWS IAM ENV variable"
2323
}
2424

2525
variable "backup_s3_secret_key_name" {
2626
type = "string"
2727
default = "codefresh_backups_aws_secret_access_key"
28-
description = "backup_s3 user IAM secret key name for storing in SSM. Default to aws_secret_acces_key so chamber exports as AWS_SECRET_ACCESS_KEY, a standard AWS IAM ENV variable "
28+
description = "Backup s3 user IAM secret key name for storing in SSM. Default to aws_secret_acces_key so chamber exports as AWS_SECRET_ACCESS_KEY, a standard AWS IAM ENV variable "
2929
}
3030

3131
locals {
@@ -66,32 +66,32 @@ resource "aws_ssm_parameter" "backup_s3_user_iam_secret_access_key" {
6666

6767
output "backup_s3_user_name" {
6868
value = "${module.backup_s3_bucket.user_name}"
69-
description = "Normalized IAM user name"
69+
description = "Normalized IAM backup user name"
7070
}
7171

7272
output "backup_s3_user_arn" {
7373
value = "${module.backup_s3_bucket.user_arn}"
74-
description = "The ARN assigned by AWS for the user"
74+
description = "The ARN assigned by AWS for the backup user"
7575
}
7676

7777
output "backup_s3_user_unique_id" {
7878
value = "${module.backup_s3_bucket.user_unique_id}"
79-
description = "The user unique ID assigned by AWS"
79+
description = "The backup user unique ID assigned by AWS"
8080
}
8181

8282
output "backup_s3_access_key_id" {
8383
sensitive = true
8484
value = "${module.backup_s3_bucket.access_key_id}"
85-
description = "The access key ID"
85+
description = "The access key ID for backup user"
8686
}
8787

8888
output "backup_s3_secret_access_key" {
8989
sensitive = true
9090
value = "${module.backup_s3_bucket.secret_access_key}"
91-
description = "The secret access key. This will be written to the state file in plain-text"
91+
description = "The secret access key for backup user. This will be written to the state file in plain-text"
9292
}
9393

9494
output "backup_s3_bucket_arn" {
9595
value = "${module.backup_s3_bucket.s3_bucket_arn}"
96-
description = "The backup_s3 bucket ARN"
96+
description = "The backup s3 bucket ARN"
9797
}

0 commit comments

Comments
 (0)