It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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

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
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,056 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you