Skip to content

Commit f557c7b

Browse files
author
Sohan
authored
Merge pull request #5 from clouddrove/CD-118
fix bool
2 parents 50cb064 + 5f887ab commit f557c7b

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Here are some examples of how you can use this module in your inventory structur
7272
### ACM with DNS
7373
```hcl
7474
module "acm" {
75-
source = "git::https://github.com/clouddrove/terraform-aws-acm.git?ref=tags/0.12.1"
75+
source = "git::https://github.com/clouddrove/terraform-aws-acm.git?ref=tags/0.12.2"
7676
name = "certificate"
7777
application = "clouddrove"
7878
environment = "test"
@@ -87,7 +87,7 @@ module "acm" {
8787
### ACM with Email
8888
```hcl
8989
module "acm" {
90-
source = "git::https://github.com/clouddrove/terraform-aws-acm.git?ref=tags/0.12.1"
90+
source = "git::https://github.com/clouddrove/terraform-aws-acm.git?ref=tags/0.12.2"
9191
name = "certificate"
9292
application = "clouddrove"
9393
environment = "test"
@@ -102,7 +102,7 @@ module "acm" {
102102
### ACM with Import Certificate
103103
```hcl
104104
module "acm" {
105-
source = "git::https://github.com/clouddrove/terraform-aws-acm.git?ref=tags/0.12.1"
105+
source = "git::https://github.com/clouddrove/terraform-aws-acm.git?ref=tags/0.12.2"
106106
name = "certificate"
107107
application = "clouddrove"
108108
environment = "test"
@@ -128,7 +128,7 @@ module "acm" {
128128
| certificate_body | Path of certificate body. | string | `~` | no |
129129
| certificate_chain | Path of certificate chain. | string | `` | no |
130130
| delimiter | Delimiter to be used between `organization`, `environment`, `name` and `attributes`. | string | `-` | no |
131-
| domain_name | A domain name for which the certificate should be issued. | string | - | yes |
131+
| domain_name | A domain name for which the certificate should be issued. | string | `` | no |
132132
| enable_acm_certificate | Set to false to prevent the creation of a acm certificate. | string | `true` | no |
133133
| enable_aws_certificate | Set to false to prevent the creation of a acm certificate. | bool | `false` | no |
134134
| enable_dns_validation | Set to prevent validation of DNS. | string | `false` | no |
@@ -140,7 +140,7 @@ module "acm" {
140140
| tags | Additional tags (e.g. map(`BusinessUnit`,`XYZ`). | map | `<map>` | no |
141141
| ttl | Time to live. | number | `600` | no |
142142
| validate_certificate | Set to false to prevent the validation of a acm certificate. | string | `false` | no |
143-
| validation_method | Which method to use for validation, DNS or EMAIL. | string | - | yes |
143+
| validation_method | Which method to use for validation, DNS or EMAIL. | string | `` | no |
144144

145145
## Outputs
146146

README.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ usage : |-
3636
### ACM with DNS
3737
```hcl
3838
module "acm" {
39-
source = "git::https://github.com/clouddrove/terraform-aws-acm.git?ref=tags/0.12.1"
39+
source = "git::https://github.com/clouddrove/terraform-aws-acm.git?ref=tags/0.12.2"
4040
name = "certificate"
4141
application = "clouddrove"
4242
environment = "test"
@@ -51,7 +51,7 @@ usage : |-
5151
### ACM with Email
5252
```hcl
5353
module "acm" {
54-
source = "git::https://github.com/clouddrove/terraform-aws-acm.git?ref=tags/0.12.1"
54+
source = "git::https://github.com/clouddrove/terraform-aws-acm.git?ref=tags/0.12.2"
5555
name = "certificate"
5656
application = "clouddrove"
5757
environment = "test"
@@ -66,7 +66,7 @@ usage : |-
6666
### ACM with Import Certificate
6767
```hcl
6868
module "acm" {
69-
source = "git::https://github.com/clouddrove/terraform-aws-acm.git?ref=tags/0.12.1"
69+
source = "git::https://github.com/clouddrove/terraform-aws-acm.git?ref=tags/0.12.2"
7070
name = "certificate"
7171
application = "clouddrove"
7272
environment = "test"

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ resource "aws_acm_certificate" "import-cert" {
3434
# Description : This terraform module is used for requesting or importing SSL/TLS
3535
# certificate with validation.
3636
resource "aws_acm_certificate" "cert" {
37-
count = var.enable_acm_certificate && var.enable_aws_certificate == false ? 1 : 0
37+
count = var.enable_acm_certificate && var.enable_aws_certificate ? 1 : 0
3838

3939
domain_name = var.domain_name
4040
validation_method = var.validation_method

variables.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,13 @@ variable "tags" {
4747
variable "domain_name" {
4848
type = string
4949
description = "A domain name for which the certificate should be issued."
50+
default = ""
5051
}
5152

5253
variable "validation_method" {
5354
type = string
5455
description = "Which method to use for validation, DNS or EMAIL."
56+
default = ""
5557
}
5658

5759
variable "enable_dns_validation" {

0 commit comments

Comments
 (0)