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

Failing SSM with all configurations #11

Closed
rms1000watt opened this issue Oct 29, 2019 · 7 comments
Closed

Failing SSM with all configurations #11

rms1000watt opened this issue Oct 29, 2019 · 7 comments

Comments

@rms1000watt
Copy link

Hi, @mumoshu I'm super stoked SSM is in place. However, I'm unable to get it working from any of the configuration defined in the Readme. I took a quick look and didn't see any obvious bugs. I'll look again later to see if I can find anything.. But your help would be greatly appreciated. 🙏

Here is my Helmfile:

repositories:
  - name: "stable"
    url: "https://kubernetes-charts.storage.googleapis.com"

releases:
  - name: "fluent-bit"
    namespace: "kube-system"
    chart: "stable/fluent-bit"
    version: "2.0.5"
    atomic: true
    wait: true
    values:
    - filter:
        mergeJSONLog: false
    - backend:
        type: es
        es:
          host: "ref+ssm://pre0/pre1#/pre2/key0?region=us-east-1" # Err 1
          # host: "ref+ssm://pre0/pre1/pre2/#/key0?region=us-east-1" # Err 1
          # host: "ref+ssm://pre0/pre1/pre2/?region=us-east-1#/key0" # Err 2
          # host: "ref+ssm://pre0/pre1/pre2/?region=us-east-1#key0" # Err 2
          # host: "ref+ssm://pre0/pre1/pre2/key0?region=us-east-1" # Err 0
          # host: "ref+ssm://pre0/pre1/pre2/key0" # Err 2
          # host: "ref+ssm://pre0/pre1/pre2#/key0" # Err 2
          # host: "ref+ssm://pre0/pre1/pre2?region=us-east-1#/key0" # Err 2
          # host: "ref+ssm://pre0/pre1?region=us-east-1#/pre2/key0" # Err 2

Here are the error messages I get with each of these configurations:

Err 0:

in /darwin/path/to/helmfile/archive/fluent-bit.yml: expand ssm://......................................: get parameter: ValidationException: Parameter name: can't be prefixed with "ssm" (case-insensitive). If formed as a path, it can consist of sub-paths divided by slash symbol; each sub-path can be formed as a mix of letters, numbers and the following 3 symbols .-_

Err 1:

in /darwin/path/to/helmfile/archive/fluent-bit.yml: expand ssm://......................................: ssm: get parameters by path: MissingRegion: could not find region configuration

Err 2:

in /darwin/path/to/helmfile/archive/fluent-bit.yml: expand ssm://......................................: ssm: get parameters by path: ValidationException: The parameter doesn't meet the parameter name requirements. The parameter name must begin with a forward slash "/". It can't be prefixed with \"aws\" or \"ssm\" (case-insensitive). It must use only letters, numbers, or the following symbols: . (period), - (hyphen), _ (underscore). Special characters are not allowed. All sub-paths, if specified, must use the forward slash symbol "/". Valid example: /get/parameters2-/by1./path0_.

I just can't crack it as it sits. 🤷‍♂

@mumoshu
Copy link
Collaborator

mumoshu commented Oct 29, 2019

@rms1000watt Hey!

Could you try awsssm rather than ssm so that it looks like "ref+awsssm://pre0/pre1#/pre2/key0?region=us-east-1"?

@rms1000watt
Copy link
Author

@mumoshu
Copy link
Collaborator

mumoshu commented Oct 29, 2019

@rms1000watt OMG! Let me check what's wrong. The expected provider ID should be awsssm anyway.

@mumoshu
Copy link
Collaborator

mumoshu commented Oct 30, 2019

@rms1000watt I've added a few fixes on vals and incorporated those into Helmfiile v0.90.1.

Would you mind trying again?

@rms1000watt
Copy link
Author

@mumoshu Everything is working as expected! Thank you for the speedy turn around!!

@mumoshu
Copy link
Collaborator

mumoshu commented Oct 30, 2019

@rms1000watt Thanks a lot for testing, the feedback, and your original issue/pull request to Helmfile! I couldn't have managed to implement this without your work as the foundation ☺️

@rms1000watt
Copy link
Author

@mumoshu That's very kind of you!!! 💙

I'm hoping we continue to work on projects together!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants