Comments (5)
Thanks for opening this feature request. It looks like the inverse of the flag needs to be configured (ie. --no-resolve-s3
) so that your desired behaviour is achieved. Let me raise this with the team for prioritization and to see if this aligns with what we wanted to do with this option.
In the mean time, I'm going to mark this as a good first issue for folks that wanted to contribute to this project.
from aws-sam-cli.
@lucashuy I would like to contribute this issue. I'm having doubt that new option--no-resolve-s3
will ignores resolve-s3
option if its present. for eg like this in deploy command.py
file
if not no_resolve_s3 and resolve_s3: # here means resolve_s3 will be supported when no_resolve_s3 is not present
if bool(s3_bucket):
raise DeployResolveS3AndS3SetError()
am i right here ?
from aws-sam-cli.
Hi @nitintecg, this would actually be something that is changed in the existing click
option, as opposed to a new option or flag. The click
documentation for this behaviour can be found here: https://click.palletsprojects.com/en/8.1.x/options/#boolean-flags, and an example of how we do this with a different flag in our code can be found here:
aws-sam-cli/samcli/commands/_utils/experimental.py
Lines 187 to 196 in c6b1155
Since resolve_s3
is a boolean, we can just use the same variable by updating the existing option.
from aws-sam-cli.
The place where we define our --resolve-s3
flag can be found here:
aws-sam-cli/samcli/commands/_utils/options.py
Lines 739 to 748 in 0849b2a
The changes here should be adding the inverse to the flag, and updating/adding any new unit tests to validate that the new inverse doesn't break anything.
Integration tests that actually deploy resources can be run too, but incurs any related AWS costs. The team can help out with running or writing these tests when you're ready for that.
from aws-sam-cli.
Patch is released in v1.119.0. Closing
from aws-sam-cli.
Related Issues (20)
- Bug: [WinError 3] The system cannot find the path specified HOT 4
- Feature request: Deploy Lambdas with concurrency HOT 3
- Bug: sam sync with python causes endless cpu saturation HOT 11
- Bug: sam build - EmptyKeyError HOT 1
- Bug: Unable to run sam local invoke on Apple Silicon HOT 16
- Cannot sam local start-api without specifying an image HOT 3
- Bug: sam local start-api - ReadTimeout HOT 3
- Bug: "Timed out while attempting to establish a connection to the container" error after fresh install of Docker and AWS SAM HOT 7
- Bug: sam build - JSONDecodeError HOT 3
- Bug: No new Lambda Versions are deployed with Lambda configurations changes HOT 2
- Bug: Change Parameter's Default value doesn't reflect HOT 6
- Bug: AWS ADOT LAMBDA layer stuck when using local invoke HOT 5
- Bug: AWS::Serverless::Function `ImageUri` with map (ex: using `!Sub`) fails with type error HOT 7
- Access to internal enterprise host (Github entreprise) HOT 3
- Bug: sam deploy - ConnectionError HOT 2
- Bug: Invoke failed error=ErrAgentNameCollision HOT 4
- Bug: SAM Doesn't recognize changes related to intrinsic functions (#6610) HOT 1
- Bug: Error: The runtime 'provided.al2023' is unsupported. (golang) HOT 6
- `BuildMethod: esbuild` does not include bundled files HOT 2
- Bug: AWS::Events::Rule EventBusName -> 'name' member must satisfy regular expression pattern [\.\-_A-Za-z0-9]+ HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-sam-cli.