aws / aws/chalice

Using --project-dir option

Open
#940 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
Python
Stars
11.1k
Forks
1k
Avg merge
1d 22h
Merged PRs (30d)
2

Description

When deploying a package this works fine to deploy a package:

```
$ cd quickdraw-lambdas/
$ chalice deploy --no-autogen-policy
```

but this does not:

```
$ cd ..
$ chalice --project-dir "quickdraw-lambdas/" deploy --no-autogen-policy
```

I get the error message:

`FileNotFoundError: [Errno 2] No such file or directory: 'quickdraw-lambdas/.chalice/config.json'`

Even though that file exists:

```
$ ll quickdraw-lambdas/.chalice/config.json
-rw-rw-r-- 1 jim jim 129 Aug 18 21:07 quickdraw-lambdas/.chalice/config.json
```

I can change that directory to an absolute path to make it work but I want it to be relative. I do see issue #414 . Is it supposed to work this way? Is there a way to specify a relative path?

Thanks

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the deploy command from the parent directory with --project-dir, then inspect how the Chalice CLI resolves .chalice/config.json relative to that option. Done means a relative project directory locates its existing config.json and deployment proceeds without requiring an absolute path.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, python
Domain
cli, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.