# Serverless.ts deploymentBucket name Error: Could not locate deployment bucket. Error: The specified bucket is not valid

**URL:** <https://forum.serverless.com/t/serverless-ts-deploymentbucket-name-error-could-not-locate-deployment-bucket-error-the-specified-bucket-is-not-valid/16891>\
**Category:** Serverless Framework\
**Tags:** aws\
**Created:** [March 14, 2022, 5:25pm UTC](https://forum.serverless.com/t/serverless-ts-deploymentbucket-name-error-could-not-locate-deployment-bucket-error-the-specified-bucket-is-not-valid/16891 "2022-03-14T17:25:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![yaz](https://avatars.discourse-cdn.com/v4/letter/y/9e8a1a/32.png) [@yaz](https://forum.serverless.com/u/yaz)\
**Post date:** [March 14, 2022, 5:25pm UTC](https://forum.serverless.com/t/serverless-ts-deploymentbucket-name-error-could-not-locate-deployment-bucket-error-the-specified-bucket-is-not-valid/16891/1 "2022-03-14T17:25:38Z")

</div>

Hi, I haven’t figure out how to set the aws variables on the deploymentBucket name on the serverless.ts, i keep getting:  
Error: Could not locate deployment bucket. Error: The specified bucket is not valid.

Here is the name config:  
deploymentBucket: {  
name: “serverless-deployment-bucket-account-${AWS::AccountId}-${AWS::Region}”  
}

Here how we used to do it on yml:  
deploymentBucket:  
name: serverless-deployment-bucket-account-${aws:accountId}-${aws:region}

Help.
