Skip to content

WIP: Implement aws terraform peering#353

Open
BillAnastasiadis wants to merge 1 commit intoSUSE:mainfrom
BillAnastasiadis:aws_qesap_peering
Open

WIP: Implement aws terraform peering#353
BillAnastasiadis wants to merge 1 commit intoSUSE:mainfrom
BillAnastasiadis:aws_qesap_peering

Conversation

@BillAnastasiadis
Copy link
Collaborator

This ticket optionally adds the resources/logic necessary for AWS IBSM peering in qe-sap-deployment (terraform).

To test this manually, run qe-sap-deployment locally using an AWS config file from a job that uses ibsm peering, and simply add the ibsm_vpc_id variable to it, in the terraform variables section. After running terraform apply, peering between the node(s) and ibsm should be immediately functional.

depends_on = [aws_vpc_peering_connection.ibsm]
}

resource "aws_route" "from_ibsm_" {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
resource "aws_route" "from_ibsm_" {
resource "aws_route" "from_ibsm" {

route_table_id = aws_route_table.route-table.id
destination_cidr_block = data.aws_vpc.ibsm[0].cidr_block
vpc_peering_connection_id = aws_vpc_peering_connection.ibsm[0].id
depends_on = [aws_vpc_peering_connection.ibsm]
Copy link
Collaborator

Choose a reason for hiding this comment

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

try to remove

depends_on = [aws_vpc_peering_connection.ibsm]

destination_cidr_block = local.vpc_address_range
vpc_peering_connection_id = aws_vpc_peering_connection.ibsm[0].id

lifecycle {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thanks for the explanation you give me off line https://developer.hashicorp.com/terraform/language/meta-arguments/lifecycle

We can try to survive without it maybe, please try to remove it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants