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

Allow environment variables based on Fn::Base64 #11670

Closed
1 task done
ronkorving opened this issue Jan 12, 2023 · 0 comments · Fixed by #11671
Closed
1 task done

Allow environment variables based on Fn::Base64 #11670

ronkorving opened this issue Jan 12, 2023 · 0 comments · Fixed by #11671

Comments

@ronkorving
Copy link
Contributor

ronkorving commented Jan 12, 2023

Is there an existing issue for this?

  • I have searched existing issues, it hasn't been reported yet

Use case description

I so so wish I had spotted this during the conversation in #11409, because it would've probably saved a lot of time. My goal was to base64 encode a JSON structure that I pulled out of a YAML file (via {self:custom.} and use that as an environment variable.

Example:

environment:
  FOOBAR:
    "Fn::Base64":
      "Fn::ToJsonString": ${self:custom.foobar}

@jurriaanpro was kind enough to implement Fn::ToJsonString in #11461, but I completely missed that Fn::Base64 is not supported either in environment variables.

Proposed solution (optional)

#11671

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

Successfully merging a pull request may close this issue.

1 participant