Skip to content

Commit

Permalink
add subrepo
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Jan 30, 2024
1 parent e18d5bd commit a86e577
Show file tree
Hide file tree
Showing 5 changed files with 81 additions and 2 deletions.
9 changes: 9 additions & 0 deletions examples/subrepo/vpc/REGION/remote_state.yml
Original file line number Diff line number Diff line change
@@ -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"
18 changes: 18 additions & 0 deletions examples/subrepo/vpc/REGION/tf-run.data
Original file line number Diff line number Diff line change
@@ -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
19 changes: 19 additions & 0 deletions examples/subrepo/vpc/REGION/tf-run.vpc.data
Original file line number Diff line number Diff line change
@@ -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
26 changes: 26 additions & 0 deletions examples/subrepo/vpc/REGION/vpcN/tf-run.data
Original file line number Diff line number Diff line change
@@ -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
11 changes: 9 additions & 2 deletions examples/vpc-region-shared-setup/tf-run.data
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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

0 comments on commit a86e577

Please sign in to comment.