diff --git a/examples/ec2-vpc-region-vpcN-new/apps/test-instances/.gitignore b/examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/.gitignore similarity index 100% rename from examples/ec2-vpc-region-vpcN-new/apps/test-instances/.gitignore rename to examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/.gitignore diff --git a/examples/ec2-vpc-region-vpcN-new/apps/test-instances/.terraform-docs.yml b/examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/.terraform-docs.yml similarity index 100% rename from examples/ec2-vpc-region-vpcN-new/apps/test-instances/.terraform-docs.yml rename to examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/.terraform-docs.yml diff --git a/examples/ec2-vpc-region-vpcN-new/apps/test-instances/README.md b/examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/README.md similarity index 100% rename from examples/ec2-vpc-region-vpcN-new/apps/test-instances/README.md rename to examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/README.md diff --git a/examples/ec2-vpc-region-vpcN-new/apps/test-instances/data.tf b/examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/data.tf similarity index 100% rename from examples/ec2-vpc-region-vpcN-new/apps/test-instances/data.tf rename to examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/data.tf diff --git a/examples/ec2-vpc-region-vpcN-new/apps/test-instances/ec2-keypair.tf b/examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/ec2-keypair.tf similarity index 100% rename from examples/ec2-vpc-region-vpcN-new/apps/test-instances/ec2-keypair.tf rename to examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/ec2-keypair.tf diff --git a/examples/ec2-vpc-region-vpcN-new/apps/test-instances/ec2-role.tf b/examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/ec2-role.tf similarity index 100% rename from examples/ec2-vpc-region-vpcN-new/apps/test-instances/ec2-role.tf rename to examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/ec2-role.tf diff --git a/examples/ec2-vpc-region-vpcN-new/apps/test-instances/ec2.tf b/examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/ec2.tf similarity index 100% rename from examples/ec2-vpc-region-vpcN-new/apps/test-instances/ec2.tf rename to examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/ec2.tf diff --git a/examples/ec2-vpc-region-vpcN-new/apps/test-instances/ec2.tf.example b/examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/ec2.tf.example similarity index 100% rename from examples/ec2-vpc-region-vpcN-new/apps/test-instances/ec2.tf.example rename to examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/ec2.tf.example diff --git a/examples/ec2-vpc-region-vpcN-new/apps/test-instances/install-ssm.sh b/examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/install-ssm.sh similarity index 100% rename from examples/ec2-vpc-region-vpcN-new/apps/test-instances/install-ssm.sh rename to examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/install-ssm.sh diff --git a/examples/ec2-vpc-region-vpcN-new/apps/test-instances/locals.tf b/examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/locals.tf similarity index 100% rename from examples/ec2-vpc-region-vpcN-new/apps/test-instances/locals.tf rename to examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/locals.tf diff --git a/examples/ec2-vpc-region-vpcN-new/apps/test-instances/settings.auto.tfvars b/examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/settings.auto.tfvars similarity index 100% rename from examples/ec2-vpc-region-vpcN-new/apps/test-instances/settings.auto.tfvars rename to examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/settings.auto.tfvars diff --git a/examples/ec2-vpc-region-vpcN-new/apps/test-instances/settings.tf b/examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/settings.tf similarity index 100% rename from examples/ec2-vpc-region-vpcN-new/apps/test-instances/settings.tf rename to examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/settings.tf diff --git a/examples/ec2-vpc-region-vpcN-new/apps/test-instances/show-tunnel-status.sh b/examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/show-tunnel-status.sh similarity index 100% rename from examples/ec2-vpc-region-vpcN-new/apps/test-instances/show-tunnel-status.sh rename to examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/show-tunnel-status.sh diff --git a/examples/ec2-vpc-region-vpcN-new/apps/test-instances/templates/test-ips.txt.tpl b/examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/templates/test-ips.txt.tpl similarity index 100% rename from examples/ec2-vpc-region-vpcN-new/apps/test-instances/templates/test-ips.txt.tpl rename to examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/templates/test-ips.txt.tpl diff --git a/examples/ec2-vpc-region-vpcN-new/apps/test-instances/test-ping.sh b/examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/test-ping.sh similarity index 100% rename from examples/ec2-vpc-region-vpcN-new/apps/test-instances/test-ping.sh rename to examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/test-ping.sh diff --git a/examples/ec2-vpc-region-vpcN-new/apps/test-instances/test-ssh.sh b/examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/test-ssh.sh similarity index 100% rename from examples/ec2-vpc-region-vpcN-new/apps/test-instances/test-ssh.sh rename to examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/test-ssh.sh diff --git a/examples/ec2-vpc-region-vpcN-new/apps/test-instances/tf-run.data b/examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/tf-run.data similarity index 100% rename from examples/ec2-vpc-region-vpcN-new/apps/test-instances/tf-run.data rename to examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/tf-run.data diff --git a/examples/ec2-vpc-region-vpcN-new/apps/test-instances/variables.tf b/examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/variables.tf similarity index 100% rename from examples/ec2-vpc-region-vpcN-new/apps/test-instances/variables.tf rename to examples/ATTIC/ec2-vpc-region-vpcN-new/apps/test-instances/variables.tf diff --git a/examples/ec2-vpc-region-vpcN/apps/README.md b/examples/ATTIC/ec2-vpc-region-vpcN/apps/README.md similarity index 100% rename from examples/ec2-vpc-region-vpcN/apps/README.md rename to examples/ATTIC/ec2-vpc-region-vpcN/apps/README.md diff --git a/examples/ec2-vpc-region-vpcN/apps/region.tf b/examples/ATTIC/ec2-vpc-region-vpcN/apps/region.tf similarity index 100% rename from examples/ec2-vpc-region-vpcN/apps/region.tf rename to examples/ATTIC/ec2-vpc-region-vpcN/apps/region.tf diff --git a/examples/ec2-vpc-region-vpcN/apps/test-instances/.gitignore b/examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/.gitignore similarity index 100% rename from examples/ec2-vpc-region-vpcN/apps/test-instances/.gitignore rename to examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/.gitignore diff --git a/examples/ec2-vpc-region-vpcN/apps/test-instances/.terraform-docs.yml b/examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/.terraform-docs.yml similarity index 100% rename from examples/ec2-vpc-region-vpcN/apps/test-instances/.terraform-docs.yml rename to examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/.terraform-docs.yml diff --git a/examples/ec2-vpc-region-vpcN/apps/test-instances/README.md b/examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/README.md similarity index 100% rename from examples/ec2-vpc-region-vpcN/apps/test-instances/README.md rename to examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/README.md diff --git a/examples/ec2-vpc-region-vpcN/apps/test-instances/data.tf b/examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/data.tf similarity index 100% rename from examples/ec2-vpc-region-vpcN/apps/test-instances/data.tf rename to examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/data.tf diff --git a/examples/ec2-vpc-region-vpcN/apps/test-instances/ec2-keypair.tf b/examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/ec2-keypair.tf similarity index 100% rename from examples/ec2-vpc-region-vpcN/apps/test-instances/ec2-keypair.tf rename to examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/ec2-keypair.tf diff --git a/examples/ec2-vpc-region-vpcN/apps/test-instances/ec2-role.tf b/examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/ec2-role.tf similarity index 100% rename from examples/ec2-vpc-region-vpcN/apps/test-instances/ec2-role.tf rename to examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/ec2-role.tf diff --git a/examples/ec2-vpc-region-vpcN/apps/test-instances/ec2.tf b/examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/ec2.tf similarity index 100% rename from examples/ec2-vpc-region-vpcN/apps/test-instances/ec2.tf rename to examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/ec2.tf diff --git a/examples/ec2-vpc-region-vpcN/apps/test-instances/locals.tf b/examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/locals.tf similarity index 100% rename from examples/ec2-vpc-region-vpcN/apps/test-instances/locals.tf rename to examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/locals.tf diff --git a/examples/ec2-vpc-region-vpcN/apps/test-instances/settings.auto.tfvars b/examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/settings.auto.tfvars similarity index 100% rename from examples/ec2-vpc-region-vpcN/apps/test-instances/settings.auto.tfvars rename to examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/settings.auto.tfvars diff --git a/examples/ec2-vpc-region-vpcN/apps/test-instances/settings.tf b/examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/settings.tf similarity index 100% rename from examples/ec2-vpc-region-vpcN/apps/test-instances/settings.tf rename to examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/settings.tf diff --git a/examples/ec2-vpc-region-vpcN/apps/test-instances/show-tunnel-status.sh b/examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/show-tunnel-status.sh similarity index 100% rename from examples/ec2-vpc-region-vpcN/apps/test-instances/show-tunnel-status.sh rename to examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/show-tunnel-status.sh diff --git a/examples/ec2-vpc-region-vpcN/apps/test-instances/templates/test-ips.txt.tpl b/examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/templates/test-ips.txt.tpl similarity index 100% rename from examples/ec2-vpc-region-vpcN/apps/test-instances/templates/test-ips.txt.tpl rename to examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/templates/test-ips.txt.tpl diff --git a/examples/ec2-vpc-region-vpcN/apps/test-instances/test-ips.txt.tpl b/examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/test-ips.txt.tpl similarity index 100% rename from examples/ec2-vpc-region-vpcN/apps/test-instances/test-ips.txt.tpl rename to examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/test-ips.txt.tpl diff --git a/examples/ec2-vpc-region-vpcN/apps/test-instances/test-ping.sh b/examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/test-ping.sh similarity index 100% rename from examples/ec2-vpc-region-vpcN/apps/test-instances/test-ping.sh rename to examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/test-ping.sh diff --git a/examples/ec2-vpc-region-vpcN/apps/test-instances/test-ssh.sh b/examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/test-ssh.sh similarity index 100% rename from examples/ec2-vpc-region-vpcN/apps/test-instances/test-ssh.sh rename to examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/test-ssh.sh diff --git a/examples/ec2-vpc-region-vpcN/apps/test-instances/tf-run.data b/examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/tf-run.data similarity index 100% rename from examples/ec2-vpc-region-vpcN/apps/test-instances/tf-run.data rename to examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/tf-run.data diff --git a/examples/ec2-vpc-region-vpcN/apps/test-instances/variables.tf b/examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/variables.tf similarity index 100% rename from examples/ec2-vpc-region-vpcN/apps/test-instances/variables.tf rename to examples/ATTIC/ec2-vpc-region-vpcN/apps/test-instances/variables.tf diff --git a/examples/ec2-vpc-region-vpcN/apps/tf-run.data b/examples/ATTIC/ec2-vpc-region-vpcN/apps/tf-run.data similarity index 100% rename from examples/ec2-vpc-region-vpcN/apps/tf-run.data rename to examples/ATTIC/ec2-vpc-region-vpcN/apps/tf-run.data diff --git a/examples/vpcN-ec2-test-instance/instances.tf b/examples/vpcN-ec2-test-instance/instances.tf new file mode 100644 index 0000000..1d7d253 --- /dev/null +++ b/examples/vpcN-ec2-test-instance/instances.tf @@ -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"] } +} diff --git a/examples/vpcN-ec2-test-instance/locals.tf b/examples/vpcN-ec2-test-instance/locals.tf new file mode 100644 index 0000000..60a58b5 --- /dev/null +++ b/examples/vpcN-ec2-test-instance/locals.tf @@ -0,0 +1,4 @@ +locals { + vpc_outputs = data.terraform_remote_state.vpc_SHORTREGION_VPC.outputs + vpc_id = local.vpc_outputs.vpc_id +} diff --git a/examples/vpcN-ec2-test-instance/tf-run.data b/examples/vpcN-ec2-test-instance/tf-run.data new file mode 100644 index 0000000..c39aac2 --- /dev/null +++ b/examples/vpcN-ec2-test-instance/tf-run.data @@ -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