【发布时间】:2019-10-17 19:25:24
【问题描述】:
我正在尝试运行 https://github.com/rebuy-de/aws-nuke 并将答案传递给交互式提示。脚本要求提供帐户的别名(两次)。 不幸的是,它只通过了第一个答案,第二个被省略了。我得到的错误:
您要继续吗?输入帐户别名以继续。 错误:EOF
函数在 AWS Lambda 中:
command='/tmp/aws-nuke -c /tmp/config.yml --no-dry-run --access-key-id '+newsession_id+' --secret-access-key '+newsession_key+' --session-token '+newsession_token+'''<< EOF
alias
alias
EOF'''
popen = subprocess.Popen(command, shell=True)
【问题讨论】:
标签: python bash amazon-web-services aws-nuke