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

Single command over multi-line in script section?

I'm trying to wrap a long command in my bitbucket-pipelines.yml.  

Here's the section that is causing the problem. I'm using the folding style, and the pipeline validator says it is valid... 

         script:
- >
aws lambda update-function-code
--function-name RDSEventsToSNS
--s3-bucket s3Bucket
--s3-key lambda/RDSEventToSNS.zip

In the log I get this result:

aws lambda update-function-code --function-name RDSEventsToSNS --s3-bucket s3Bucket --s3-key lambda/RDSEventToSNS.zip

+ aws lambda update-function-code
--function-name RDSEventsToSNS
--s3-bucket s3Bucket
--s3-key lambda/RDSEventToSNS.zip
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: the following arguments are required: --function-name

The log shows the command glued together properly, but it still fails?

Any suggestions?

1 answer

Have you tried removing the indentation before the -- on each line?

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,044 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