Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Lambda fails to run due to a permission error #1

Open
KevinBrooke opened this issue Dec 14, 2020 · 0 comments
Open

The Lambda fails to run due to a permission error #1

KevinBrooke opened this issue Dec 14, 2020 · 0 comments

Comments

@KevinBrooke
Copy link

[ERROR] PermissionError: [Errno 13] Permission denied: '/var/task/inventory/readers.py' Traceback (most recent call last):   File "/var/lang/lib/python3.8/imp.py", line 234, in load_module     return load_source(name, filename, file)   File "/var/lang/lib/python3.8/imp.py", line 171, in load_source     module = _load(spec)  File "<frozen importlib._bootstrap>", line 702, in _load   File "<frozen importlib._bootstrap>", line 671, in _load_unlocked   File "<frozen importlib._bootstrap_external>", line 783, in exec_module   File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed   File "/var/task/inventory/handler.py", line 4, in <module>     from inventory.readers import AwsConfigInventoryReader   File "<frozen importlib._bootstrap>", line 991, in _find_and_load   File "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked   File "<frozen importlib._bootstrap>", line 671, in _load_unlocked   File "<frozen importlib._bootstrap_external>", line 779, in exec_module   File "<frozen importlib._bootstrap_external>", line 915, in get_code   File "<frozen importlib._bootstrap_external>", line 972, in get_data

This can be resolved by:

  • Extracting fedramp-inventory-lambda.zip
  • Adding execution rights to /inventory/*.py
  • Zip the contents
  • Update the Lambda function with the new zip file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant