You can use your existing Amazon S3 bucket or create a new bucket to package the application. Execute the package command to upload the deployment package to S3.
Execute the following command to create an Amazon S3 bucket in your specified region:
aws s3 mb s3://bucket-name --region region
You can execute the following command on the command prompt to create the packaged artifacts. It will return the command for deployment once it is successfully packaged:
aws cloudformation package --template-file packt.yaml --output-template-file serverless-output.yaml --s3-bucket packtdemo
The output of running the preceding command is as follows:
It will create the package under the specified Amazon S3 bucket and provide the command for deployment: ...