Skip to content

Commit

Permalink
Removes unnecessary resources from cross-account test
Browse files Browse the repository at this point in the history
  • Loading branch information
lorengordon committed Nov 10, 2024
1 parent 6a23568 commit 26942c9
Showing 1 changed file with 0 additions and 52 deletions.
52 changes: 0 additions & 52 deletions tests/cross_account/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -29,63 +29,11 @@ module "share" {

allow_external_principals = true

resources = [
{
name = "resolver-rule"
resource_arn = aws_route53_resolver_rule.this.arn
}
]

tags = {
Environment = "testing"
}
}

module "vpc" {
source = "github.com/terraform-aws-modules/terraform-aws-vpc?ref=v5.15.0"

name = "tardigrade-ram-${random_string.this.result}"
cidr = "10.0.0.0/16"
azs = ["us-east-1a", "us-east-1b"]
private_subnets = ["10.0.1.0/24", "10.0.2.0/24"]
}

resource "aws_security_group" "this" {
name = "empty_sg"
description = "empty_sg for testing"
vpc_id = module.vpc.vpc_id
}

resource "aws_route53_resolver_endpoint" "this" {
name = "tardigrade-resolver-${random_string.this.result}"
direction = "OUTBOUND"

security_group_ids = [
aws_security_group.this.id,
]

ip_address {
subnet_id = module.vpc.private_subnets[0]
ip = "10.0.1.4"
}

ip_address {
subnet_id = module.vpc.private_subnets[1]
ip = "10.0.2.8"
}
}

resource "aws_route53_resolver_rule" "this" {
domain_name = "${random_string.this.result}.com"
name = "tardigrate-rr-${random_string.this.result}"
rule_type = "FORWARD"
resolver_endpoint_id = aws_route53_resolver_endpoint.this.id

target_ip {
ip = "123.45.67.89"
}
}

resource "random_string" "this" {
length = 6
upper = false
Expand Down

0 comments on commit 26942c9

Please sign in to comment.