We are setting up the aws-sam-deploy pipe and are unsure why a "STACK_NAME" variable is required with the "package-only" command. Because we are doing build-once, deploy-many setup, we don't want to specify a stack name until the deployment of the stack.
Since the "STACK_NAME" variable is not being used at all in the "package-only" command logic, we have simply specified a placeholder variable there, and then are using the "BITBUCKET_DEPLOYMENT_ENVIRONMENT" environment variable to generate the name during the deployment step ("deploy-only" command).
Could the "STACK_NAME" variable not be required with the "package-only" command?