Any idea how can be renamed vars like `environment...
# atmos
m
Any idea how can be renamed vars like
environment
and
stage
? IE to
rgn
and
acc_name
They are used in
name_patern
and even if I use
name_template
, and redefine
terraform_workspace_pattern
it will still fails, as in underlying CP modules exist data sources like this which have pre-hardcoded var names. I tried a bunch of things, but looks like I can't set some setting like
environment: '{{ .vars.rgn }}'
and forget about it?
I can set in mixins
Copy code
region: us-west-2
environment: uw2
rgn: '{{ .vars.environment }}'
And it will works, but not otherwise I want to have bunch of
rgn
definitions near
region
and one
environment: '{{ .vars.rgn}}'
in _default.yaml if there is no way to avoid
environment
at all
e
Yes, so the crux of the problem is the
utils
provider which we are seldom investing in
We rather get it all into atmos itself rather than keep the provider in sync
There might be some quick/easy fix in the utils provider, and if you want to take a stab at it @Andriy Knysh (Cloud Posse) can review.
Also, I believe we have
terraform_workspace_template
now which uses the template vars instead of the legacy "pattern" interpolations which were hard coded.
a
the utils provider needs to be updated to the latest atmos version (it was not touched for awhile). We got a GH issue about that (don't remember if it was from you @Maksym Vlasov). In any case, the provider needs to be updated, we'll try to do it today/tomorrow
m
I see github.com/cloudposse/terraform-provider-utils not upgraded yet. Hope you'll find time this week
a
apologies, we will release it soon
❤️ 1
@Maksym Vlasov we wanted to release the utils provider yesterday, but atmos code was changed and broke some contracts. We opened a PR to Atmos to fix that, will cut a new Atmos release soon, then update the utils provider (all of this will probably take another day or two)
🙌 1
e
@Andriy Knysh (Cloud Posse) we can release it as part of 1.226.2
a
@Maksym Vlasov we have released the new utils provider github.com/cloudposse/terraform-provider-utils/…/v2.7.0 (uses the latest Atmos codebase). Please test it once it's in the terraform and tofu registries
👍 1
🙌 2
e
cc @Juan Aguero
party parrot 1
a
cc @RB