Package Details: aws-sam-cli 1.53.0-1

Git Clone URL: https://aur.archlinux.org/aws-sam-cli.git (read-only, click to copy)
Package Base: aws-sam-cli
Description: CLI tool to build, test, debug, and deploy Serverless applications using AWS SAM
Upstream URL: https://github.com/aws/aws-sam-cli
Licenses: Apache
Submitter: javmorin
Maintainer: javmorin
Last Packager: javmorin
Votes: 8
Popularity: 0.25
First Submitted: 2020-06-11 05:09 (UTC)
Last Updated: 2022-06-29 18:39 (UTC)

Latest Comments

javmorin commented on 2022-03-26 16:15 (UTC)

@hendry et al: The python-aws-sam-translator package dependency has yet to be updated to the needed version (it has been flagged). Your options are to keep using the version of aws-sam-cli you have installed (if you have one) until a TU updates that package (it's in the Community repo), build an updated version of that package yourself, or checkout and build the 1.41.0 version of aws-sam-cli.

Sorry for the mismatch. I try to get my packages updated right after upstream release, and I haven't used sam-cli myself for a bit, so I didn't catch the breakage.

hendry commented on 2022-03-26 10:59 (UTC)

Hitting a ModuleNotFoundError: No module named 'samtranslator.utils.py27hash_fix' issue

javmorin commented on 2022-02-18 16:46 (UTC) (edited on 2022-02-18 16:47 (UTC) by javmorin)

@shura I have added it in pkgrel 2, to unblock you (and me) but it's actually a bug upstream. They are using typing_extensions to get access to Protocol, but Protocol is included in the core types package in Python 3.8+ so it shouldn't be needed.

shura commented on 2022-02-18 09:36 (UTC)

2022-02-18 10:27:21 Command 'sync' is not configured correctly. Unable to import 'samcli.commands.sync'
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/samcli/cli/command.py", line 114, in get_command
    mod = importlib.import_module(pkg_name)
  File "/usr/lib/python3.10/importlib/__init__.py", line 126, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1050, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
  File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 883, in exec_module
  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
  File "/usr/lib/python3.10/site-packages/samcli/commands/sync/__init__.py", line 4, in <module>
    from .command import cli  # noqa
  File "/usr/lib/python3.10/site-packages/samcli/commands/sync/command.py", line 37, in <module>
    from samcli.lib.sync.sync_flow_factory import SyncFlowFactory
  File "/usr/lib/python3.10/site-packages/samcli/lib/sync/sync_flow_factory.py", line 8, in <module>
    from samcli.lib.sync.flows.auto_dependency_layer_sync_flow import AutoDependencyLayerParentSyncFlow
  File "/usr/lib/python3.10/site-packages/samcli/lib/sync/flows/auto_dependency_layer_sync_flow.py", line 22, in <module>
    from samcli.lib.sync.flows.layer_sync_flow import AbstractLayerSyncFlow
  File "/usr/lib/python3.10/site-packages/samcli/lib/sync/flows/layer_sync_flow.py", line 17, in <module>
    from samcli.lib.sync.sync_flow import SyncFlow, ResourceAPICall
  File "/usr/lib/python3.10/site-packages/samcli/lib/sync/sync_flow.py", line 12, in <module>
    from samcli.lib.utils.boto_utils import get_boto_client_provider_from_session_with_config
  File "/usr/lib/python3.10/site-packages/samcli/lib/utils/boto_utils.py", line 7, in <module>
    from typing_extensions import Protocol
ModuleNotFoundError: No module named 'typing_extensions'

To fix this just add python-typing_extensions to dependencies. Thank you!

webninja commented on 2021-08-22 06:41 (UTC) (edited on 2021-08-22 06:42 (UTC) by webninja)

If you happen to be running sam without docker, for the time being you will need to: pip3 install --user docker==4.2.0

javmorin commented on 2021-03-09 23:05 (UTC)

@cortiz - your issue is with a different package that uses the AWS bundled version of the client.

cortiz commented on 2021-03-09 22:55 (UTC)

==> Making package: aws-sam-cli-bin 1.20.0-1 (Tue 09 Mar 2021 04:54:46 PM CST) ==> Retrieving sources... -> Found aws-sam-cli-linux-x86_64.zip ==> Validating source files with sha256sums... aws-sam-cli-linux-x86_64.zip ... FAILED ==> ERROR: One or more files did not pass the validity check! error downloading sources: aws-sam-cli-bin

enanone commented on 2021-01-13 20:01 (UTC)

Hey @javmorin, thank you very much!! :D

javmorin commented on 2021-01-13 16:12 (UTC) (edited on 2021-01-13 16:18 (UTC) by javmorin)

Firstly, apologies for the disruption.

The python-aws_lambda_builders dependency package is in the process of a rename and the aws-sam-cli package release bump to change the dependency was not pushed as expected. This has now been corrected, and your tools should prompt for the install of the new python-aws-lambda-builders package.

Please install the new python-aws-lambda-builders package, which should prompt to replace the old python-aws_lambda_builders package.

enanone commented on 2021-01-13 09:17 (UTC) (edited on 2021-01-13 09:18 (UTC) by enanone)

There is some problem with the python-aws_lambda_builders dependency. I have this stacktrace

==> Installing missing dependencies...
error: target not found: python-aws-lambda-builders
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> python-aws-lambda-builders

But I do have python-aws_lambda_builders installed:

$ pacman -Q python-aws_lambda_builders # python-aws_lambda_builders 1.1.0-1

Why was the dependency name changed? How do I fix this?

EDIT: Rebuilding the dependency python-aws_lambda_builders with git pull && makepkg does not fix the problem

javmorin commented on 2020-11-16 20:20 (UTC)

@boletus_aereus I don't use that functionality, so I cannot verify it myself. As this package just installs the upstream code as-is, I would suggest reviewing the open issues on GitHub (https://github.com/awslabs/aws-sam-cli), and filing one if you don't find your answer there.

boletus_aereus commented on 2020-11-16 18:45 (UTC) (edited on 2020-11-16 18:46 (UTC) by boletus_aereus)

HI, I'm experiencing some trouble when I run "sam deploy --guided" command

Before updating this package it use to works perfect


Traceback (most recent call last):
  File "/usr/bin/sam", line 33, in <module>
    sys.exit(load_entry_point('aws-sam-cli==1.9.0', 'console_scripts', 'sam')())
  File "/usr/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3.8/site-packages/click/decorators.py", line 73, in new_func
    return ctx.invoke(f, obj, *args, **kwargs)
  File "/usr/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python3.8/site-packages/samcli/lib/telemetry/metrics.py", line 148, in wrapped
    raise exception  # pylint: disable=raising-bad-type
  File "/usr/lib/python3.8/site-packages/samcli/lib/telemetry/metrics.py", line 114, in wrapped
    return_value = func(*args, **kwargs)
  File "/usr/lib/python3.8/site-packages/samcli/commands/deploy/command.py", line 175, in cli
    do_cli(
  File "/usr/lib/python3.8/site-packages/samcli/commands/deploy/command.py", line 248, in do_cli
    guided_context.run()
  File "/usr/lib/python3.8/site-packages/samcli/commands/deploy/guided_context.py", line 201, in run
    self.guided_prompts(_parameter_override_keys)
  File "/usr/lib/python3.8/site-packages/samcli/commands/deploy/guided_context.py", line 132, in guided_prompts
    s3_bucket = manage_stack(profile=self.profile, region=region)
  File "/usr/lib/python3.8/site-packages/samcli/lib/bootstrap/bootstrap.py", line 27, in manage_stack
    cloudformation_client = boto3.client("cloudformation", config=Config(region_name=region if region else None))
  File "/usr/lib/python3.8/site-packages/boto3/__init__.py", line 91, in client
    return _get_default_session().client(*args, **kwargs)
  File "/usr/lib/python3.8/site-packages/boto3/session.py", line 258, in client
    return self._session.create_client(
TypeError: create_client() got an unexpected keyword argument 'api_version'

boletus_aereus commented on 2020-11-11 14:25 (UTC)

Hi, could you please upgrade package to latest version? I think is 1.9. Thanks in advance

boggogo commented on 2020-09-30 22:08 (UTC)

Thank you for the package! Much appreciated! :)

igalmarino commented on 2020-07-20 23:41 (UTC)

Works great ! Thank you very much.