Skip to content

Commit

Permalink
Merge pull request #316 from lorengordon/cgw-create-before-destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
lorengordon authored Dec 20, 2023
2 parents fd02beb + f5ee63b commit c7d9f34
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .bumpversion.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[bumpversion]
current_version = 3.0.0
current_version = 3.0.1
commit = True
message = Bumps version to {new_version}
tag = False
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

### [3.0.1](https://github.com/plus3it/terraform-aws-tardigrade-vpn-connection/releases/tag/3.0.1)

**Released**: 2023.12.20

**Summary**:

* Creates customer gateway before destroying old one to fix issues when changes
require recreation
* Requires minimum terraform aws provider 5.31.0 to support `log_group_class`
attribute on cloudwatch log group

### 3.0.0

**Released**: 2023.12.09
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,13 @@ make mockstack/clean
| Name | Version |
|------|---------|
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 0.12 |
| <a name="requirement_aws"></a> [aws](#requirement\_aws) | >= 5.31.0 |

## Providers

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | n/a |
| <a name="provider_aws"></a> [aws](#provider\_aws) | >= 5.31.0 |

## Resources

Expand Down
4 changes: 4 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ resource "aws_customer_gateway" "this" {
"Name" = var.vpn_connection.customer_gateway.name
},
)

lifecycle {
create_before_destroy = true
}
}

resource "aws_vpn_connection_route" "this" {
Expand Down
7 changes: 7 additions & 0 deletions versions.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
terraform {
required_version = ">= 0.12"

required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 5.31.0"
}
}
}

0 comments on commit c7d9f34

Please sign in to comment.