Michael Dizon
03/08/2022, 8:21 PMmake all there's no make file in that directory.Erik Osterman (Cloud Posse)
03/09/2022, 4:58 PMErik Osterman (Cloud Posse)
03/09/2022, 4:58 PMErik Osterman (Cloud Posse)
03/09/2022, 4:58 PMErik Osterman (Cloud Posse)
03/09/2022, 4:58 PMErik Osterman (Cloud Posse)
03/09/2022, 4:58 PMmake init firstMichael Dizon
03/09/2022, 5:01 PMErik Osterman (Cloud Posse)
03/09/2022, 7:22 PMMichael Dizon
03/09/2022, 7:25 PMAndriy Knysh (Cloud Posse)
03/09/2022, 7:37 PMErik Osterman (Cloud Posse)
03/09/2022, 8:37 PMatmos is concerned, the components must "exist". How they get there is flexible.
1. Copy them in manually and commit to VCS (which is what we do)
2. Use vendir to pull them in from remote sources. We want to get there, we will be building this into atmos natively. vendir is the best alternative today.
3. Use git submodules and make sure to run git clone --recurse-submodulesMichael Dizon
03/11/2022, 3:39 PMdocker run ?Andriy Knysh (Cloud Posse)
03/11/2022, 3:40 PMMichael Dizon
03/11/2022, 3:55 PMMichael Dizon
03/11/2022, 3:55 PM########################################################################################
# No filesystem is mounted at /localhost which limits Geodesic functionality.
# EXIT THIS SHELL and on your host computer,
# run the following to install the script that runs
# Geodesic with all its features (the recommended way to use Geodesic):
#
# docker run --rm cloudposse/geodesic:latest-debian init | bash
#
# After that, you should be able to launch Geodesic just by typing
#
# geodesic
#`Andriy Knysh (Cloud Posse)
03/11/2022, 3:59 PMAndriy Knysh (Cloud Posse)
03/11/2022, 4:03 PMdocker exec or docker attach https://docs.docker.com/engine/reference/commandline/attach/ (attach is what I do in IntelliJ IDEA)Erik Osterman (Cloud Posse)
03/23/2022, 5:35 AMMichael Dizon
03/23/2022, 12:51 PMAndriy Knysh (Cloud Posse)
03/23/2022, 2:43 PMMichael Dizon
03/23/2022, 2:52 PMMichael Dizon
03/27/2022, 9:08 PMaccount-map in the terraform-aws-components repo. when i run atmos terraform plan account-map -s tenant1-ue1-dev i get the following error:
│ Error: open ../../../stacks/tenant1-ue1-dev.yaml: no such file or directory
│
│ with module.accounts.module.backend_config.data.utils_stack_config_yaml.config,
│ on .terraform/modules/accounts/modules/backend/main.tf line 8, in data "utils_stack_config_yaml" "config":
│ 8: data "utils_stack_config_yaml" "config" {
│Michael Dizon
03/27/2022, 9:10 PMatmos.yml, stacks and components are in the same directory levelMichael Dizon
03/27/2022, 9:45 PMAndriy Knysh (Cloud Posse)
03/28/2022, 3:44 AMutils provider which is used in remote-state - we’ll have to look at terraform-aws-components component’s filesAndriy Knysh (Cloud Posse)
03/28/2022, 3:45 AMgbl environment (not in ue1) since those are global and not region-specificMichael Dizon
04/04/2022, 7:48 PMstack_name_pattern to the config for account-map resolve the issue i'm encountering?Andriy Knysh (Cloud Posse)
04/04/2022, 7:49 PMstack_name_pattern is just for Spacelift, to name Spacelift stacks (not related to anything else)Andriy Knysh (Cloud Posse)
04/04/2022, 7:50 PMMichael Dizon
04/04/2022, 7:56 PMutils provider in remote-state https://sweetops.slack.com/archives/CB84E9V54/p1648415337485669?thread_ts=1646770874.240219&cid=CB84E9V54Andriy Knysh (Cloud Posse)
04/04/2022, 7:57 PMatmos.yaml config https://github.com/cloudposse/atmos/blob/master/atmos.yaml#L1Michael Dizon
04/04/2022, 8:01 PMMichael Dizon
04/04/2022, 8:03 PMtenant1/ue1/dev.yamlMichael Dizon
04/04/2022, 8:03 PMtenant1-ue1-dev.yamlAndriy Knysh (Cloud Posse)
04/04/2022, 8:09 PMMichael Dizon
04/04/2022, 8:10 PMatmos.yaml in the same location as in the exampleAndriy Knysh (Cloud Posse)
04/04/2022, 8:13 PMatmos describe config, you should see the config defined in your atmos.yamlMichael Dizon
04/04/2022, 8:13 PMcomponents and stacks, you mentioned last week that it looks like there's an error in the utils provider, and i'm wondering if that's still the case. I see that the remote-state module is referencing 0.19.0 is that the correct version for the latest version of atmos?Michael Dizon
04/04/2022, 8:15 PMatmos describe config
{
"base_path": "",
"Components": {
"Terraform": {
"base_path": "./components/terraform",
"apply_auto_approve": false,
"deploy_run_init": true,
"auto_generate_backend_file": true
},
"Helmfile": {
"base_path": "components/helmfile",
"kubeconfig_path": "/dev/shm",
"helm_aws_profile_pattern": "{namespace}-{tenant}-gbl-{stage}-helm",
"cluster_name_pattern": "{namespace}-{tenant}-{environment}-{stage}-eks-cluster"
}
},
"Stacks": {
"base_path": "./stacks",
"included_paths": [
"**/*"
],
"excluded_paths": [
"globals/**/*",
"catalog/**/*",
"**/*globals*"
],
"name_pattern": "{tenant}-{environment}-{stage}"
},
"Workflows": {
"base_path": "./workflows"
},
"Logs": {
"verbose": false,
"colors": true
}
}Michael Dizon
04/04/2022, 8:17 PMAndriy Knysh (Cloud Posse)
04/04/2022, 8:17 PMI see that themodule is referencingremote-stateis that the correct version for the latest version of atmos?0.19.0
Andriy Knysh (Cloud Posse)
04/04/2022, 8:17 PMMichael Dizon
04/04/2022, 8:18 PMAndriy Knysh (Cloud Posse)
04/04/2022, 8:18 PMMichael Dizon
04/04/2022, 8:18 PMMichael Dizon
04/04/2022, 8:18 PMAndriy Knysh (Cloud Posse)
04/04/2022, 8:18 PMstack_config_local_path = "../../../stacks"Andriy Knysh (Cloud Posse)
04/04/2022, 8:19 PMMichael Dizon
04/04/2022, 8:19 PMAndriy Knysh (Cloud Posse)
04/04/2022, 8:21 PMatmos.yaml in one of the supported locationsAndriy Knysh (Cloud Posse)
04/04/2022, 8:21 PMAndriy Knysh (Cloud Posse)
04/04/2022, 8:21 PMatmos.yaml can’t be in the root of the repoMichael Dizon
04/04/2022, 8:22 PMAndriy Knysh (Cloud Posse)
04/04/2022, 8:22 PM/usr/local/etc/atmos/atmos.yamlMichael Dizon
04/04/2022, 8:22 PMAndriy Knysh (Cloud Posse)
04/04/2022, 8:24 PMMichael Dizon
04/04/2022, 8:28 PMatmos directory in etc . After moving atmos.yaml to that directory, I'm ran into the following error
╷
│ Error:
│ No stack config files found in the provided paths:
│ - /localhost/Code/xxx/testing/components/terraform/account-map/stacks/**/*
│
│
│ Check if `base_path`, 'stacks.base_path', 'stacks.included_paths' and 'stacks.excluded_paths' are correctly set in CLI config files or ENV vars.
│
│ with module.accounts.data.utils_component_config.config,
│ on .terraform/modules/accounts/modules/remote-state/main.tf line 1, in data "utils_component_config" "config":
│ 1: data "utils_component_config" "config" {Michael Dizon
04/04/2022, 8:31 PMMichael Dizon
04/04/2022, 8:32 PMAndriy Knysh (Cloud Posse)
04/04/2022, 8:55 PM# Base path for components and stacks configurations.
# Can also be set using `ATMOS_BASE_PATH` ENV var, or `--base-path` command-line argument.
# Supports both absolute and relative paths.
# If not provided or is an empty string, `components.terraform.base_path`, `components.helmfile.base_path` and `stacks.base_path`
# are independent settings (supporting both absolute and relative paths).
# If `base_path` is provided, `components.terraform.base_path`, `components.helmfile.base_path` and `stacks.base_path`
# are considered paths relative to `base_path`.
base_path: ""
components:
# Settings for all terraform components
terraform:
# Can also be set using `ATMOS_COMPONENTS_TERRAFORM_BASE_PATH` ENV var, or `--terraform-dir` command-line argument
# Supports both absolute and relative paths
base_path: "components/terraform"Michael Dizon
04/16/2022, 5:02 PMMichael Dizon
04/16/2022, 5:02 PM