Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 21, 2023
1 parent 5bf11bc commit f74f2ce
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 13 deletions.
28 changes: 28 additions & 0 deletions examples/vpc-ec2-test-instance/instances.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## data "aws_subnets" "subnets" {
## filter {
## name = "vpc-id"
## values = [local.vpc_id]
## }
## filter {
## name = "tag:boc:vpc:subnet_label"
## values = ["apps"]
## }
## }
##
## data "aws_subnet" "subnets" {
## for_each = toset(data.aws_subnets.subnets.ids)
## id = each.key
## }

module "instances" {
source = "git@github.e.it.census.gov:terraform-modules/aws-ec2-test-instance.git"

account_alias = var.account_alias
vpc_id = local.vpc_outputs.vpc_id
vpc_domain_name = var.vpc_domain_name
availability_zones = []
instance_count = 1
# subnet_ids = tolist(data.aws_subnets.subnets.ids)
subnet_filters = { "tag:boc:vpc:subnet_label" = ["apps"] }
# subnet_filters = { "tag:boc:vpc:subnet_label" = ["apps"],"tag:Name" = ["*-db-*", "*-apps-*"] }
}
4 changes: 4 additions & 0 deletions examples/vpc-ec2-test-instance/locals.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
locals {
vpc_outputs = data.terraform_remote_state.vpc_SHORTREGION_VPCN.outputs
vpc_id = local.vpc_outputs.vpc_id
}
File renamed without changes.
13 changes: 13 additions & 0 deletions examples/vpc-ec2-test-instance/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
terraform {
required_version = ">= 1.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 4.55"
}
ldap = {
source = "trevex/ldap"
version = ">= 0.5.4"
}
}
}
9 changes: 0 additions & 9 deletions examples/vpcN-ec2-test-instance/instances.tf

This file was deleted.

4 changes: 0 additions & 4 deletions examples/vpcN-ec2-test-instance/locals.tf

This file was deleted.

0 comments on commit f74f2ce

Please sign in to comment.