Our sam package command is -
sam package --template-file template.YML --output-template-file packaged-service.yml --s3-bucket $Template_Bucket_Name --s3-prefix service-build-$packagenumber
sam deploy command is -
sam deploy packaged-service.yml --stack-name service --capabilities CAPABILITY_NAMED_IAM --region us-east-1 --s3-bucket $Template_Bucket_Name --s3-prefix service-deploy-$packagenumber --template-file template.YML --parameter-overrides "ParameterKey=EnvType,ParameterValue=ftest" --no-fail-on-empty-changeset
What is significance of packaged-service.yml file ? I can run deploy without it. So what purpose it fulfils ? Official package and deploy page are not clear about it. packaged-service.yml has a codeuri field points to s3 bucket. In the above example, probably the file has no use ? How to use metadata option during aws sam deploy command ?