Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

aws-sam-deploy:How to use parameter-overrides with aws-sam-deploy?

Keishi Iwata
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 3, 2020

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

 

1 answer

0 votes
Keishi Iwata
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 3, 2020

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events