File tree 7 files changed +79
-33
lines changed
7 files changed +79
-33
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ pull_request :
1
3
2
- # blocked by https://github.com/terraform-docs/gh-actions/pull/46
3
- # name: Generate terraform docs
4
- # on:
5
- # pull_request:
4
+ jobs :
5
+ docs :
6
+ runs-on : ubuntu-latest
7
+ steps :
8
+ - uses : actions/checkout@v2
9
+ with :
10
+ ref : ${{ github.event.pull_request.head.ref }}
6
11
7
- # jobs:
8
- # docs:
9
- # runs-on: ubuntu-latest
10
- # steps:
11
- # - uses: actions/checkout@v2
12
- # with:
13
- # ref: ${{ github.event.pull_request.head.ref }}
14
-
15
- # - name: Render terraform docs inside the examples/basic/README.md
16
- # uses: terraform-docs/[email protected]
17
- # with:
18
- # working-dir: ./examples/basic/
19
- # git-push: "false"
20
- # config-file: ".terraform-docs.yml"
21
-
22
- # - name: Render terraform docs inside the README.md
23
- # uses: terraform-docs/[email protected]
24
- # with:
25
- # working-dir: .
26
- # git-push: "true"
27
- # config-file: ".terraform-docs.yml"
12
+ - name : Render terraform docs inside the examples/basic/README.md
13
+ uses :
terraform-docs/[email protected]
14
+ with :
15
+ working-dir : ./examples/basic/
16
+ git-push : " false"
17
+ output-file : README.md
18
+ config-file : " .terraform-docs.yml"
28
19
20
+ - name : Render terraform docs inside the README.md
21
+ uses :
terraform-docs/[email protected]
22
+ with :
23
+ working-dir : .
24
+ git-push : " true"
25
+ output-file : README.md
26
+ config-file : " .terraform-docs.yml"
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ output:
12
12
```hcl
13
13
module "label" {
14
14
source = "cloudposse/label/null"
15
- version = "0.24.1 "
15
+ version = "0.25.0 "
16
16
17
17
name = "alpha"
18
18
namespace = "so"
@@ -69,4 +69,4 @@ settings:
69
69
lockfile : true
70
70
required : true
71
71
sensitive : true
72
- type : true
72
+ type : true
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ Terraform module to provision and manage AWS Secrets Manager.
6
6
``` hcl
7
7
module "label" {
8
8
source = "cloudposse/label/null"
9
- version = "0.24.1 "
9
+ version = "0.25.0 "
10
10
11
11
name = "alpha"
12
12
namespace = "so"
@@ -28,7 +28,6 @@ module "secrets" {
28
28
version = "0.1.0"
29
29
30
30
secret_version = {
31
- enabled = true
32
31
secret_string = jsonencode(
33
32
{
34
33
ssh_public_key = base64encode(module.ssh_key_pair.public_key)
@@ -110,6 +109,7 @@ module "secrets" {
110
109
| <a name =" output_id " ></a > [ id] ( #output\_ id ) | ID of the secret |
111
110
| <a name =" output_key_arn " ></a > [ key\_ arn] ( #output\_ key\_ arn ) | KMS key ARN |
112
111
| <a name =" output_kms_key_id " ></a > [ kms\_ key\_ id] ( #output\_ kms\_ key\_ id ) | KMS key ID |
112
+ | <a name =" output_name " ></a > [ name] ( #output\_ name ) | Name of the secret |
113
113
| <a name =" output_version_id " ></a > [ version\_ id] ( #output\_ version\_ id ) | The unique identifier of the version of the secret. |
114
114
<!-- END_TF_DOCS -->
115
115
Original file line number Diff line number Diff line change
1
+ ## terraform-aws-secretsmanager
2
+ Terraform module to provision and manage AWS Secrets Manager.
3
+
4
+ ## Usage
5
+
6
+ ``` hcl
7
+ module "label" {
8
+ source = "cloudposse/label/null"
9
+ version = "0.25.0"
10
+
11
+ name = "alpha"
12
+ namespace = "so"
13
+ stage = "staging"
14
+ }
15
+
16
+ module "ssh_key_pair" {
17
+ source = "cloudposse/key-pair/aws"
18
+ version = "0.18.1"
19
+
20
+ ssh_public_key_path = "keys/"
21
+ generate_ssh_key = "true"
22
+
23
+ context = module.label.context
24
+ }
25
+
26
+ module "secrets" {
27
+ source = "SweetOps/secretsmanager/aws"
28
+ version = "0.1.0"
29
+
30
+ secret_version = {
31
+ secret_string = jsonencode(
32
+ {
33
+ ssh_public_key = base64encode(module.ssh_key_pair.public_key)
34
+ ssh_private_key = base64encode(module.ssh_key_pair.private_key)
35
+ }
36
+ )
37
+ }
38
+
39
+ context = module.label.context
40
+ }
41
+ ```
42
+
1
43
<!-- BEGIN_TF_DOCS -->
2
44
## Requirements
3
45
@@ -14,8 +56,8 @@ No providers.
14
56
15
57
| Name | Source | Version |
16
58
| ------| --------| ---------|
17
- | <a name =" module_label " ></a > [ label] ( #module\_ label ) | cloudposse/label/null | 0.24.1 |
18
- | <a name =" module_secrets " ></a > [ secrets] ( #module\_ secrets ) | SweetOps/secretsmanager/aws | 0.1.0 |
59
+ | <a name =" module_label " ></a > [ label] ( #module\_ label ) | cloudposse/label/null | 0.25.0 |
60
+ | <a name =" module_secrets " ></a > [ secrets] ( #module\_ secrets ) | SweetOps/secretsmanager/aws | ../../ |
19
61
| <a name =" module_ssh_key_pair " ></a > [ ssh\_ key\_ pair] ( #module\_ ssh\_ key\_ pair ) | cloudposse/key-pair/aws | 0.18.1 |
20
62
21
63
## Resources
Original file line number Diff line number Diff line change 1
1
module "label" {
2
2
source = " cloudposse/label/null"
3
- version = " 0.24.1 "
3
+ version = " 0.25.0 "
4
4
5
5
name = " alpha"
6
6
namespace = " so"
@@ -19,7 +19,7 @@ module "ssh_key_pair" {
19
19
20
20
module "secrets" {
21
21
source = " SweetOps/secretsmanager/aws"
22
- version = " 0.1.0 "
22
+ version = " ../../ "
23
23
24
24
secret_version = {
25
25
enabled = true
Original file line number Diff line number Diff line change 1
1
locals {
2
2
enabled = module. this . enabled
3
+ secret_name = one (aws_secretsmanager_secret. default [* ]. name )
3
4
secret_id = one (aws_secretsmanager_secret. default [* ]. id )
4
5
secret_arn = one (aws_secretsmanager_secret. default [* ]. arn )
5
6
version_id = one (aws_secretsmanager_secret_version. default [* ]. version_id )
Original file line number Diff line number Diff line change
1
+ output "name" {
2
+ value = local. secret_name
3
+ description = " Name of the secret"
4
+ }
5
+
1
6
output "id" {
2
7
value = local. secret_id
3
8
description = " ID of the secret"
You can’t perform that action at this time.
0 commit comments