Skip to content

Commit

Permalink
archive old ec2, and new ec2 setup
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Apr 19, 2023
1 parent a574d43 commit 5bf11bc
Show file tree
Hide file tree
Showing 41 changed files with 41 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions examples/vpcN-ec2-test-instance/instances.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
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
instance_count = 1
subnet_filters = { "tag:boc:vpc:subnet_label" = ["apps"] }
}
4 changes: 4 additions & 0 deletions examples/vpcN-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_VPC.outputs
vpc_id = local.vpc_outputs.vpc_id
}
28 changes: 28 additions & 0 deletions examples/vpcN-ec2-test-instance/tf-run.data
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
VERSION 1.2.2
REMOTE-STATE
COMMAND tf-directory-setup.py -l none -f
COMMAND setup-new-directory.sh
COMMAND tf-init -upgrade
LINK variables.vpc.auto.tfvars
LINK variables.vpc.tf

LINKTOP includes.d/variables.account_tags.tf
LINKTOP includes.d/variables.account_tags.auto.tfvars
LINKTOP includes.d/variables.infrastructure_tags.tf
LINKTOP includes.d/variables.infrastructure_tags.auto.tfvars
LINKTOP includes.d/variables.application_tags.tf
LINKTOP includes.d/variables.application_tags.auto.tfvars

LINKTOP provider_configs.d/provider.ldap_new.auto.tfvars
LINKTOP provider_configs.d/provider.ldap_new.tf
LINKTOP provider_configs.d/provider.ldap_new.variables.tf

ALL

COMMAND tf-directory-setup.py -l s3

COMMENT Execute for create:
COMMENT ./setup/manage-git-secret.sh add
COMMENT Execute for destroy:
COMMENT ./setup/manage-git-secret.sh remove
COMMENT followed by the appropriate git commands to commit and create a PR

0 comments on commit 5bf11bc

Please sign in to comment.