https://github.com/spirius/terraform-aws-acm
AWS ACM Certificate
https://github.com/spirius/terraform-aws-acm
Last synced: 3 months ago
JSON representation
AWS ACM Certificate
- Host: GitHub
- URL: https://github.com/spirius/terraform-aws-acm
- Owner: spirius
- License: mit
- Created: 2020-03-19T22:18:26.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-02-21T15:12:13.000Z (over 2 years ago)
- Last Synced: 2026-02-28T07:31:56.035Z (3 months ago)
- Language: HCL
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AWS ACM Certificate Terraform module
Terraform module which creates AWS ACM Certificate and validation Route53 records.
In some environments the route53 records might be in other AWS account, therfore module
requires `providers` attribute to be defined for certificate and for route53 records separately.
## Usage
### Route53 zone of records belongs to the same AWS account
```hcl
module "acm" {
source = "spirius/aws/acm"
version = "~> 2.0"
providers = {
aws = aws
aws.route53 = aws
}
domains = [
{
domain = "example.com"
zone_id = "XXX"
},
{
domain = "*.example.com"
zone_id = "XXX"
},
{
domain = "otherdomain.com"
zone_id = "YYY"
}
]
}
```
### Route53 zone of records belongs to the another AWS account
```hcl
provider "aws" {
alias = "second"
}
module "acm" {
source = "spirius/aws/acm"
version = "~> 2.0"
providers = {
aws = aws
aws.route53 = aws.second
}
domains = [
{
domain = "example.com"
zone_id = "XXX"
}
]
}
```