-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
skip: update autotest for peering-connection, launch, kafka
- Loading branch information
1 parent
24fa4b4
commit 5ff88e1
Showing
11 changed files
with
46 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 3 additions & 7 deletions
10
auto_policy_testing/green/peering-connection/peering_connection.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,10 @@ | ||
resource "aws_vpc_peering_connection" "this" { | ||
peer_owner_id = data.aws_caller_identity.this.account_id | ||
peer_vpc_id = aws_vpc.vpc1.id | ||
vpc_id = aws_vpc.vpc2.id | ||
peer_vpc_id = data.terraform_remote_state.common.outputs.vpc_id | ||
vpc_id = aws_vpc.vpc.id | ||
auto_accept = true | ||
} | ||
|
||
resource "aws_vpc" "vpc1" { | ||
resource "aws_vpc" "vpc" { | ||
cidr_block = "10.1.0.0/16" | ||
} | ||
|
||
resource "aws_vpc" "vpc2" { | ||
cidr_block = "10.2.0.0/16" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
resource "aws_security_group" "this" { | ||
name = module.naming.resource_prefix.security_group | ||
vpc_id = aws_vpc.this.id | ||
tags = { | ||
Name = "${module.naming.resource_prefix.security_group}" | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
data "aws_ami" "this" { | ||
most_recent = true | ||
owners = ["amazon"] | ||
|
||
filter { | ||
name = "name" | ||
values = ["amzn2-ami-hvm*"] | ||
name = "name" | ||
values = ["amzn2-ami-hvm*"] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 4 additions & 9 deletions
13
auto_policy_testing/red/peering-connection/peering_connection.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
resource "aws_vpc_peering_connection" "this" { | ||
peer_owner_id = data.aws_caller_identity.this.account_id | ||
peer_vpc_id = aws_vpc.vpc1.id | ||
vpc_id = aws_vpc.vpc2.id | ||
auto_accept = true | ||
provider = aws.provider2 | ||
peer_owner_id = data.aws_caller_identity.this.account_id | ||
peer_vpc_id = data.terraform_remote_state.common.outputs.vpc_id | ||
vpc_id = aws_vpc.vpc.id | ||
} | ||
|
||
resource "aws_vpc" "vpc1" { | ||
cidr_block = "10.1.0.0/16" | ||
} | ||
|
||
resource "aws_vpc" "vpc2" { | ||
resource "aws_vpc" "vpc" { | ||
cidr_block = "10.2.0.0/16" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters