Skip to content

Commit

Permalink
Add SNS to architecture diagram and output SNS topic ARN (#218)
Browse files Browse the repository at this point in the history
* SNS topic ARN output
* Add SNS to diagram
* terraform-docs: automated action
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
paulschwarzenberger authored Aug 20, 2024
1 parent bd4fc1a commit 6067ef5
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
Binary file modified docs/assets/images/ca-architecture-options.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/assets/images/ca-architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,11 @@
|------|-------------|
| <a name="output_ca_bundle_s3_location"></a> [ca\_bundle\_s3\_location](#output\_ca\_bundle\_s3\_location) | S3 location of CA bundle for use as a TrustStore |
| <a name="output_cloudfront_domain_name"></a> [cloudfront\_domain\_name](#output\_cloudfront\_domain\_name) | Domain name of CloudFront distribution used for public CRL |
| <a name="output_external_s3_bucket_name"></a> [external\_s3\_bucket\_name](#output\_external\_s3\_bucket\_name) | External S3 bucket name |
| <a name="output_internal_s3_bucket_name"></a> [internal\_s3\_bucket\_name](#output\_internal\_s3\_bucket\_name) | Internal S3 bucket name |
| <a name="output_issuing_ca_cert_s3_location"></a> [issuing\_ca\_cert\_s3\_location](#output\_issuing\_ca\_cert\_s3\_location) | S3 location of Issuing CA certificate file |
| <a name="output_issuing_ca_crl_s3_location"></a> [issuing\_ca\_crl\_s3\_location](#output\_issuing\_ca\_crl\_s3\_location) | S3 location of Issuing CA CRL file |
| <a name="output_root_ca_cert_s3_location"></a> [root\_ca\_cert\_s3\_location](#output\_root\_ca\_cert\_s3\_location) | S3 location of Root CA certificate file |
| <a name="output_root_ca_crl_s3_location"></a> [root\_ca\_crl\_s3\_location](#output\_root\_ca\_crl\_s3\_location) | S3 location of Root CA CRL file |
| <a name="output_sns_topic_arn"></a> [sns\_topic\_arn](#output\_sns\_topic\_arn) | SNS topic ARN |
<!-- END_TF_DOCS -->
15 changes: 15 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,16 @@ output "ca_bundle_s3_location" {
description = "S3 location of CA bundle for use as a TrustStore"
}

output "external_s3_bucket_name" {
value = module.external_s3.s3_bucket_name
description = "External S3 bucket name"
}

output "internal_s3_bucket_name" {
value = module.internal_s3.s3_bucket_name
description = "Internal S3 bucket name"
}

output "issuing_ca_cert_s3_location" {
value = contains(var.prod_envs, var.env) ? "${module.external_s3.s3_bucket_domain_name}/${var.project}-issuing-ca.crt" : "${module.external_s3.s3_bucket_domain_name}/${var.project}-issuing-ca-${var.env}.crt"
description = "S3 location of Issuing CA certificate file"
Expand All @@ -27,3 +37,8 @@ output "root_ca_crl_s3_location" {
value = contains(var.prod_envs, var.env) ? "${module.external_s3.s3_bucket_domain_name}/${var.project}-root-ca.crl" : "${module.external_s3.s3_bucket_domain_name}/${var.project}-root-ca-${var.env}.crl"
description = "S3 location of Root CA CRL file"
}

output "sns_topic_arn" {
value = module.sns-ca-notifications.sns_topic_arn
description = "SNS topic ARN"
}

0 comments on commit 6067ef5

Please sign in to comment.