Skip to content

Instantly share code, notes, and snippets.

@DeRain
Created November 27, 2017 16:55
Show Gist options
  • Select an option

  • Save DeRain/93c06d05cbd51eb1e6d64cd50f988c8d to your computer and use it in GitHub Desktop.

Select an option

Save DeRain/93c06d05cbd51eb1e6d64cd50f988c8d to your computer and use it in GitHub Desktop.

Revisions

  1. DeRain created this gist Nov 27, 2017.
    3 changes: 3 additions & 0 deletions example.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    #Add ENV strings into AWS Parameter Store (as one parameter). All strings will be separated by the newline
    #We are getting ENV string separated by the newline and pub them in the dotenv
    aws ssm get-parameter --name Param-with-env --region eu-west-1 --query Parameter.Value | sed -e 's/^"//' -e 's/"$//' | awk '{gsub(/\\n/,"\n")}1' >> .env