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
  - acmpca-iam-rolesanywhere: ignore *.crt and *.csr
  • Loading branch information
badra001 committed Aug 1, 2025
1 parent fef6071 commit 6cf9a2d
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@

* 1.2.4 -- 2025-08-01
- acmpca: add creation of certs/.gitignore containing *.key

- acmpca-iam-rolesanywhere: ignore *.crt and *.csr
2 changes: 2 additions & 0 deletions acmpca-iam-rolesanywhere/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ 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 @@ -118,6 +119,7 @@ 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: 12 additions & 0 deletions acmpca-iam-rolesanywhere/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,15 @@ 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"
}
}

0 comments on commit 6cf9a2d

Please sign in to comment.