因此,我必须在Jenkins上使用AWSEB CLI部署AWS Elastic Beanstalk应用程序。当我尝试使用命令时,
eb init
它需要一些信息和凭据。凭据存储为参数,也可以是Jenkins实例上的秘密文件。命令没有这样的东西 - 参数一开始就提供它。是否有任何解决方案可以提供代码中的所有参数,在运行时,此命令现在可以正常使用,现在可以提供此命令,依此类推?这样的东西:
eb init --username XXX --password XXX --others XXX
这是该命令的文档
So I have to make deployment of AWS Elastic Beanstalk application with AWSEB CLI on Jenkins. When i try to use command
eb init
It requires some information and credentials. Credentials are stored as parameters or could be a secret file on Jenkins instance. Command have no such things like --parameter to provide it at start. Is there any solution to provide all parameters in the code that in runtime this command will now okay now this is provided now this and so on? Something like this:
eb init --username XXX --password XXX --others XXX
Here is documentation for that command
https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/eb-cli3-configuration.html
发布评论
评论(1)
此答案有助于您的问题吗?看来您可以将一些参数设置为环境变量,并将其设置为标志。例如。
然后
Will this answer help your issue? It seems you can set some of the parameters as Environment variables and rest as flags.. For example.
Then