Forums

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

Problem using an atlassian/aws-sam-deploy:2.4.1 pipe with the "--parameter-overrides" option

Edson da Conceicao Junior
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!
October 2, 2024

When I try to use the pipe atlassian/aws-sam-deploy:2.4.1 with the "--parameter-overrides" option I get the error: "No such option: --parameter-overrides environment Did you mean --parameter-overrides?"

If we look in the AWS Sam Deploy documentation we will see the --parameter-overrides option.

1 answer

1 vote
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 3, 2024

Hey @Edson da Conceicao Junior ,

and welcome to the Community!

Could you share with us the section of your YAML file where you define the pipe and it's variables ? 

It's important to highlight the pipe atlassian/aws-sam-deploy has two operation modes - package and deploy - and the --parameter-overrides seems to only be available in the deploy mode of sam. In this case, your pipe definition should be similar to the below example:

script:
  - pipe: atlassian/aws-sam-deploy:2.4.1
    variables:
      AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
      AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
      AWS_DEFAULT_REGION'us-east-1'
COMMAND: 'deploy'
      EXTRA_OPTIONS_DEPLOY: ['--parameter-overrides''ParameterKey=value1''ParameterKey2=value2']

 Thank you, @Edson da Conceicao Junior !

Patrik S

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
PERMISSIONS LEVEL
Product Admin Site Admin
TAGS
AUG Leaders

Atlassian Community Events