-
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
Question: different buckets #6581
Comments
Hi, thanks for the asking the question. |
@jysheng123 Thank you for reply. Yes, the explanation makes sense.
This seems to be overkill, doesn't it? |
Hmm, I understand your logic but creating multiple buckets doesn't cost much resources at all, and to us, this many buckets is normal for creating a deployment pipeline since each of the buckets serve it's own unique purpose. That is why we don't really have functionality for not running the pipeline when it is first created. Is there a use case in why you want to only have 2 buckets? If you specify the bucket getting deployed before, you would limit the buckets created in the process to 2 as well. |
@jysheng123 No specific use case, just want to keep S3 Dashboard clean :-). But I found another solution. EnvironmentVariables: !Sub |
[
{"name": "ENV_BUCKET", "value": "${PipelineArtifactsBucket}"}
] and later use it with the deploy command sam deploy --config-env ${CONFIGENV} \
--s3-bucket ${ENV_BUCKET} \
--resolve-image-repos \
--no-confirm-changeset \
--no-fail-on-empty-changeset |
Ah sounds good, thanks for bringing up the question then, apologies if I was not helpful enough for this question. |
|
When I generate a pipeline using
sam pipeline ...
it guides me through a process by asking questions. One of them is about bucket (for prod env). I enter a bucket namemybucket123
and the SAM adds the following lines insidecodepipeline.yml
fileand associates
ProdArtifactBucket
with theENV_BUCKET
env var.It also creates two buckets (with corresponding policies):
and uses the bucket I entered for
sam deploy
commandSo my question is: why does SAM ask for a bucket (for artifacts) if it creates a new one to download code, etc? Can't we just use the newly created bucket for
sam deploy
?The text was updated successfully, but these errors were encountered: