{"action":"created","issue":{"url":"https://api.github.com/repos/aws/chalice/issues/577","repository_url":"https://api.github.com/repos/aws/chalice","labels_url":"https://api.github.com/repos/aws/chalice/issues/577/labels{/name}","comments_url":"https://api.github.com/repos/aws/chalice/issues/577/comments","events_url":"https://api.github.com/repos/aws/chalice/issues/577/events","html_url":"https://github.com/aws/chalice/issues/577","id":267742384,"node_id":"MDU6SXNzdWUyNjc3NDIzODQ=","number":577,"title":"\"chalice deploy\" removes Lambda environment variables","user":{"login":"chrislawlor","id":238952,"node_id":"MDQ6VXNlcjIzODk1Mg==","avatar_url":"https://avatars2.githubusercontent.com/u/238952?v=4","gravatar_id":"","url":"https://api.github.com/users/chrislawlor","html_url":"https://github.com/chrislawlor","followers_url":"https://api.github.com/users/chrislawlor/followers","following_url":"https://api.github.com/users/chrislawlor/following{/other_user}","gists_url":"https://api.github.com/users/chrislawlor/gists{/gist_id}","starred_url":"https://api.github.com/users/chrislawlor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrislawlor/subscriptions","organizations_url":"https://api.github.com/users/chrislawlor/orgs","repos_url":"https://api.github.com/users/chrislawlor/repos","events_url":"https://api.github.com/users/chrislawlor/events{/privacy}","received_events_url":"https://api.github.com/users/chrislawlor/received_events","type":"User","site_admin":false},"labels":[{"id":403474255,"node_id":"MDU6TGFiZWw0MDM0NzQyNTU=","url":"https://api.github.com/repos/aws/chalice/labels/feature-request","name":"feature-request","color":"fbca04","default":false}],"state":"open","locked":false,"assignee":{"login":"jamesls","id":368057,"node_id":"MDQ6VXNlcjM2ODA1Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/368057?v=4","gravatar_id":"","url":"https://api.github.com/users/jamesls","html_url":"https://github.com/jamesls","followers_url":"https://api.github.com/users/jamesls/followers","following_url":"https://api.github.com/users/jamesls/following{/other_user}","gists_url":"https://api.github.com/users/jamesls/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesls/subscriptions","organizations_url":"https://api.github.com/users/jamesls/orgs","repos_url":"https://api.github.com/users/jamesls/repos","events_url":"https://api.github.com/users/jamesls/events{/privacy}","received_events_url":"https://api.github.com/users/jamesls/received_events","type":"User","site_admin":false},"assignees":[{"login":"jamesls","id":368057,"node_id":"MDQ6VXNlcjM2ODA1Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/368057?v=4","gravatar_id":"","url":"https://api.github.com/users/jamesls","html_url":"https://github.com/jamesls","followers_url":"https://api.github.com/users/jamesls/followers","following_url":"https://api.github.com/users/jamesls/following{/other_user}","gists_url":"https://api.github.com/users/jamesls/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesls/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesls/subscriptions","organizations_url":"https://api.github.com/users/jamesls/orgs","repos_url":"https://api.github.com/users/jamesls/repos","events_url":"https://api.github.com/users/jamesls/events{/privacy}","received_events_url":"https://api.github.com/users/jamesls/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2017-10-23T16:55:55Z","updated_at":"2018-06-28T15:47:19Z","closed_at":null,"author_association":"NONE","body":"Rather than [adding encrypted environment variables to my config.json file](https://github.com/aws/chalice/issues/481#issuecomment-323178711), I'd prefer to simply add them manually to Lambda (either via the web console or CLI). However, all manually added environment variables are currently being removed on every deploy. This is occurring in a project with no `environment_variables` section in the config file.\r\n \r\nI would expect the following behaviour:\r\n\r\n1. If there is no `environment_variables` section, all configured env vars are persisted.\r\n2. If there is an `environment_variables` section, all non-conflicting variables should be merged. So if I have manually set `FOO`, and my `environment_variables` section contains `BAR`, the final configuration should contain both `FOO` and `BAR`.\r\n3. For existing env vars, the `environment_variables` section should take precedence.\r\n\r\nFor context, support for Lambda environment variables was added here in PR #243 , and support for environment variables in the `.chalice/config.json` file was added in PR #273."},"comment":{"url":"https://api.github.com/repos/aws/chalice/issues/comments/401081329","html_url":"https://github.com/aws/chalice/issues/577#issuecomment-401081329","issue_url":"https://api.github.com/repos/aws/chalice/issues/577","id":401081329,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMTA4MTMyOQ==","user":{"login":"syabro","id":29029,"node_id":"MDQ6VXNlcjI5MDI5","avatar_url":"https://avatars1.githubusercontent.com/u/29029?v=4","gravatar_id":"","url":"https://api.github.com/users/syabro","html_url":"https://github.com/syabro","followers_url":"https://api.github.com/users/syabro/followers","following_url":"https://api.github.com/users/syabro/following{/other_user}","gists_url":"https://api.github.com/users/syabro/gists{/gist_id}","starred_url":"https://api.github.com/users/syabro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/syabro/subscriptions","organizations_url":"https://api.github.com/users/syabro/orgs","repos_url":"https://api.github.com/users/syabro/repos","events_url":"https://api.github.com/users/syabro/events{/privacy}","received_events_url":"https://api.github.com/users/syabro/received_events","type":"User","site_admin":false},"created_at":"2018-06-28T15:47:19Z","updated_at":"2018-06-28T15:47:19Z","author_association":"NONE","body":"Vote up for it. KMS is nice but looks like an overengineering from my point of view.\r\nAlso I want to change parameters by my manager who prefer to use web interface rather than run weird script from the console."}}
{"actor":{"display_login":"syabro"}}