问题标签 [aws-shell]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
shell - 如何在不杀死工作的情况下退出 AWS shell
我在 Amazon Web Service shell 上运行一个很长的 python 进程,说它是
当我退出 shell 时,它会终止进程,所以我尝试将它放在后台使用nohup python &
.
我退出了 shell,当我回来时,我输入ps -ef | grep python
了 ,进程仍然存在,但是它不再打印任何输出(作业继续写入输出)。我试过fg <job_number>
了,我得到了“没有这样的工作”。
结果ps -ef | grep python
是
进程还在运行吗?我如何继续检查它的输出?
amazon-s3 - 使用 S3 的 aws-shell 将所有文件设为私有
我想将存储桶的文件(所有文件)更改为私有文件,所以我想知道如何使用 aws-shell 来做到这一点。我认为也许该mv
命令可以用来实现这一点,但我不知道如何使用它,因为这是我第一次使用 aws-shell。
编辑 1
我尝试使用s3 mv s3://bucket s3://temporary --recursive --acl private
,但我需要创建另一个临时存储桶来进行交换。因为这个错误:
无法将文件 mv 到自身 [...]
有没有办法在不创建临时存储桶的情况下做到这一点?我的意思是这可能会导致重复文件使用事务和空间的费用
amazon-web-services - AWS CLI - 使用 jmespath 查询的结果
我有问题,所以你会保护我的生命:-)
当我从 aws-shell 运行以下命令时
结果分为 3 行:
自动化-X arn:aws:cloudformation:XX 无
PARAM_VALUE1
PARAM_VALUE2
但我的目标是只有一排(像这样)
自动化-X arn:aws:cloudformation:XX 无 PARAM_VALUE1 PARAM_VALUE2
也就是说,在第一行也是唯一一行上有 PARAM_VALUE1 和 PARAM_VALUE2。
谁能帮我?
我很感激,提前谢谢你
我忘了说明命令的结果是多行(超过1000行),每行由6个参数组成
json - jmespath query on aws-shell
I need to extract, from AWS CLOUDFORMATION, all the stacks that contain, within the name, a specific string. I use the following command from aws-shell
and I'm able to extract all the info that I need.
The problem is that I need to search also another string (suppose STRING_B)...What is the correct command? How can I insert an OR condition into the "?contains" ?
I made several attempts, but none has been successful.
e.g.
but this solution extract only the records that satisfy the first condition (STRING_A)
For my application, instead of "contain" I can also use "ends_with".....the problem/question is the same :-)
I appreciate your help, thank you in advance
amazon-web-services - aws-shell 在 AWS Lightsail 上的 Ubuntu 20 中不起作用
我用 Ubuntu 20.04 创建了 AWS Lightsail 实例,安装了 python3 和 pip3。pip3 install aws-shell
我使用命令安装了 AWS Shell 工具。但是,当我尝试运行它时,它会Killed
在几分钟后挂起并输出。
这是它的样子:
在AWS Lightsail 的Metrics页面上,它显示Burstable zone中的 CPU 利用率峰值。所以我很伤心,这只是通过加载 CPU 几分钟而浪费 CPU 配额并且不起作用。
我已经在虚拟机上的 Ubuntu 16.0 上完成了相同的步骤,并且在那里运行良好。所以我在这里完全迷失了,不知道该如何解决。试图谷歌这个问题,并没有找到任何相关的东西。
UPD:我也刚刚尝试使用 python 2.7 版本安装 aws-shell,它仍然无法正常工作。所以它不适用于 python 3.8.5 和 2.7.18
aws-cli - 使用 aws cli 或 CDK 一次为 Cloudwatch 的所有日志组创建加密
为了使用 CLI 命令为 CloudWatch 所有日志组创建加密,需要单独的日志组名称。有没有办法使用单个命令一次加密 CloudWatch 中的所有日志组?或者有没有办法使用CDK来做到这一点?
我遵循了以下 AWS 文档:
https ://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/encrypt-log-data-kms.html
每次关联 KMS 密钥时都要求我提供单个组名。