serverless-plugin icon indicating copy to clipboard operation
serverless-plugin copied to clipboard

AWS resources are created without the project prefix

Open esseswann opened this issue 3 years ago • 1 comments

When using AWS SQS client the queue created lacks the project prefix. Might be the case for all AWS compatible resources that use non-yc SDK

esseswann avatar Aug 29 '22 08:08 esseswann

It is worth to be fixed for queues. But it might not be accurate for buckets. As their names are used as globally unique identifiers, it is more obvious to define them explicitly. Also, another case related to bucket names: if a bucket is used to store a static site, the bucket name should match the site's domain name. So implicit changes could break the rule. If you need to define bucket names based on the project name, you should use the variable interpolation serverless framework provides. E.g.

resources:
 SomeBucket:
   type: yc::ObjectStorageBucket
   name: '${self:service}-bucket'

nikolaymatrosov avatar Aug 29 '22 18:08 nikolaymatrosov