Skip to content

Commit 50cb064

Browse files
authored
Merge pull request #4 from clouddrove/CD-118
fix bool
2 parents 019286f + f678fce commit 50cb064

File tree

2 files changed

+23
-20
lines changed

2 files changed

+23
-20
lines changed

README.md

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Terraform Aws Acm
88
</h1>
99

10-
<p align="center" style="font-size: 1.2rem;">
10+
<p align="center" style="font-size: 1.2rem;">
1111
This terraform module is used for requesting or importing SSL/TLS certificate with validation.
1212
</p>
1313

@@ -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 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.
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

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

5050
## Prerequisites
5151

52-
This module has a few dependencies:
52+
This module has a few dependencies:
5353

5454
- [Terraform 0.12](https://learn.hashicorp.com/terraform/getting-started/install.html)
5555
- [Go](https://golang.org/doc/install)
@@ -61,8 +61,10 @@ This module has a few dependencies:
6161

6262

6363

64+
6465
## Examples
6566

67+
6668
**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-aws-acm/releases).
6769

6870

@@ -74,28 +76,26 @@ module "acm" {
7476
name = "certificate"
7577
application = "clouddrove"
7678
environment = "test"
77-
label_order = ["environment", "application", "name"]
79+
label_order = ["environment", "name", "application"]
7880
domain_name = "clouddrove.com"
7981
validation_method = "DNS"
8082
enable_dns_validation = false
8183
enable_aws_certificate = true
82-
8384
}
8485
```
8586

8687
### ACM with Email
8788
```hcl
8889
module "acm" {
89-
source = "git::https://github.com/clouddrove/terraform-aws-acm.git?ref=tags/0.12.1"
90-
name = "certificate"
91-
application = "clouddrove"
92-
environment = "test"
93-
label_order = ["environment", "application", "name"]
94-
domain_name = "clouddrove.com"
95-
validation_method = "EMAIL"
96-
validate_certificate = false
90+
source = "git::https://github.com/clouddrove/terraform-aws-acm.git?ref=tags/0.12.1"
91+
name = "certificate"
92+
application = "clouddrove"
93+
environment = "test"
94+
label_order = ["environment", "name", "application"]
95+
domain_name = "clouddrove.com"
96+
validation_method = "EMAIL"
97+
validate_certificate = false
9798
enable_aws_certificate = true
98-
9999
}
100100
```
101101

@@ -106,7 +106,7 @@ module "acm" {
106106
name = "certificate"
107107
application = "clouddrove"
108108
environment = "test"
109-
label_order = ["environment", "application", "name"]
109+
label_order = ["environment", "name", "application"]
110110
private_key = "./../../../clouddrove-private-key.pem"
111111
certificate_body = "./../../../clouddrove-cert.pem"
112112
certificate_chain = "./../../../clouddrove-chain.crt"
@@ -116,6 +116,9 @@ module "acm" {
116116

117117

118118

119+
120+
121+
119122
## Inputs
120123

121124
| Name | Description | Type | Default | Required |
@@ -127,6 +130,7 @@ module "acm" {
127130
| delimiter | Delimiter to be used between `organization`, `environment`, `name` and `attributes`. | string | `-` | no |
128131
| domain_name | A domain name for which the certificate should be issued. | string | - | yes |
129132
| enable_acm_certificate | Set to false to prevent the creation of a acm certificate. | string | `true` | no |
133+
| enable_aws_certificate | Set to false to prevent the creation of a acm certificate. | bool | `false` | no |
130134
| enable_dns_validation | Set to prevent validation of DNS. | string | `false` | no |
131135
| environment | Environment (e.g. `prod`, `dev`, `staging`). | string | `` | no |
132136
| import_certificate | Set to true or false to decide the creation and import of a acm certificate. | bool | `false` | no |
@@ -143,15 +147,14 @@ module "acm" {
143147
| Name | Description |
144148
|------|-------------|
145149
| arn | The ARN of the Certificate. |
146-
| domain_validation_options | The domain validation option of the Certificate. |
147150
| id | The ID of the Certificate. |
148151
| tags | A mapping of tags to assign to the resource. |
149152

150153

151154

152-
## Testing
153155

154-
In this module testing is performed with [terratest](https://github.com/gruntwork-io/terratest) and it creates a small piece of infrastructure, matches the output like ARN, ID and Tags name etc and destroy infrastructure in your AWS account. This testing is written in GO, so you need a [GO environment](https://golang.org/doc/install) in your system.
156+
## Testing
157+
In this module testing is performed with [terratest](https://github.com/gruntwork-io/terratest) and it creates a small piece of infrastructure, matches the output like ARN, ID and Tags name etc and destroy infrastructure in your AWS account. This testing is written in GO, so you need a [GO environment](https://golang.org/doc/install) in your system.
155158

156159
You need to run the following command in the testing folder:
157160
```hcl
@@ -160,7 +163,7 @@ You need to run the following command in the testing folder:
160163

161164

162165

163-
## Feedback
166+
## Feedback
164167
If you come accross a bug or have any feedback, please log it in our [issue tracker](https://github.com/clouddrove/terraform-aws-acm/issues), or feel free to drop us an email at [[email protected]](mailto:[email protected]).
165168

166169
If you have found it worth your time, go ahead and give us a ★ on [our GitHub](https://github.com/clouddrove/terraform-aws-acm)!

README.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ usage : |-
5252
```hcl
5353
module "acm" {
5454
source = "git::https://github.com/clouddrove/terraform-aws-acm.git?ref=tags/0.12.1"
55-
name = "certificate
55+
name = "certificate"
5656
application = "clouddrove"
5757
environment = "test"
5858
label_order = ["environment", "name", "application"]

0 commit comments

Comments
 (0)