-
Notifications
You must be signed in to change notification settings - Fork 165
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
stacker.util.ensure_s3_bucket
function does not tag S3 buckets created
#495
Comments
I think automatically providing some tags could be a good idea - probably at least It's always bothered me that https://github.com/remind101/stacker/blob/ecd8933d715da8ede5b0d6e6d1e98bd827ff6b43/stacker/context.py#L97 removed the 👍 to this though. |
Yeah - I have been manually adding in the stacker_namespace tag in my configs to get it back in there... I so I guess I agree with you since I had workarounds in place to deal with the same thing. I think the the tags function in stacker.context should be a seperate issue though. It's a valid one. |
Definitely a different issue - just wanted to make sure we don't make the same "mistake" here :) |
@phobologic - Fourth potential feature needing to be included, updating tags on subsequent runs... as in, I have hundreds of S3 buckets already deployed by this function (the aws_lambda hook gets some love), and I want to be able to rerun the stacker yaml and have the If you want to assign this to me, you can. I got permission to fix this on company time. |
That sounds fine to me - I don't think anything would be broken by adding tags. The bigger question is what it's going to do for performance - I imagine you'd either update the tags every time, or you'd do a Thanks for offering to handle this @GarisonLotus, all for you knocking it out. |
Currently S3 buckets created by stacker do not have any tags, even if that bucket is created on a stacker build run with a stacker config yaml defining tags. This is because the
ensure_s3_bucket
function imported by base and aws_lambda do not submit tags to the function.We should probably tag the S3 buckets. My concern is not the buckets storing the json templates, but the buckets created for uploads of serverless lambda functions as they could get big and actually have somewhat of an effect on a budget.
So I propose the following...
tags
top level keywordaws_lambda.upload_lambda_functions
function to allow an override, in case an end-user wants to specify a different set of tags for the S3 bucket created by aws_lambda.py:493I think this should cover all bases as to cost tags that may be required by businesses using stacker.
The text was updated successfully, but these errors were encountered: