|
1 | 1 | locals { |
2 | 2 | # The default state key is PREFIX + REPOSITORY_NAME + .tfstate |
3 | | - default_state_key = format("arn:aws:s3:::%s-tfstate/%s%s.tfstate", local.tf_state_bucket, var.name, local.tf_state_suffix) |
| 3 | + default_state_key = format("arn:aws:s3:::%s-tfstate/%s%s.tfstate", local.tf_state_bucket, local.repository_name, local.tf_state_suffix) |
4 | 4 | # Is the default state lock file key |
5 | | - default_state_lock_file_key = format("arn:aws:s3:::%s-tfstate/%s%s.tfstate.tflock", local.tf_state_bucket, var.name, local.tf_state_suffix) |
| 5 | + default_state_lock_file_key = format("arn:aws:s3:::%s-tfstate/%s%s.tfstate.tflock", local.tf_state_bucket, local.repository_name, local.tf_state_suffix) |
6 | 6 |
|
7 | 7 | # The default state prefix when using the entire namespace is PREFIX + REPOSITORY_NAME + /* |
8 | | - default_state_namespace_key = format("arn:aws:s3:::%s-tfstate/%s%s/*", local.tf_state_bucket, var.name, local.tf_state_suffix) |
| 8 | + default_state_namespace_key = format("arn:aws:s3:::%s-tfstate/%s%s/*", local.tf_state_bucket, local.repository_name, local.tf_state_suffix) |
9 | 9 | # The prefix for the lock file |
10 | | - default_state_namespace_lock_file_key = format("arn:aws:s3:::%s-tfstate/%s%s/*.tfstate.tflock", local.tf_state_bucket, var.name, local.tf_state_suffix) |
| 10 | + default_state_namespace_lock_file_key = format("arn:aws:s3:::%s-tfstate/%s%s/*.tfstate.tflock", local.tf_state_bucket, local.repository_name, local.tf_state_suffix) |
11 | 11 |
|
12 | 12 | # Is the prefix for the terraform state key, by default this is PREFIX + REPOSITORY_NAME + .tfstate. |
13 | 13 | # However, when the entire namespace is enabled, this is PREFIX + REPOSITORY_NAME + /* |
|
0 commit comments