From a86e5770a84c6f6df2088e3771ae17340c621e91 Mon Sep 17 00:00:00 2001 From: badra001 Date: Tue, 30 Jan 2024 11:22:25 -0500 Subject: [PATCH] add subrepo --- examples/subrepo/vpc/REGION/remote_state.yml | 9 +++++++ examples/subrepo/vpc/REGION/tf-run.data | 18 ++++++++++++++ examples/subrepo/vpc/REGION/tf-run.vpc.data | 19 ++++++++++++++ examples/subrepo/vpc/REGION/vpcN/tf-run.data | 26 ++++++++++++++++++++ examples/vpc-region-shared-setup/tf-run.data | 11 +++++++-- 5 files changed, 81 insertions(+), 2 deletions(-) create mode 100644 examples/subrepo/vpc/REGION/remote_state.yml create mode 100644 examples/subrepo/vpc/REGION/tf-run.data create mode 100644 examples/subrepo/vpc/REGION/tf-run.vpc.data create mode 100644 examples/subrepo/vpc/REGION/vpcN/tf-run.data diff --git a/examples/subrepo/vpc/REGION/remote_state.yml b/examples/subrepo/vpc/REGION/remote_state.yml new file mode 100644 index 0000000..c354093 --- /dev/null +++ b/examples/subrepo/vpc/REGION/remote_state.yml @@ -0,0 +1,9 @@ +directory: "applications/adsd-eks/vpc/west" +profile: "107742151971-do2-govcloud" +bucket: "inf-tfstate-107742151971" +bucket_region: "us-gov-west-1" +region: "us-gov-west-1" +regions: ["us-gov-west-1"] +account_id: "107742151971" +account_alias: "do2-govcloud" +aws_environment: "gov" diff --git a/examples/subrepo/vpc/REGION/tf-run.data b/examples/subrepo/vpc/REGION/tf-run.data new file mode 100644 index 0000000..227e867 --- /dev/null +++ b/examples/subrepo/vpc/REGION/tf-run.data @@ -0,0 +1,18 @@ +VERSION 2.0.0 +REMOTE-STATE +COMMAND tf-directory-setup.py -l none -f + +TAG links +LINKTOP outputs.common.tf +LINKTOP common/remote_state.common.tf . +LINKTOP variables.d/variables.common.tf +LINKTOP variables.d/variables.tfstate.tf + +TAG init +COMMAND tf-init + +TAG start +ALL + +TAG state-link +COMMAND tf-directory-setup.py -l s3 diff --git a/examples/subrepo/vpc/REGION/tf-run.vpc.data b/examples/subrepo/vpc/REGION/tf-run.vpc.data new file mode 100644 index 0000000..38f3f7c --- /dev/null +++ b/examples/subrepo/vpc/REGION/tf-run.vpc.data @@ -0,0 +1,19 @@ +VERSION 2.0.2 +REMOTE-STATE +COMMAND tf-directory-setup.py -l none -f +COMMAND setup-new-directory.sh +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 +COMMAND rm -f provider.ldap.* +COMMAND tf-init + +#POLICY +ALL +COMMAND tf-directory-setup.py -l s3 diff --git a/examples/subrepo/vpc/REGION/vpcN/tf-run.data b/examples/subrepo/vpc/REGION/vpcN/tf-run.data new file mode 100644 index 0000000..e428100 --- /dev/null +++ b/examples/subrepo/vpc/REGION/vpcN/tf-run.data @@ -0,0 +1,26 @@ +VERSION 2.0.3 +REMOTE-STATE +COMMAND tf-directory-setup.py -l none -f +COMMAND setup-new-directory.sh + +TAG links +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 +COMMAND rm -f provider.ldap.* + +TAG init +COMMAND tf-init + +TAG start +#POLICY +ALL + +TAG state-link +COMMAND tf-directory-setup.py -l s3 diff --git a/examples/vpc-region-shared-setup/tf-run.data b/examples/vpc-region-shared-setup/tf-run.data index ea54249..53059ff 100644 --- a/examples/vpc-region-shared-setup/tf-run.data +++ b/examples/vpc-region-shared-setup/tf-run.data @@ -1,8 +1,9 @@ -VERSION 1.3.1 +VERSION 1.4.0 REMOTE-STATE COMMAND tf-directory-setup.py -l none -f COMMAND setup-new-directory.sh -COMMAND tf-init -upgrade + +TAG links LINKTOP includes.d/variables.account_tags.tf LINKTOP includes.d/variables.account_tags.auto.tfvars @@ -13,8 +14,14 @@ LINKTOP includes.d/variables.application_tags.auto.tfvars LINKTOP common/remote_state.common.tf LINKTOP infrastructure/%%SHORT_REGION%%/remote_state.infrastructure_%%SHORT_REGION%%.tf +TAG init +COMMAND tf-init + # module.subnet_tags # module.sg_web module.base-security-groups +TAG start ALL + +TAG state-link COMMAND tf-directory-setup.py -l s3