LoginSignup
2
1

More than 5 years have passed since last update.

AWS CodeDeployで デプロイ設定を変えようとしたら、doesn't have permission to perform the following operation エラー

Posted at

AWS CodeDeployで デプロイ設定を変えようとしたら、エラーが出た

he service role arn:aws:iam::XXXXXXX:role/xxxxx doesn't have permission to perform the following operation: autoscaling:DescribeLifecycleHooks

え、roleもポリシーも変えてないのになんで?

調べてみた

困っとる人いた

I have code-deploy set-up between by bit-bucket account and my Amazon AWS instance.
I am able to deploy to the test server everyday without issue.
But when i try to add the instance of our production server to the list of instances, i get the above error


Note: I have added this instance and successfully deployed the code in the past , i'm not sure why i get this error now.

Any directions/hints on how to solve this would be appreciated.

つまり、何も変えてないのにいきなりエラーになったよ。
同じ現象にあってる人に会うと嬉しい。

そして解決方法

  • autoscalingの権限があるポリシーを作成しましょう

autoscaling:DescribeLifecycleHooksって書いてあるけど、autoscaling全権上げた方が早い。

スクリーンショット 2018-07-17 10.59.00.png
スクリーンショット 2018-07-17 10.59.12.png

  • roleに作成したポリシーをアタッチ

今回はCodeDeployAutoscalingDescribeLifecycleHooksという名前でroleを作成しました

スクリーンショット 2018-07-17 11.02.09.png

再度、CodeDeployで設定を変えて保存したら、保存できるようになりますよ

2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1