Provider Configuration Not Inherited When Using Abstract Components and Context Provider · Issue #1143 · cloudposse/atmos · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When inheriting an abstract component (demo) with a providers configuration in the Cloud Posse demo(the demo itself does not inherit but rather override), the name: petset value from the abstract component is not merged into the final providers configuration of the inheriting component. Other variables (e.g., pet: "dog") are inherited, but the name field from the context provider is missing.
Expected Behavior
The providers section should deep-merge the name: petset from the abstract component and the environment: dev from the stack, resulting in:
# yaml-language-server: $schema=https://atmos.tools/schemas/atmos/atmos-manifest/1.0/atmos-manifest.jsonimport:
- ../_defaults
- catalog/demo
- mixins/west-coastterraform:
providers:
context:
values:
environment: devsupport_email: dev-support@acme.comcomponents:
terraform:
demo-new: # this was `demo` in original demometadata:
inherits: # this was missing in the original demo
- demotype: realvars:
size: 3
Run atmos describe component demo -s deploy/dev.
Observe that the name: petset value is missing in the providers.context.values section.
Screenshots
No response
Environment
OS: Linux/macOS (tested in Cloud Posse demo environment)
Atmos Version: 1.165.2+
Context Provider Configuration: same as in the demo
Additional Context
No response
The text was updated successfully, but these errors were encountered:
Describe the Bug
When inheriting an abstract component (
demo
) with aproviders
configuration in the Cloud Posse demo(the demo itself does not inherit but rather override), thename: petset
value from the abstract component is not merged into the finalproviders
configuration of the inheriting component. Other variables (e.g.,pet: "dog"
) are inherited, but thename
field from thecontext
provider is missing.Expected Behavior
The
providers
section should deep-merge thename: petset
from the abstract component and theenvironment: dev
from the stack, resulting in:Steps to Reproduce
Define the abstract component (
catalog/demo.yaml
):Define the stack (
deploy/dev/demo.yaml
):Run
atmos describe component demo -s deploy/dev
.Observe that the
name: petset
value is missing in theproviders.context.values
section.Screenshots
No response
Environment
OS: Linux/macOS (tested in Cloud Posse demo environment)
Atmos Version: 1.165.2+
Context Provider Configuration: same as in the demo
Additional Context
No response
The text was updated successfully, but these errors were encountered: