Skip to content

Commit

Permalink
key algorithm deprecated fix, tls >= 3.2.0 (#19)
Browse files Browse the repository at this point in the history
* tls >= 3.2.0

* remove key_algorithm

* update outputs

* update README.md
  • Loading branch information
cageyv authored Apr 25, 2022
1 parent 5e57dc2 commit 0186ed8
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 16 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,13 +198,14 @@ module "vpn" {
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.15 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | ~> 4.0 |
| <a name="requirement_tls"></a> [tls](#requirement\_tls) | >= 3.2.0 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | ~> 4.0 |
| <a name="provider_tls"></a> [tls](#provider\_tls) | n/a |
| <a name="provider_tls"></a> [tls](#provider\_tls) | >= 3.2.0 |

## Modules

Expand Down Expand Up @@ -254,11 +255,11 @@ No modules.

| Name | Description |
|------|-------------|
| <a name="output_ec2_client_vpn_endpoint_arn"></a> [ec2\_client\_vpn\_endpoint\_arn](#output\_ec2\_client\_vpn\_endpoint\_arn) | n/a |
| <a name="output_ec2_client_vpn_endpoint_id"></a> [ec2\_client\_vpn\_endpoint\_id](#output\_ec2\_client\_vpn\_endpoint\_id) | n/a |
| <a name="output_ec2_client_vpn_network_associations"></a> [ec2\_client\_vpn\_network\_associations](#output\_ec2\_client\_vpn\_network\_associations) | n/a |
| <a name="output_security_group_description"></a> [security\_group\_description](#output\_security\_group\_description) | n/a |
| <a name="output_security_group_id"></a> [security\_group\_id](#output\_security\_group\_id) | n/a |
| <a name="output_security_group_name"></a> [security\_group\_name](#output\_security\_group\_name) | n/a |
| <a name="output_security_group_vpc_id"></a> [security\_group\_vpc\_id](#output\_security\_group\_vpc\_id) | n/a |
| <a name="output_ec2_client_vpn_endpoint_arn"></a> [ec2\_client\_vpn\_endpoint\_arn](#output\_ec2\_client\_vpn\_endpoint\_arn) | The ARN of the Client VPN endpoint |
| <a name="output_ec2_client_vpn_endpoint_id"></a> [ec2\_client\_vpn\_endpoint\_id](#output\_ec2\_client\_vpn\_endpoint\_id) | The ID of the Client VPN endpoint |
| <a name="output_ec2_client_vpn_network_associations"></a> [ec2\_client\_vpn\_network\_associations](#output\_ec2\_client\_vpn\_network\_associations) | Network associations for AWS Client VPN endpoint |
| <a name="output_security_group_description"></a> [security\_group\_description](#output\_security\_group\_description) | Security group description |
| <a name="output_security_group_id"></a> [security\_group\_id](#output\_security\_group\_id) | A map of tags to add to all resources |
| <a name="output_security_group_name"></a> [security\_group\_name](#output\_security\_group\_name) | Name of the security group |
| <a name="output_security_group_vpc_id"></a> [security\_group\_vpc\_id](#output\_security\_group\_vpc\_id) | VPC ID |
<!-- END_TF_DOCS -->
1 change: 0 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ resource "tls_private_key" "this" {
}

resource "tls_self_signed_cert" "this" {
key_algorithm = tls_private_key.this.algorithm
private_key_pem = tls_private_key.this.private_key_pem
subject {
common_name = var.tls_subject_common_name
Expand Down
21 changes: 14 additions & 7 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -1,27 +1,34 @@
output "security_group_id" {
value = aws_security_group.this.id
description = "A map of tags to add to all resources"
value = aws_security_group.this.id
}

output "security_group_name" {
value = aws_security_group.this.name
description = "Name of the security group"
value = aws_security_group.this.name
}

output "security_group_description" {
value = aws_security_group.this.description
description = "Security group description"
value = aws_security_group.this.description
}

output "security_group_vpc_id" {
value = aws_security_group.this.vpc_id
description = "VPC ID"
value = aws_security_group.this.vpc_id
}

output "ec2_client_vpn_endpoint_id" {
value = aws_ec2_client_vpn_endpoint.this_sso.id
description = "The ID of the Client VPN endpoint"
value = aws_ec2_client_vpn_endpoint.this_sso.id
}

output "ec2_client_vpn_endpoint_arn" {
value = aws_ec2_client_vpn_endpoint.this_sso.arn
description = "The ARN of the Client VPN endpoint"
value = aws_ec2_client_vpn_endpoint.this_sso.arn
}

output "ec2_client_vpn_network_associations" {
value = aws_ec2_client_vpn_network_association.this_sso
description = "Network associations for AWS Client VPN endpoint"
value = aws_ec2_client_vpn_network_association.this_sso
}
4 changes: 4 additions & 0 deletions versions.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,9 @@ terraform {
source = "hashicorp/aws"
version = "~> 4.0"
}
tls = {
source = "hashicorp/tls"
version = ">= 3.2.0"
}
}
}

0 comments on commit 0186ed8

Please sign in to comment.