-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
sam deploy guided doesn't allow specifying bucket #1700
Comments
Hi @eedwards-sk, Thanks for reporting this issue. I am trying to reproduce. I do agree that s3 bucket name is not asked and guided deploy creates a new bucket. However, for me it is picking my previous stack name and not creating new stack. Following are steps I tried to reproduce:
My deployment updated my stack. Here is my samconfig.toml file.
Can you please confirm if your stack name was same or not? |
I tried that, but a and a new stack was created |
this works against existing stack but following that up with the following:
and entering the same stack name as above, results in a new stack: and it doesn't allow me to specify the bucket it's a mess |
Can you please explain what do you mean by new stack? In your screenshot I only see one stack with stack-name |
Uh... |
@eedwards-sk Let's be respectful please. The new stack is the managed stack guided will produce (this is by design). Guided creates this stack so we can package artifacts and put them into a bucket that you do not need to provide. If this is not desired, you will need to not use guided, as that is not something guided allows at the moment. |
As per my initial issue description, I wish to provide the bucket and use an existing stack when using If this is not supported by design, you may change it to a feature request. |
@eedwards-sk I understand. I was just explaining what the current state is and what the extra stack is/why we create it. |
I'm having issues with the fact that if I specify Is this an active feature request? If it isn't an active request (i.e. not likely to change soon), I'm happy to make a PR to update the docs, I'm curious which additional flags are ignored in guided mode. I'm guessing the following:
|
First day use sam, try hello world and use --guided as README, stop on "InvalidBucketName" error. After I found this bug open over a year, I wonder if I should put time to learn sam... it is failed in such basic step by step test. Any confidence to use it in production? |
@GeniusWiki my experience has been that SAM is adequate for production once deployed. The problems you'll run into are centered around the CLI which has a lot of bugs that don't seem to be getting resolved. I chose SAM because it's the only way I could use CodeDeploy. The struggle with the CLI is unfortunate but necessary. This is one of those cases where you should be suspicious of the tool before your own code. |
This has been fixed (for me at least) by upgrading to v1.31 - see #3243 (comment) |
Sorry guys but --guided by design does not yet take in custom s3 bucket values so yes what you are experiencing is expected. We have noted the feature request and will try to evaluate the request with the team! |
Description
A new stack is created instead of updating an existing stack when using
--guided
.--guided
does not allow me to specify the bucketSteps to reproduce
Create a stack without a
samconfig.toml
Attempt to update the stack using
sam deploy --guided
Observed result
A new stack is created / the name of bucket is never asked for.
Expected result
Bucket name is asked for, existing stack is modified.
Additional environment details (Ex: Windows, Mac, Amazon Linux etc)
sam --version
: SAM CLI, version 0.39.0Add --debug flag to command you are running
The text was updated successfully, but these errors were encountered: