Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quickstart: region mixin #402

Open
hans-d opened this issue Jul 5, 2023 · 0 comments
Open

Quickstart: region mixin #402

hans-d opened this issue Jul 5, 2023 · 0 comments
Labels
bug 🐛 An issue with the system

Comments

@hans-d
Copy link
Contributor

hans-d commented Jul 5, 2023

Describe the Bug

The quickstart provides an exampe for the vpc component with region mixin.
When generating the vars, the vars from the region mixin are not included.

Expected Behavior

region vars included

Steps to Reproduce

Follow the quickstart

Screenshots

In `stacks/mixins/region/us-west-2.yaml`, add the following config:
```yaml title="stacks/mixins/region/us-west-2.yaml"
vars:
region: us-west-2
environment: uw2
components:
terraform:
vpc:
metadata:
component: infra/vpc
vars:
availability_zones:
- us-west-2a
- us-west-2b
- us-west-2c
```

In `stacks/orgs/acme/core/dev/us-east-2.yaml`, add the following config:
```yaml title="stacks/orgs/acme/core/dev/us-east-2.yaml"
# Import the region mixin, the defaults, and the base component configurations from the `catalog`.
# `import` supports POSIX-style Globs for file names/paths (double-star `**` is supported).
# File extensions are optional (if not specified, `.yaml` is used by default).
import:
- mixins/region/us-east-2
- orgs/acme/core/dev/_defaults
- catalog/vpc
- catalog/vpc-flow-logs-bucket
components:
terraform:
vpc-flow-logs-bucket-1:
metadata:
# Point to the Terraform component in `components/terraform` folder
component: infra/vpc-flow-logs-bucket
inherits:
# Inherit all settings and variables from the
# `vpc-flow-logs-bucket/defaults` base Atmos component
- vpc-flow-logs-bucket/defaults
vars:
# Define variables that are specific for this component
# and are not set in the base component
name: vpc-flow-logs-bucket-1
# Override the default variables from the base component
traffic_type: "REJECT"
vpc-1:
metadata:
# Point to the Terraform component in `components/terraform` folder
component: infra/vpc
inherits:
# Inherit all settings and variables from the `vpc/defaults` base Atmos component
- vpc/defaults
vars:

Environment

No response

Additional Context

When changing the "vpc" in the regions mixin to "vpc-1", the vars from the region mixin are included in the generated vars.

@hans-d hans-d added the bug 🐛 An issue with the system label Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 An issue with the system
Projects
None yet
Development

No branches or pull requests

1 participant