Skip to content

Conversation

@mrobinson1022
Copy link
Contributor

Added support for private CA acm certificates

Description

Added the following attribute and corresponding variable:

certificate_authority_arn = var.private_authority_arn
variable "private_authority_arn" {
  description = "Private Certificate Authority ARN for issuing private certificates"
  type        = string
  default     = null
}

Motivation and Context

This allows the module to be used for private CA's to issue ACM certificates.

Breaking Changes

There should be no breaking change with this. The variable default is null so not having it declared should not result in any changes.

How Has This Been Tested?

  • I have updated at least one of the examples/* to demonstrate and validate my change(s)
  • I have tested and validated these changes using one or more of the provided examples/* projects
  • I have executed pre-commit run -a on my pull request

added example for private CA
@mrobinson1022 mrobinson1022 changed the title feat: add support for private ca certs feat: Add support for private ca certs Apr 8, 2025
@rsi-mrobinson
Copy link

@bryantbiggs Let me know if you have any questions/changes for this PR

.gitignore Outdated
# Ignore CLI configuration files
.terraformrc
terraform.rc
.qodo
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please remove

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

tags = local.tags
}

resource "aws_acmpca_certificate_authority" "root_ca" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are expensive - since this is a single attribute change, we can forgo the example in this case.

please remove the new example

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed

validation_method = var.validation_method
key_algorithm = var.key_algorithm

certificate_authority_arn = var.private_authority_arn
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like this is valid since v3.32 so no provider version bump required hashicorp/terraform-provider-aws#10213

@mrobinson1022
Copy link
Contributor Author

@bryantbiggs I made the requested updates

Copy link
Member

@bryantbiggs bryantbiggs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you!

@bryantbiggs bryantbiggs merged commit f5dffc6 into terraform-aws-modules:master Jun 5, 2025
9 checks passed
antonbabenko pushed a commit that referenced this pull request Jun 5, 2025
## [5.2.0](v5.1.1...v5.2.0) (2025-06-05)

### Features

* Add support for private CA certificates ([#155](#155)) ([f5dffc6](f5dffc6))
@antonbabenko
Copy link
Member

This PR is included in version 5.2.0 🎉

@github-actions
Copy link

github-actions bot commented Jul 6, 2025

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 6, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants