I'm trying to migrate from the old null-label modu...
# atmos
u
I'm trying to migrate from the old null-label module to the new context provider/data sources. Here's an example of what I'm attempting:
Copy code
data "context_config" "this" {}
data "context_label" "this" {}

module "this" {
  source  = "cloudposse/vpc/aws"
  version = "~> 2.2.0"

  context = data.context_label.this

  ipv4_primary_cidr_block         = "10.16.0.0/20"
  assign_generated_ipv6_cidr_block = false
}
Is this an officially supported usage pattern? Can I inject
data.context_label.this
(or even
data.context_config.this
) directly into the
context
input of the VPC module? Are there any pitfalls, edge cases, or recommendations for making this work smoothly? I want to ensure I benefit from all the new provider's features and maintain compatibility with official CloudPosse modules with Atmos.
e
this is the conundrum we've faced
we came up with the most beautiful pattern using the context provider
But adopting it in our module ecosystem is non-trivial. so we're stuck.
We don't want to force a major release. and it's radical enough that many won't "get it" right away, why it's cool.
I know it's not the answer you probably wanted to hear....
We have customers using this, but they are managing their own modules and infra on GCP and Azure
✅ 1