Skip to content

Commit

Permalink
Update example v1.5.0 (#488)
Browse files Browse the repository at this point in the history
* Update example v1.5.0

* Update changelog v1.5.0

* update changelog for v1.5.0

* add net-tools

* update examples
  • Loading branch information
rjouhann authored May 3, 2023
1 parent 9214216 commit 953165f
Show file tree
Hide file tree
Showing 48 changed files with 84 additions and 92 deletions.
33 changes: 33 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,36 @@
## 1.5.0 (May 3, 2023)

BREAKING CHANGES:

* Prefix Order and Community fields are deprecated in packetfabric_cloud_router_bgp_session resource and data-source (#436)

FEATURES:

* resource: [UPDATED] packetfabric_cloud_router_connection_aws - adding cloud side provisioning (#436)
* resource: [UPDATED] packetfabric_cloud_router_connection_google - adding cloud side provisioning (#436)
* data-source: packetfabric_cloud_router_connection (#486)

IMPROVEMENTS/ENHANCEMENTS:

* Provide AWS Direct Connect Connection ID in AWS Hosted Cloud and Cloud Router Connection resources (#484)
* Make google_vlan_attachment_name optional when Cloud Settings are used for google hosted cloud (#415)
* Add check/error when user try to update port_circuit_id in Backbone VC resource (#479)
* Add check/error when user try to update cloud settings which cannot be updated-in-place in AWS and Google Hosted Cloud resources (#436)
* Use circuit ID + "-data" for the following data-sources's IDs instead of a random uuid (#436)
* packetfabric_cloud_router_bgp_session
* packetfabric_cloud_router_connection_ipsec
* packetfabric_cloud_router_connections
* packetfabric_cs_aws_hosted_connection
* packetfabric_cs_azure_hosted_connection
* packetfabric_cs_google_hosted_connection
* packetfabric_cs_ibm_hosted_connection
* packetfabric_cs_oracle_hosted_connection
* packetfabric_cs_hosted_connection_router_config
* packetfabric_link_aggregation_group
* packetfabric_port_router_logs
* packetfabric_port_vlans
* Automate creation of the Release Note from changelog (#478)

## 1.4.0 (April 19, 2023)

BREAKING CHANGES:
Expand Down
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ terraform {
required_providers {
packetfabric = {
source = "PacketFabric/packetfabric"
version = ">= 1.4.0"
version = ">= 1.5.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/provider/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
packetfabric = {
source = "PacketFabric/packetfabric"
version = ">= 1.4.0"
version = ">= 1.5.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/test.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
required_providers {
packetfabric = {
source = "PacketFabric/packetfabric"
version = ">= 1.4.0"
version = ">= 1.5.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/use-cases/backbone_virtual_circuit/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Ensure you have installed the following prerequisites:

Ensure you have the following items available:

- [Packet Fabric Billing Account](https://docs.packetfabric.com/api/examples/account_uuid/)
- [PacketFabric Billing Account](https://docs.packetfabric.com/api/examples/account_uuid/)
- [PacketFabric API key](https://docs.packetfabric.com/admin/my_account/keys/)

## Quick start
Expand Down
2 changes: 1 addition & 1 deletion examples/use-cases/backbone_virtual_circuit/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
packetfabric = {
source = "PacketFabric/packetfabric"
version = ">= 1.4.0"
version = ">= 1.5.0"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion examples/use-cases/backbone_virtual_circuit_mesh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Ensure you have installed the following prerequisites:

Ensure you have the following items available:

- [Packet Fabric Billing Account](https://docs.packetfabric.com/api/examples/account_uuid/)
- [PacketFabric Billing Account](https://docs.packetfabric.com/api/examples/account_uuid/)
- [PacketFabric API key](https://docs.packetfabric.com/admin/my_account/keys/)

## Quick start
Expand Down
2 changes: 1 addition & 1 deletion examples/use-cases/backbone_virtual_circuit_mesh/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
packetfabric = {
source = "PacketFabric/packetfabric"
version = ">= 1.4.0"
version = ">= 1.5.0"
}
}
}
Expand Down
3 changes: 1 addition & 2 deletions examples/use-cases/cloud_router_aws/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ Terraform providers used: PacketFabric and AWS. This example uses AWS Private VI
- "aws_instance"
- "aws_eip"
- "aws_vpn_gateway"
- "aws_vpn_gateway_attachment"
- "aws_route_table"
- "aws_vpc"
- "aws_subnet"
Expand Down Expand Up @@ -55,7 +54,7 @@ Ensure you have the following items available:

- [AWS Account ID](https://docs.aws.amazon.com/IAM/latest/UserGuide/console_account-alias.html)
- [AWS Access and Secret Keys](https://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html)
- [Packet Fabric Billing Account](https://docs.packetfabric.com/api/examples/account_uuid/)
- [PacketFabric Billing Account](https://docs.packetfabric.com/api/examples/account_uuid/)
- [PacketFabric API key](https://docs.packetfabric.com/admin/my_account/keys/)
- [SSH Public Key](https://www.ssh.com/academy/ssh/keygen)

Expand Down
10 changes: 2 additions & 8 deletions examples/use-cases/cloud_router_aws/aws_dx_gateways.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ resource "aws_dx_gateway" "direct_connect_gw_1" {
name = "${var.resource_name}-${random_pet.name.id}-1"
amazon_side_asn = var.amazon_side_asn1
depends_on = [
aws_vpn_gateway_attachment.vpn_attachment_1
aws_vpn_gateway.vpn_gw_1
]
}
resource "aws_dx_gateway" "direct_connect_gw_2" {
provider = aws.region2
name = "${var.resource_name}-${random_pet.name.id}-2"
amazon_side_asn = var.amazon_side_asn2
depends_on = [
aws_vpn_gateway_attachment.vpn_attachment_2
aws_vpn_gateway.vpn_gw_2
]
}

Expand All @@ -22,9 +22,6 @@ resource "aws_dx_gateway_association" "virtual_private_gw_to_direct_connect_1" {
dx_gateway_id = aws_dx_gateway.direct_connect_gw_1.id
associated_gateway_id = aws_vpn_gateway.vpn_gw_1.id
# allowed_prefixes managed via BGP prefixes in configured in packetfabric_cloud_router_connection_aws
depends_on = [
aws_vpn_gateway_attachment.vpn_attachment_1
]
timeouts {
create = "2h"
delete = "2h"
Expand All @@ -35,9 +32,6 @@ resource "aws_dx_gateway_association" "virtual_private_gw_to_direct_connect_2" {
dx_gateway_id = aws_dx_gateway.direct_connect_gw_2.id
associated_gateway_id = aws_vpn_gateway.vpn_gw_2.id
# allowed_prefixes managed via BGP prefixes in configured in packetfabric_cloud_router_connection_aws
depends_on = [
aws_vpn_gateway_attachment.vpn_attachment_2
]
timeouts {
create = "2h"
delete = "2h"
Expand Down
40 changes: 3 additions & 37 deletions examples/use-cases/cloud_router_aws/aws_private_gateway.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,53 +2,19 @@
resource "aws_vpn_gateway" "vpn_gw_1" {
provider = aws
amazon_side_asn = var.amazon_side_asn1
vpc_id = aws_vpc.vpc_1.id
tags = {
Name = "${var.resource_name}-${random_pet.name.id}"
}
depends_on = [
aws_vpc.vpc_1
]
}
resource "aws_vpn_gateway_attachment" "vpn_attachment_1" {
provider = aws
vpc_id = aws_vpc.vpc_1.id
vpn_gateway_id = aws_vpn_gateway.vpn_gw_1.id
}
# To avoid the error conflicting pending workflow when deleting EC2 VPN Gateway Attachment during the destroy
resource "null_resource" "vpn_attachment_delay_1" {
triggers = {
vpn_attachment_id = aws_vpn_gateway_attachment.vpn_attachment_1.id
}

provisioner "local-exec" {
when = destroy
command = "sleep 300" # 5min
}
}

resource "aws_vpn_gateway" "vpn_gw_2" {
provider = aws.region2
amazon_side_asn = var.amazon_side_asn2
vpc_id = aws_vpc.vpc_2.id
tags = {
Name = "${var.resource_name}-${random_pet.name.id}"
}
depends_on = [
aws_vpc.vpc_2
]
}
resource "aws_vpn_gateway_attachment" "vpn_attachment_2" {
provider = aws.region2
vpc_id = aws_vpc.vpc_2.id
vpn_gateway_id = aws_vpn_gateway.vpn_gw_2.id
}
# To avoid the error conflicting pending workflow when deleting EC2 VPN Gateway Attachment during the destroy
resource "null_resource" "vpn_attachment_delay_2" {
triggers = {
vpn_attachment_id = aws_vpn_gateway_attachment.vpn_attachment_2.id
}

provisioner "local-exec" {
when = destroy
command = "sleep 300"
}
}
}
4 changes: 2 additions & 2 deletions examples/use-cases/cloud_router_aws/aws_route_table.tf
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ resource "aws_route_table" "route_table_1" {
}
# Need to wait for the private GW to be attached before adding it to the route table
depends_on = [
aws_vpn_gateway_attachment.vpn_attachment_1
aws_vpn_gateway.vpn_gw_1
]
}
resource "aws_route_table" "route_table_2" {
Expand All @@ -31,7 +31,7 @@ resource "aws_route_table" "route_table_2" {
}
# Need to wait for the private GW to be attached before adding it to the route table
depends_on = [
aws_vpn_gateway_attachment.vpn_attachment_2
aws_vpn_gateway.vpn_gw_2
]
}

Expand Down
2 changes: 1 addition & 1 deletion examples/use-cases/cloud_router_aws/user-data-ubuntu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ user="ubuntu"

# install nginx
sudo apt-get update
sudo apt-get -y install nginx iperf3 docker.io docker-compose
sudo apt-get -y install nginx iperf3 net-tools docker.io docker-compose
# make sure nginx is started
sudo service nginx start
# disable firewall
Expand Down
2 changes: 1 addition & 1 deletion examples/use-cases/cloud_router_aws_google/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Ensure you have the following items available:
- [AWS Account ID](https://docs.aws.amazon.com/IAM/latest/UserGuide/console_account-alias.html)
- [AWS Access and Secret Keys](https://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html)
- [Google Service Account](https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instances)
- [Packet Fabric Billing Account](https://docs.packetfabric.com/api/examples/account_uuid/)
- [PacketFabric Billing Account](https://docs.packetfabric.com/api/examples/account_uuid/)
- [PacketFabric API key](https://docs.packetfabric.com/admin/my_account/keys/)

## Quick start
Expand Down
2 changes: 1 addition & 1 deletion examples/use-cases/cloud_router_aws_google/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
packetfabric = {
source = "PacketFabric/packetfabric"
version = ">= 1.4.0"
version = ">= 1.5.0"
}
google = {
source = "hashicorp/google"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ user="ubuntu"

# install nginx
sudo apt-get update
sudo apt-get -y install nginx iperf3 docker.io docker-compose
sudo apt-get -y install nginx iperf3 net-tools docker.io docker-compose
# make sure nginx is started
sudo service nginx start
# disable firewall
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Ensure you have the following items available:
- [AWS Account ID](https://docs.aws.amazon.com/IAM/latest/UserGuide/console_account-alias.html)
- [AWS Access and Secret Keys](https://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html)
- [Google Service Account](https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instances)
- [Packet Fabric Billing Account](https://docs.packetfabric.com/api/examples/account_uuid/)
- [PacketFabric Billing Account](https://docs.packetfabric.com/api/examples/account_uuid/)
- [PacketFabric API key](https://docs.packetfabric.com/admin/my_account/keys/)

## Quick start
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ user="ubuntu"

# install nginx
sudo apt-get update
sudo apt-get -y install nginx iperf3 docker.io docker-compose
sudo apt-get -y install nginx iperf3 net-tools docker.io docker-compose
# make sure nginx is started
sudo service nginx start
# disable firewall
Expand Down
2 changes: 1 addition & 1 deletion examples/use-cases/cloud_router_aws_oracle_port/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Ensure you have the following items available:
- [AWS Account ID](https://docs.aws.amazon.com/IAM/latest/UserGuide/console_account-alias.html)
- [AWS Access and Secret Keys](https://docs.aws.amazon.com/general/latest/gr/aws-security-credentials.html)
- [Oracle Credentials](https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/terraformproviderconfiguration.htm)
- [Packet Fabric Billing Account](https://docs.packetfabric.com/api/examples/account_uuid/)
- [PacketFabric Billing Account](https://docs.packetfabric.com/api/examples/account_uuid/)
- [PacketFabric API key](https://docs.packetfabric.com/admin/my_account/keys/)

## Quick start
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
packetfabric = {
source = "PacketFabric/packetfabric"
version = ">= 1.4.0"
version = ">= 1.5.0"
}
aws = {
source = "hashicorp/aws"
Expand Down
2 changes: 1 addition & 1 deletion examples/use-cases/cloud_router_google_azure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Ensure you have the following items available:

- [Google Service Account](https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instances)
- [Microsoft Azure Credentials](https://docs.microsoft.com/en-us/azure/developer/terraform/authenticate-to-azure?tabs=bash)
- [Packet Fabric Billing Account](https://docs.packetfabric.com/api/examples/account_uuid/)
- [PacketFabric Billing Account](https://docs.packetfabric.com/api/examples/account_uuid/)
- [PacketFabric API key](https://docs.packetfabric.com/admin/my_account/keys/)

## Quick start
Expand Down
2 changes: 1 addition & 1 deletion examples/use-cases/cloud_router_google_azure/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
packetfabric = {
source = "PacketFabric/packetfabric"
version = ">= 1.4.0"
version = ">= 1.5.0"
}
google = {
source = "hashicorp/google"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ user="ubuntu"

# install nginx
sudo apt-get update
sudo apt-get -y install nginx iperf3 docker.io docker-compose
sudo apt-get -y install nginx iperf3 net-tools docker.io docker-compose
# make sure nginx is started
sudo service nginx start
# disable firewall
Expand Down
2 changes: 1 addition & 1 deletion examples/use-cases/cloud_router_google_ipsec/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Ensure you have the following items available:

- [Google Service Account](https://cloud.google.com/compute/docs/access/create-enable-service-accounts-for-instances)
- [IPsec information for the Site-to-Site VPN](https://docs.packetfabric.com/cr/vpn/)
- [Packet Fabric Billing Account](https://docs.packetfabric.com/api/examples/account_uuid/)
- [PacketFabric Billing Account](https://docs.packetfabric.com/api/examples/account_uuid/)
- [PacketFabric API key](https://docs.packetfabric.com/admin/my_account/keys/)

## Quick start
Expand Down
2 changes: 1 addition & 1 deletion examples/use-cases/cloud_router_google_ipsec/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
packetfabric = {
source = "PacketFabric/packetfabric"
version = ">= 1.4.0"
version = ">= 1.5.0"
}
google = {
source = "hashicorp/google"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ user="ubuntu"

# install nginx
sudo apt-get update
sudo apt-get -y install nginx iperf3 docker.io docker-compose
sudo apt-get -y install nginx iperf3 net-tools docker.io docker-compose
# make sure nginx is started
sudo service nginx start
# disable firewall
Expand Down
2 changes: 1 addition & 1 deletion examples/use-cases/cloud_router_ibm_oracle/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Ensure you have the following items available:

- [IBM Credentials](https://registry.terraform.io/providers/IBM-Cloud/ibm/latest/docs#environment-variables)
- [Oracle Credentials](https://docs.oracle.com/en-us/iaas/Content/API/SDKDocs/terraformproviderconfiguration.htm)
- [Packet Fabric Billing Account](https://docs.packetfabric.com/api/examples/account_uuid/)
- [PacketFabric Billing Account](https://docs.packetfabric.com/api/examples/account_uuid/)
- [PacketFabric API key](https://docs.packetfabric.com/admin/my_account/keys/)

## Quick start
Expand Down
2 changes: 1 addition & 1 deletion examples/use-cases/cloud_router_ibm_oracle/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
packetfabric = {
source = "PacketFabric/packetfabric"
version = ">= 1.4.0"
version = ">= 1.5.0"
}
ibm = {
source = "IBM-Cloud/ibm"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ user="ubuntu"

# install nginx
sudo apt-get update
sudo apt-get -y install nginx iperf3 docker.io docker-compose
sudo apt-get -y install nginx iperf3 net-tools docker.io docker-compose
# make sure nginx is started
sudo service nginx start
# disable firewall
Expand Down
2 changes: 1 addition & 1 deletion examples/use-cases/cloud_router_module/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Ensure you have installed the following prerequisites:
Ensure you have the following items available:

- [AWS Account ID](https://docs.aws.amazon.com/IAM/latest/UserGuide/console_account-alias.html)
- [Packet Fabric Billing Account](https://docs.packetfabric.com/api/examples/account_uuid/)
- [PacketFabric Billing Account](https://docs.packetfabric.com/api/examples/account_uuid/)
- [PacketFabric API key](https://docs.packetfabric.com/admin/my_account/keys/)

## Quick start
Expand Down
Loading

0 comments on commit 953165f

Please sign in to comment.