Serverless computing is gaining popularity, and serverless workflows stand out as its key workload form. Since resource configurations in serverless workflows are typically manually specified, considerable research has focused on automating resource allocation optimization. However, conventional studies generally follow a coupled CPU–memory allocation, thereby limiting cost-effectiveness, or assume that accurate function performance profiles are known in advance. Moreover, they do not explicitly address the impact of function cold starts on workflow performance. To address these limitations, this paper introduces a serverless workflow provisioning model that jointly supports decoupled resource allocation and function container reuse among workflow tasks implementing identical functionality. Based on this model, we propose a structure-aware trust-region Bayesian optimization (STBO) method to optimize resource configurations for minimizing cost under deadline constraints. The proposed approach is implemented in OpenWhisk, and evaluation experiments demonstrate that, compared with traditional methods, STBO increases the constraint satisfaction rate and reduces execution cost by over 17% on average.