Skip to content

Package and Deploy needs AWS CLI #432

Closed

Description

@goldenbearkin

I ran "sam package ..." in circleci, below is what I got (I can successfully run locally on my mac High Sierra):

Traceback (most recent call last):
  File "/usr/local/bin/sam", line 11, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/click/decorators.py", line 64, in new_func
    return ctx.invoke(f, obj, *args[1:], **kwargs)
  File "/usr/local/lib/python2.7/site-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python2.7/site-packages/samcli/commands/package/__init__.py", line 22, in cli
    do_cli(args)  # pragma: no cover
  File "/usr/local/lib/python2.7/site-packages/samcli/commands/package/__init__.py", line 26, in do_cli
    execute_command("package", args)
  File "/usr/local/lib/python2.7/site-packages/samcli/lib/samlib/cloudformation_command.py", line 17, in execute_command
    subprocess.check_call([aws_cmd, 'cloudformation', command] + list(args))
  File "/usr/local/lib/python2.7/subprocess.py", line 535, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/usr/local/lib/python2.7/subprocess.py", line 522, in call
    return Popen(*popenargs, **kwargs).wait()
  File "/usr/local/lib/python2.7/subprocess.py", line 710, in __init__
    errread, errwrite)
  File "/usr/local/lib/python2.7/subprocess.py", line 1335, in _execute_child
    raise child_exception
OSError: [Errno 2] No such file or directory

docker image: circleci/python:2.7.15

Activity

  1. jfuss commented on May 29, 2018

    @jfuss
    Contributor

    The package and deploy commands need the AWS CLI installed. I thought we already had this called out in the README, but that doesn't look to be the case.

    Marking this as a doc update related to package and deploy.

  2. changed the title [-]Error when run on circleci[/-] [+]Package and Deploy needs AWS CLI[/+] on May 29, 2018
  3. funkybob commented on Jun 19, 2018

    @funkybob

    Any mention at all in the docs that you need to "pip install awscli" would be really helpful.

  4. jfuss commented on Dec 27, 2018

    @jfuss
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/deployarea/docsarea/packagetype/documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions