I usually deploy by aws-cli as follow
sam deploy --template-file ./packaged-plm.yaml --parameter-overrides Env=dev
but paramter-overrides does not work on aws-sam-deploy.
Does aws-sam-deploy support paramter-overrides?
script: - pipe: atlassian/aws-sam-deploy:0.3.0 variables: AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY AWS_DEFAULT_REGION: 'us-east-1' S3_BUCKET: 'my-s3-bucket' STACK_NAME: 'my-stack-name'
parameter_overrides: Env=dev
I solved this by ugly hack.
- cp template-base.yaml template-$Env.yaml
- sed -i s/REPLACETARGET/$ENV/g template-$Env.yaml
- pipe: atlassian/aws-sam-deploy:0.2.5
template-base.yaml include REPLACETARGET as a default param,
and swap that by sedcommand.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.