Associate a Role to a running AWS instance

前端 未结 4 835
陌清茗
陌清茗 2021-02-13 04:40

In order to run AWS monitoring scripts (http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/mon-scripts-perl.html) on one of my ec2 existing instance, I need a IAM

4条回答
  •  别那么骄傲
    2021-02-13 04:49

    AWS doesn't allow you to modify the instance role after launching the instance.

    You can either:

    1) Launch a new instance with the role needed by taking the AMI of the already running instance and reassigning the EIP.

    or

    2) Create a headless user, generate access key and secret key for the user with specific permssion, and use those keys.

提交回复
热议问题