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?
Have you tried removing the indentation before the -- on each line?
Thanks! Removing the extra indentation worked in my case. e.g.
script:
- >-
msbuild
SomeProject.csproj
/p:Configuration=Release
/p:Platform=AnyCPU
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.