amazon-web-services - 让多个ec2实例执行远程脚本

标签 amazon-web-services amazon-ec2

我知道我可以创建一个实例的 AMI 并启动多个相同的服务器,但如果我需要对脚本进行更改,我需要逐一编辑它们或创建另一个 AMI。有没有办法让我的 ec2 实例使用主实例中的脚本或解决此问题的任何其他解决方案。

最佳答案

最近发布的 EC2 运行命令可能正是您所需要的:

Run Command is a feature that enables you to securely manage the configuration of your Amazon EC2 instances. Run Command provides a simple way of automating common administrative tasks like executing Shell scripts and commands on Linux, running PowerShell commands on Windows, installing software or patches, and more. Run Command allows you to execute these commands across multiple instances and provides visibility into the results, making it easy to manage configuration change across fleets of instances.

https://aws.amazon.com/ec2/run-command/

https://aws.amazon.com/blogs/aws/new-ec2-run-command-remote-instance-management-at-scale/

关于amazon-web-services - 让多个ec2实例执行远程脚本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34403350/

相关文章:

postgresql - Amazon RDS SSL 证书的意外到期日期

amazon-web-services - 适用于 Quicksight 和 SageMaker 的 AWS Cloudformation?

python - 在AWS上运行Python脚本并将5GB文件传输到EC2

python - 如何在 boto3 中创建源为 sg 的入口规则

amazon-web-services - 云信息 : How to get SecondaryPrivateIP from an instance

amazon-web-services - S3 事件的 AWS Lambda Backlog

android - 如何修改 `AWS cognito`用户池中用户未认证前的电话号码?

amazon-web-services - 如何在我的 CF 模板中设置 Glue Crawler RecrawlPolicy

amazon-web-services - Auto Scaling Group 启动配置更改

ubuntu - 无法使用 CodeDeploy 部署代码