- Newest
- Most votes
- Most comments
The parameters "--s3-bucket" and "resolve_s3" specified in the "sam package" command cannot be used simultaneously.
So disabling either one will eliminate the error.
https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/sam-cli-command-reference-sam-package.html
The name of the Amazon S3 bucket where this command uploads your AWS CloudFormation template. If your template is larger than 51,200 bytes, then either the --s3-bucket or the --resolve-s3 option is required. If you specify both the --s3-bucket and --resolve-s3 options, then an error will result.
Is it possible to share the logs around the logs where the error is occurring as well?
Perhaps "resolve_s3" in "samconfig.toml" is set to true.
If it is true, change it to false and then git push.
Try changing the settings as follows.
[default.package.parameters]
resolve_s3 = false
Thanks for your answer Riku, the problem was fixed by setting resolve_s3 in false as you said. Now I would like to know why this parameter caused the error, could you give me a little explanation or suggest some documentation?
Relevant content
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 9 months ago
- AWS OFFICIALUpdated 3 years ago