К сожалению, нет.
Развертывание шаблона SAM состоит из двух частей, одна из которых - команда package, которая в основном создает zip-файл, и для загрузки этого файла требуется контейнер s3.И команда deploy, которая просто развертывает ваше упакованное приложение, точно так же, как это делала бы облачная информация.
У меня обычно есть небольшой скрипт bash с несколькими стеками облачной информации, один из которых является вспомогательным стеком, который создает этот сегмент (а также добавляет имя ввыходы), а затем получить имя и передать его всем другим стекам
#Create the Helper stack
echo "---------Create Helper stack ---------"
aws cloudformation deploy --profile ${profile} --stack-name $helperStack --
region ${region} --template-file deployment-helper.yaml
serverlessCodeBucketName="$(aws cloudformation --region ${region} --profile
${profile} describe-stacks --stack-name $helperStack --query
'Stacks[0].Outputs[?OutputKey==`CodeBucketName`].OutputValue' --output text)"
aws cloudformation package --profile ${profile} --region ${region} --
template-file template.yaml --output -
template-file serverless-output.yaml --s3-bucket
${serverlessCodeBucketName}
aws cloudformation deploy --profile ${profile} --stack-name
${applicationStack} --region ${region} --template-file
serverless-output.yaml --capabilities
CAPABILITY_IAM