Skip to content

Commit

Permalink
* 1.2.4 -- 2025-08-01
Browse files Browse the repository at this point in the history
  - acmpca: add creation of certs/.gitignore containing *.key *.csr *.crt
  • Loading branch information
badra001 committed Aug 1, 2025
1 parent 6cf9a2d commit e18fd4b
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 16 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,4 @@
- add acmpca-iam-rolesanywhere example

* 1.2.4 -- 2025-08-01
- acmpca: add creation of certs/.gitignore containing *.key
- acmpca-iam-rolesanywhere: ignore *.crt and *.csr
- acmpca: add creation of certs/.gitignore containing *.key *.csr *.crt
2 changes: 0 additions & 2 deletions acmpca-iam-rolesanywhere/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ certificate_subject = {
| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.0 |
| <a name="provider_null"></a> [null](#provider\_null) | >= 3.1.0 |

## Modules

Expand All @@ -119,7 +118,6 @@ certificate_subject = {

| Name | Type |
|------|------|
| [null_resource.ignore](https://registry.terraform.io/providers/hashicorp/null/latest/docs/resources/resource) | resource |
| [aws_arn.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/arn) | data source |
| [aws_caller_identity.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/caller_identity) | data source |
| [aws_region.current](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/region) | data source |
Expand Down
12 changes: 0 additions & 12 deletions acmpca-iam-rolesanywhere/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -130,15 +130,3 @@ module "certificate" {
var.tags,
)
}

resource "null_resource" "ignore" {
triggers = {
directory = dirname(module.certificate.certificate_filenames.certificate)
}
provisioner "local-exec" {
command = "echo '*.csr' >> ${self.triggers.directory}/.gitignore"
}
provisioner "local-exec" {
command = "echo '*.crt' >> ${self.triggers.directory}/.gitignore"
}
}
6 changes: 6 additions & 0 deletions acmpca/certificate.tf
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,12 @@ resource "null_resource" "output_directory" {
provisioner "local-exec" {
command = "echo '*.key' >> ${local.output_file_directory}/.gitignore"
}
provisioner "local-exec" {
command = "echo '*.crt' >> ${local.output_file_directory}/.gitignore"
}
provisioner "local-exec" {
command = "echo '*.csr' >> ${local.output_file_directory}/.gitignore"
}
}

locals {
Expand Down

0 comments on commit e18fd4b

Please sign in to comment.