Closed
Description
Have a question? Please checkout our Slack Community or visit our Slack Archive.
Describe the Feature
# catalog/eks/baseline
components:
terraform:
datadog-agent:
metadata:
component: eks/datadog-agent
vars:
enabled: true
name: datadog-agent
example:
metadata:
component: eks/datadog-agent
vars:
enabled: true
name: exampleWhat we do currently which returns datadog-agent and example components in ue1-dev
# ue1-dev.yaml
import:
- catalog/eks/baselineThis could prefix components with the same baseline which would return eks-new/datadog-agent and eks-new/example components in ue2-dev
# ue2-dev.yaml
import:
- files:
- catalog/eks/baseline
component_prefix: eks-new
# vars:
# environment: ue2Expected Behavior
Prefix component names from a catalog and/or override vars
Use Case
Add eks baseline multiple times without having to create duplicate baselines with new prefixes
Describe Ideal Solution
See above
Alternatives Considered
Status quo of duplicating baseline files
Additional Context
N/A
Metadata
Metadata
Assignees
Labels
No labels
Activity
osterman commentedon Jan 20, 2023
Also, could be implemented using #267
osterman commentedon Jan 20, 2023
I like this syntax, borrowed/inspired from "Home Assistant"
This is
orgs/acme/plat/dev/us-east-1.yaml, which deploys 2 EKS clusters, blue and green.This is
catalog/eks/cluster.yamlaknysh commentedon Jan 20, 2023
yes, this is a good idea. It can be implemented like the following:
importskeyword to have the following schema:We have
import, but we don't want to change it for backwards compatibilityGotemplates into all files. If those files are imported, we process the templates with he data frominput/contextmax-lobur commentedon Jan 27, 2023
Posting my proposal for reference https://cloudposse.slack.com/archives/CA4TC65HS/p1674832541932279
max-lobur commentedon Jan 27, 2023
"Ansible-style" yaml for atmos
note that vars defined on root level vars map (these are kind of global vars), and component level maps are both available at the component level. Both vars maps are self-defining - the map is rendered using itself:
Then we basically define component templates in a catalog, and only importing catalog + customizing vars down the tree. And of course you can still override the whole component like currently
I tried to put all possible relations in the example. Note how description is defined on top level uses name where name doesn’t exist yet. It means whenever you try to instantiate a component without name defined you will get a template error (undefined variable). So you can write templates using some variables that you assume will be defined later, in stack, in region, or down to component specific vars. In this way we can also standardize tags sets etc.
fix(security): remediate 4 more Dependabot alerts in website deps
fix(agent-skills): track the Claude Code plugin version via Version T…