le-tf-infra-aws icon indicating copy to clipboard operation
le-tf-infra-aws copied to clipboard

BUG | Should key name be changed?

Open juanmatias opened this issue 1 year ago • 0 comments

Describe the Bug

The key name for cost-mgmt layer here is root/cost-mgmt/terraform.tfstate.

If downloading the layer to management account (where it is supposed to be), it produces an error:

[17:45:53.730] INFO     Found: 'root/cost-mgmt/terraform.tfstate'                                                                       
               INFO     Expected one of: management/cost-mgmt/terraform.tfstate;management/cost-mgmt-dr/terraform.tfstate;management/glo
                        bal/cost-mgmt/terraform.tfstate;management/global/cost-mgmt-dr/terraform.tfstate                                
[17:45:53.731] ERROR    ✘ FAILED 

Should we change it in the RefArch (and for the case look for other keys in the same situation)?

Expected Behavior

It not failing.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Download the layer to your project's management account
  2. Run leverage tf init

Additional Context

In a green-field binbash Leverage project, changing this key to start with management does not fail.

juanmatias avatar Feb 19 '24 20:02 juanmatias