Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Corrected variable names to be used effectively.
  • Loading branch information
DJKaswa committed Mar 17, 2022
commit 740d446906a40aeec22eff85dcbc208a800b92a5
2 changes: 1 addition & 1 deletion -inputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ variable "input_tags" {
default = {}
}

variable "acm_certificate_name" {
variable "acm_domain_name" {
description = "Name of the certificate to be used in AWS ACM"
type = string
}
Expand Down
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ principal creating the resource has access.
### Example Usage:
```
# Variables definition

variable "acm_certificate_name" {
description = "Certificate name prefix which will be trailed by the hosted-zone name"
type = list(string)
Expand All @@ -17,8 +18,8 @@ variable "hosted_zone_name" {
type = string
}

acm_domain_name = ["engineering", "sales"]
hosted_zone_name = "example.com"
acm_certificate_name = ["engineering", "sales"]
hosted_zone_name = "example.com"
```
```
data "aws_route53_zone" "hosted_zone_id" {
Expand All @@ -28,6 +29,7 @@ data "aws_route53_zone" "hosted_zone_id" {
```
```
# Module call

module "new_record_and_certificate" {
source = "github.com/StratusGrid/terraform-aws-acm-certificate-creation"

Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Certificate creation
resource "aws_acm_certificate" "acm_module_certificate" {
domain_name = var.acm_certificate_name
domain_name = var.acm_domain_name
validation_method = "DNS"

tags = local.local_tags
Expand Down