Running 1.209.0. I get this error when trying to u...
# atmos
m
Running 1.209.0. I get this error when trying to use helmfile:
Copy code
WARN  helm_aws_profile_pattern is deprecated, use --identity flag instead

The config profile (core--gbl-tooling-helm) could not be found
i’m not using helm_aws_profile_pattern, but it seems to be picking it up from somewhere. Am i missing a config?
Copy code
components:
  terraform:
    base_path: "components/terraform"
    apply_auto_approve: false
    deploy_run_init: true
    init_run_reconfigure: true
    auto_generate_backend_file: true
  helmfile:
    base_path: "components/helmfile"
    cluster_name_template:  "core-{{ .vars.stage }}-{{ .vars.environment }}-app"
    helm_aws_profile_pattern: null
    use_eks: true
    kubeconfig_path: /tmp/{stage}-{environment}-kubeconfig
e
So the changes we made were specifically to address running it in environments that were non-AWS.
So it'd be really weird if it's erring with that.
Can I bug you to open up the issue, and we'll kick off co-pilot on it?
m
of course
e
@Michael can you help us test: https://github.com/cloudposse/atmos/pull/2211
m
Does this require Helmfile? We currently aren't using this functionality, so I might not be the best test candidate
e
oooh! sorry, wrong michael
@Michael Dizon can you help us test this PR 😃
m
sure
@Erik Osterman (Cloud Posse) how do i point to a branch in atmos again?
e
You can add
--use-version=2211
on your atmos command
m
is the bug being fixed with copilot?
e
yes
m
cool!
e
Let me know if that works for you.
If so, we'll get this merged.
m
i added a comment to the PR. not sure if it’s picking it up
e
ya, copilot is not accessible unless you are in the org
@Michael do you have
helm_aws_profile_pattern: "{namespace}-{tenant}-gbl-{stage}-helm"
defined in your atmos.yaml somewhere?
m
no, i'm pretty sure i removed it. i’ll check again when i get back to my computer
e
So this is the part I gotta understand: according to copilot, the default is null and therefore should not be interfering with anything. But if you don't have it set and this is still showing up, we have a different problem.
m
this is what i have in atmos.yaml
Copy code
components:
  terraform:
    base_path: "components/terraform"
    apply_auto_approve: false
    deploy_run_init: true
    init_run_reconfigure: true
    auto_generate_backend_file: true
  helmfile:
    base_path: "components/helmfile"
    cluster_name_template:  "core-{{ .vars.stage }}-{{ .vars.environment }}-app"
    helm_aws_profile_pattern: "{stage}-{region}"
    use_eks: true
    kubeconfig_path: /tmp/{stage}-{environment}-kubeconfig
when i comment it out i get a different error:
Copy code
26-03-17 9:50}MacBook-Pro-10:~/Code/maintainx/fedramp/atmos-infra-fedramp@master✗✗✗✗✗✗ mdizon% atmos helmfile diff wiz-k8s -s tooling-us-gov-west-1 --use-version=2211
✓ PR #2211 is up to date (sha: 89dbe62)
✓ Switching to Atmos version 2211
 WARN  helm_aws_profile_pattern is deprecated, use --identity flag instead

The config profile (core--gbl-tooling-helm) could not be found

   Error 

   Error: subcommand exited with code 255
e
And what version of atmos?
Oh, 209
m
i just updated
but i was passing the version in
e
This is the entirety of atmos.yaml config?
m
no
e
In the example there you're sharing, I see you have that deprecated parameter set.
m
Copy code
base_path: "./"

components:
  terraform:
    base_path: "components/terraform"
    apply_auto_approve: false
    deploy_run_init: true
    init_run_reconfigure: true
    auto_generate_backend_file: true
  helmfile:
    base_path: "components/helmfile"
    cluster_name_template:  "core-{{ .vars.stage }}-{{ .vars.environment }}-app"
    helm_aws_profile_pattern: "{stage}-{region}"
    use_eks: true
    kubeconfig_path: /tmp/{stage}-{environment}-kubeconfig

settings:
  templates:
    settings:
      env:
        AWS_CONFIG_FILE: config
      gomplate:
        timeout: 5
    list_merge_strategy: append
  list_merge_strategy: append

templates:
  settings:
    enabled: true
    evaluations: 1
    gomplate:
      enabled: true
      timeout: 5

stacks:
  base_path: "stacks"
  included_paths:
    - "stage/**/*"
  excluded_paths:
    - "**/_defaults.yaml"
    - "**/_defaults.tmpl"
  name_template: "{{.vars.stage}}-{{.vars.region}}"
  name_pattern: "{environment}-{stage}"



logs:
  file: "/dev/stderr"
  level: Warning # [Trace Debug Info Warning Off]

# Validation schemas (for validating atmos stacks and components)
schemas:
  # <https://json-schema.org>
  jsonschema:
    # Can also be set using 'ATMOS_SCHEMAS_JSONSCHEMA_BASE_PATH' ENV var, or '--schemas-jsonschema-dir' command-line arguments
    # Supports both absolute and relative paths
    base_path: "stacks/schemas/jsonschema"
  # <https://www.openpolicyagent.org>
  opa:
    # Can also be set using 'ATMOS_SCHEMAS_OPA_BASE_PATH' ENV var, or '--schemas-opa-dir' command-line arguments
    # Supports both absolute and relative paths
    base_path: "stacks/schemas/opa"
  # JSON Schema to validate Atmos manifests
  # <https://atmos.tools/reference/schemas/>
  # <https://atmos.tools/cli/commands/validate/stacks/>
  # <https://atmos.tools/quick-start/configure-validation/>
  # <https://atmos.tools/schemas/atmos/atmos-manifest/1.0/atmos-manifest.json>
  # <https://json-schema.org/draft/2020-12/release-notes>
  atmos:
    # Can also be set using 'ATMOS_SCHEMAS_ATMOS_MANIFEST' ENV var, or '--schemas-atmos-manifest' command-line arguments
    # Supports both absolute and relative paths (relative to the `base_path` setting in `atmos.yaml`)
    manifest: "stacks/schemas/atmos/atmos-manifest/1.0/atmos-manifest.json"
and then i’m using atmos auth, but i omitted that part of the confg
e
Copy code
helm_aws_profile_pattern: "{stage}-{region}"
delete this from the config
m
if i do that then i get the error above
e
Honestly, I would start with a fresh clean config because you have a lot of legacy craft in here.
Copy code
name_template: "{{.vars.stage}}-{{.vars.region}}"
  name_pattern: "{environment}-{stage}"
You only want one of those. Name pattern is not recommended.
You are saying when you comment out:
Copy code
helm_aws_profile_pattern: "{stage}-{region}"
you get:
Copy code
26-03-17 9:50}MacBook-Pro-10:~/Code/maintainx/fedramp/atmos-infra-fedramp@master✗✗✗✗✗✗ mdizon% atmos helmfile diff wiz-k8s -s tooling-us-gov-west-1 --use-version=2211
✓ PR #2211 is up to date (sha: 89dbe62)
✓ Switching to Atmos version 2211
 WARN  helm_aws_profile_pattern is deprecated, use --identity flag instead

The config profile (core--gbl-tooling-helm) could not be found

   Error 

   Error: subcommand exited with code 255
m
correct
e
ok, kicking off another investigation. Thanks for the details.
🙌 1
👍 1