Output collision when deploying a split service into the same bucket
See original GitHub issueDue to #9313, the name of the bucket where the deployment occurred is being exported by default. If a service is divided into multiple files deploying to the same bucket, the default outputs are gonna conflict with each other.
serverless_A.yml
service: lol
useDotenv: true
provider:
name: aws
runtime: dotnetcore3.1
stage: dev
stackName: stack-A
deploymentBucket:
name: bucket
deploymentPrefix: prefix
functions:
FunctionA:
.....
serverless_B.yml
service: lol
useDotenv: true
provider:
name: aws
runtime: dotnetcore3.1
stage: dev
stackName: stack-B
deploymentBucket:
name: bucket
deploymentPrefix: prefix
functions:
FunctionB:
.....
Installed version
Framework Core: 2.38
Plugin: 4.5.3
SDK: 4.2.2
Components: 3.9.0
Issue Analytics
- State:
- Created 2 years ago
- Comments:41 (26 by maintainers)
Top Results From Across the Web
Collision Domain and Broadcast Domain in Computer Network
Every port on a switch is in a different collision domain, i.e a switch is a collision domain separator. So messages that come...
Read more >class Stack (construct) · AWS CDK
bucket.bucketName) . This will make sure the CloudFormation Export continues to exist while the relationship between the two stacks is being broken. Deploy...
Read more >Find Answers to AWS Questions about AWS CloudFormation
I am trying to create S3 bucket based on a condition whether the bucket already exists or not. I am trying to use...
Read more >Hash map without collision check
The goal is to calculate the hash, find bucket and then find the actual value inside the bucket using ONLY the full 256-bit...
Read more >Packet Transmission Time - an overview | ScienceDirect Topics
In networks in which the propagation delay is small compared to the packet ... it can cause a collision at the receiver of...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The way I read the merge request, I see two ways to accommodate my current use case
sls-{service}-{stage}-{outputName}
to include thestackName
Guys,
I’m here because I ran into the same problem. The solution was to manipulate how the outputs was generated. The Serverless.yml end up like that:
Hope it can help someone.