{"action":"created","issue":{"url":"https://api.github.com/repos/pjodouin/ansible-lambda/issues/4","repository_url":"https://api.github.com/repos/pjodouin/ansible-lambda","labels_url":"https://api.github.com/repos/pjodouin/ansible-lambda/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/pjodouin/ansible-lambda/issues/4/comments","events_url":"https://api.github.com/repos/pjodouin/ansible-lambda/issues/4/events","html_url":"https://github.com/pjodouin/ansible-lambda/issues/4","id":133938372,"number":4,"title":"How to update lambda code","user":{"login":"plusseed","id":104610,"avatar_url":"https://avatars.githubusercontent.com/u/104610?v=3","gravatar_id":"","url":"https://api.github.com/users/plusseed","html_url":"https://github.com/plusseed","followers_url":"https://api.github.com/users/plusseed/followers","following_url":"https://api.github.com/users/plusseed/following{/other_user}","gists_url":"https://api.github.com/users/plusseed/gists{/gist_id}","starred_url":"https://api.github.com/users/plusseed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plusseed/subscriptions","organizations_url":"https://api.github.com/users/plusseed/orgs","repos_url":"https://api.github.com/users/plusseed/repos","events_url":"https://api.github.com/users/plusseed/events{/privacy}","received_events_url":"https://api.github.com/users/plusseed/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-02-16T10:15:59Z","updated_at":"2016-02-17T03:20:00Z","closed_at":null,"body":"Hi,\r\n\r\nI'm first deploy is successful.\r\nand, lambda code update.\r\nbut, don't know update of the YAML.\r\n\r\nnow, update method is the transition 'present' from 'absent'.\r\n\r\n```\r\n    - name: List all for a specific function\r\n      lambda_facts:\r\n        query: versions\r\n        function_name : \"{{LAMBDA.NAME}}\"\r\n      register: is_exists\r\n      ignore_errors: True\r\n\r\n    - debug: var=is_exists\r\n\r\n    - name: Delete Lambda Function\r\n      lambda:\r\n        state: absent\r\n        type: code\r\n        function_name: \"{{LAMBDA.NAME}}\"\r\n      when: is_exists.failed is undefined\r\n\r\n    - name: New Lambda Function\r\n      lambda:\r\n        state: present\r\n        type: code\r\n        function_name: \"{{LAMBDA.NAME}}\"\r\n        runtime: \"{{LAMBDA.RUNTIME}}\"\r\n        code:\r\n          s3_bucket: \"{{S3.BUCKET}}\"\r\n          s3_key: \"{{S3.DEST}}\"\r\n        timeout: \"{{LAMBDA.TIMEOUT}}\"\r\n        handler: \"{{LAMBDA.HANDLER}}\"\r\n        role: \"{{LAMBDA.ROLE}}\"\r\n        description: \"{{LAMBDA.DESCRIPTION}}\"\r\n        vpc_config:\r\n          subnet_ids: \"{{ LAMBDA.SUBNET_IDS }}\"\r\n          security_group_ids: \"{{ LAMBDA.SECURITY_GROUP_IDS }}\"\r\n        memory_size: \"{{LAMBDA.MEMORY}}\"\r\n        starting_position: LATEST\r\n        publish: True\r\n```\r\n\r\n> saw the botocore documentation.\r\n> https://botocore.readthedocs.org/en/latest/reference/services/lambda.html#Lambda.Client.update_function_code\r\n\r\nplease, teach lambda code update of the YAML example."},"comment":{"url":"https://api.github.com/repos/pjodouin/ansible-lambda/issues/comments/184996511","html_url":"https://github.com/pjodouin/ansible-lambda/issues/4#issuecomment-184996511","issue_url":"https://api.github.com/repos/pjodouin/ansible-lambda/issues/4","id":184996511,"user":{"login":"plusseed","id":104610,"avatar_url":"https://avatars.githubusercontent.com/u/104610?v=3","gravatar_id":"","url":"https://api.github.com/users/plusseed","html_url":"https://github.com/plusseed","followers_url":"https://api.github.com/users/plusseed/followers","following_url":"https://api.github.com/users/plusseed/following{/other_user}","gists_url":"https://api.github.com/users/plusseed/gists{/gist_id}","starred_url":"https://api.github.com/users/plusseed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/plusseed/subscriptions","organizations_url":"https://api.github.com/users/plusseed/orgs","repos_url":"https://api.github.com/users/plusseed/repos","events_url":"https://api.github.com/users/plusseed/events{/privacy}","received_events_url":"https://api.github.com/users/plusseed/received_events","type":"User","site_admin":false},"created_at":"2016-02-17T03:20:00Z","updated_at":"2016-02-17T03:20:00Z","body":"Hi,\r\n\r\nThank you for your comment. \r\nI will using the previous YAML at until implemented."}}