Sam Package Requires S3 Bucket For PackageType: Image
See original GitHub issueI can confirm that the --s3-bucket
and --s3-prefix
have no use during sam package
when using the PackageType: Image
process with the --image-repository
option. However when I remove the S3 options, the command won’t run. Can we remove that if indeed that is an oversight?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:9 (6 by maintainers)
Top Results From Across the Web
sam package - AWS Serverless Application Model
To package an AWS SAM application, use the sam package command from the AWS SAM CLI. ... Required for functions declared with the...
Read more >sam package - Amazon Serverless Application Model
To package an Amazon SAM application, use the sam package command from the Amazon SAM CLI. ... Required for functions declared with the...
Read more >Deploying sam template of a lambda with docker image
Resource with id [TestUpdateSchedule] is invalid. Runtime, Handler, Layers cannot be present when PackageType is of type `Image`.
Read more >Let's Try Lambda Container Support with SAM CLI - hayao-k.dev
The AWS SAM CLI supports container images in v1.13.1. ... Image (artifact is an image uploaded to an ECR image repository) Package type:...
Read more >Support for PackageType: Image in aws-sam-deploy Pipe - Jira
Use the AWS CLI directly (i.e. using sam package and sam deploy commands in their build script). Fastest option. Wait until we add...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
Top Related Hashnode Post
No results found
It’s a bug in the
aws-sam-cli
code.I’ve found that if
template.yaml
contains justAWS::Serverless::Function
resources withPackageType: Image
then it doesn’t complain asking fors3-bucket
.If however
template.yaml
contains non-function resources (e.g.AWS::Events::Rule
) withoutPackageType: Image
then it complains asking fors3-bucket
. When I addPackageType: Image
to these non-function resources, then it doesn’t complain asking fors3-bucket
. (Butsam deploy
will then point out that these non-function resources shouldn’t havePackageType: Image
.)In short,
aws-sam-cli
code needs to be fixed to checkPackageType
only in theAWS::Serverless::Function
resources.Yup, still seeing it. My
sam package
command is this.And the error is this.
I’m using this cookiecutter. https://github.com/customink/lamby-cookiecutter/tree/master/{{cookiecutter.project_name}}