# 変更に必要な権限（Proの操作）

アプリの各ボタンに必要なIAMアクションと、コピーできるポリシー。

変更には2つのものが必要です。[CloudConsole Pro](https://cloudconsole.dev/ja/help/free-and-pro)と、その操作を許可するAWSのロールです。各ボタンの場所は[スマホから変更できること](https://cloudconsole.dev/ja/help/actions)をご覧ください。ProがAWSの権限を付与することはありません。AWSが変更を拒否した場合は何も変更されず、アプリが正確なアクション名と、依頼すべき最小限のポリシーを表示します。

## アプリで行えるすべての変更

| サービス | アプリのボタン | IAMアクション |
|---|---|---|
| EC2 | Start, Stop, Reboot, Terminate; under More: type, snapshot, AMI…: Change instance type, Create EBS snapshot, Create image (AMI), Termination protection | `ec2:StartInstances` `ec2:StopInstances` `ec2:RebootInstances` `ec2:TerminateInstances` `ec2:ModifyInstanceAttribute` `ec2:CreateSnapshot` `ec2:CreateImage` |
| 無駄の検出 | Snapshot & delete, Delete (volume, NAT gateway, load balancer), Delete snapshot, Release (Elastic IP), Set 30-day retention (log group) | `ec2:DeleteVolume` `ec2:CreateSnapshot` `ec2:DeleteSnapshot` `ec2:ReleaseAddress` `ec2:DeleteNatGateway` `elasticloadbalancing:DeleteLoadBalancer` `logs:PutRetentionPolicy` |
| Monthly cost card | Change to gp3（gp2 の EBS ボリューム）、RDS データベースの Graviton クラスは RDS の Change class を開く | `ec2:ModifyVolume` |
| ECS | Force new deployment, Scale, Roll back (to the previous revision), Turn on / Turn off circuit breaker, Stop task | `ecs:UpdateService` `ecs:StopTask` |
| EC2 Auto Scaling | Set desired capacity, Min & max, Suspend processes (and resume them), Start instance refresh, Cancel instance refresh | `autoscaling:SetDesiredCapacity` `autoscaling:UpdateAutoScalingGroup` `autoscaling:SuspendProcesses` `autoscaling:ResumeProcesses` `autoscaling:StartInstanceRefresh` `autoscaling:CancelInstanceRefresh` |
| Lambda | Invoke, Memory & timeout, Throttle (emergency stop), Unthrottle, Edit environment variables, Publish version, Change version (of an alias), Reserved concurrency | `lambda:InvokeFunction` `lambda:UpdateFunctionConfiguration` `lambda:PublishVersion` `lambda:UpdateAlias` `lambda:PutFunctionConcurrency` `lambda:DeleteFunctionConcurrency` |
| S3 | Share link（署名付き URL）、Delete（オブジェクト）、Restore（アーカイブされたオブジェクト）、Turn on versioning / Resume versioning、Block all public access | `s3:GetObject` `s3:DeleteObject` `s3:RestoreObject` `s3:PutBucketVersioning` `s3:PutBucketPublicAccessBlock` |
| DynamoDB | Edit item, Delete item, Switch to on-demand / Switch to provisioned, Turn on point-in-time recovery | `dynamodb:PutItem` `dynamodb:DeleteItem` `dynamodb:UpdateTable` `dynamodb:UpdateContinuousBackups` |
| RDS | Start, Stop, Reboot (or Reboot with failover on Multi-AZ), Snapshot, Change class, Turn on / Turn off deletion protection | `rds:StartDBInstance` `rds:StopDBInstance` `rds:RebootDBInstance` `rds:CreateDBSnapshot` `rds:ModifyDBInstance` |
| SQS | Start redrive, Stop (a redrive), Purge, Peek messages, Send test message | `sqs:StartMessageMoveTask` `sqs:CancelMessageMoveTask` `sqs:PurgeQueue` `sqs:ReceiveMessage` `sqs:SendMessage` |
| Step Functions | Start execution, Run again, Stop, Redrive | `states:StartExecution` `states:StopExecution` `states:RedriveExecution` |
| CodePipeline | Approve / Reject, Release change, Retry failed actions (Retry on Home), Stop execution | `codepipeline:PutApprovalResult` `codepipeline:StartPipelineExecution` `codepipeline:RetryStageExecution` `codepipeline:StopPipelineExecution` |
| CloudFormation | Cancel update, Continue update rollback | `cloudformation:CancelUpdateStack` `cloudformation:ContinueUpdateRollback` |
| CloudWatchアラーム | Mute notifications / Unmute（Home にも Mute）、Set state to OK、Create alarm（メトリクスグラフから） | `cloudwatch:DisableAlarmActions` `cloudwatch:EnableAlarmActions` `cloudwatch:SetAlarmState` `cloudwatch:PutMetricAlarm` |
| CloudWatch Logs | Retention（ロググループ） | `logs:PutRetentionPolicy` `logs:DeleteRetentionPolicy` |
| EventBridge | Enable rule / Disable rule | `events:EnableRule` `events:DisableRule` |
| Secrets Manager | Rotate now, Update value | `secretsmanager:RotateSecret` `secretsmanager:PutSecretValue` |
| Certificate Manager (ACM) | Request（証明書のリクエスト）、Resend validation email、Delete（どこにも使われていない証明書） | `acm:RequestCertificate` `acm:ResendValidationEmail` `acm:DeleteCertificate` |
| Systems Manager | Parameter Store：Create、Edit value、Delete。Run Command：Run（EC2 → More → Run command からも可） | `ssm:PutParameter` `ssm:DeleteParameter` `ssm:SendCommand` |
| CodeBuild | Start build、Retry build（Home では Retry）、Stop build | `codebuild:StartBuild` `codebuild:RetryBuild` `codebuild:StopBuild` |
| Route 53 | レコードの値とTTLを編集し（レコードの鉛筆アイコン）、同期されるまで変更を追跡 | `route53:ChangeResourceRecordSets` `route53:GetChange` |
| IAM | Deactivate / Reactivate an access key | `iam:UpdateAccessKey` |
| CloudFront | Create invalidation | `cloudfront:CreateInvalidation` |
| Tags（Tagsセクションがあるすべてのリソース画面） | Add tag, Edit, Remove | `tag:TagResources` `tag:UntagResources` |
| Cloud Controlのサービス（約110） | Edit a property, Delete | `cloudformation:UpdateResource` `cloudformation:DeleteResource` |
| 請求（AWS Budgets） | Create a budget alert | `budgets:ModifyBudget` |
| Tools: Service quotas | Request increase | `servicequotas:RequestServiceQuotaIncrease` |

## すべてを含むポリシー

別の「オペレーター」ロールに追加するか、読み取り専用ポリシーと併用します。`"Resource": "*"`は最も広い指定です。可能な限り特定のARNに絞り込むか、タグの条件を追加してください。

```
{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "CloudConsoleActions",
      "Effect": "Allow",
      "Action": [
        "acm:DeleteCertificate",
        "acm:RequestCertificate",
        "acm:ResendValidationEmail",
        "autoscaling:CancelInstanceRefresh",
        "autoscaling:ResumeProcesses",
        "autoscaling:SetDesiredCapacity",
        "autoscaling:StartInstanceRefresh",
        "autoscaling:SuspendProcesses",
        "autoscaling:UpdateAutoScalingGroup",
        "budgets:ModifyBudget",
        "cloudformation:CancelUpdateStack",
        "cloudformation:ContinueUpdateRollback",
        "cloudformation:DeleteResource",
        "cloudformation:UpdateResource",
        "cloudfront:CreateInvalidation",
        "cloudwatch:DisableAlarmActions",
        "cloudwatch:EnableAlarmActions",
        "cloudwatch:PutMetricAlarm",
        "cloudwatch:SetAlarmState",
        "codebuild:RetryBuild",
        "codebuild:StartBuild",
        "codebuild:StopBuild",
        "codepipeline:PutApprovalResult",
        "codepipeline:RetryStageExecution",
        "codepipeline:StartPipelineExecution",
        "codepipeline:StopPipelineExecution",
        "dynamodb:DeleteItem",
        "dynamodb:PutItem",
        "dynamodb:UpdateContinuousBackups",
        "dynamodb:UpdateTable",
        "ec2:CreateImage",
        "ec2:CreateSnapshot",
        "ec2:DeleteNatGateway",
        "ec2:DeleteSnapshot",
        "ec2:DeleteVolume",
        "ec2:ModifyInstanceAttribute",
        "ec2:ModifyVolume",
        "ec2:RebootInstances",
        "ec2:ReleaseAddress",
        "ec2:StartInstances",
        "ec2:StopInstances",
        "ec2:TerminateInstances",
        "ecs:StopTask",
        "ecs:UpdateService",
        "elasticloadbalancing:DeleteLoadBalancer",
        "events:DisableRule",
        "events:EnableRule",
        "iam:UpdateAccessKey",
        "lambda:DeleteFunctionConcurrency",
        "lambda:InvokeFunction",
        "lambda:PublishVersion",
        "lambda:PutFunctionConcurrency",
        "lambda:UpdateAlias",
        "lambda:UpdateFunctionConfiguration",
        "logs:DeleteRetentionPolicy",
        "logs:PutRetentionPolicy",
        "rds:CreateDBSnapshot",
        "rds:ModifyDBInstance",
        "rds:RebootDBInstance",
        "rds:StartDBInstance",
        "rds:StopDBInstance",
        "route53:ChangeResourceRecordSets",
        "route53:GetChange",
        "s3:DeleteObject",
        "s3:GetObject",
        "s3:PutBucketPublicAccessBlock",
        "s3:PutBucketVersioning",
        "s3:RestoreObject",
        "secretsmanager:PutSecretValue",
        "secretsmanager:RotateSecret",
        "servicequotas:RequestServiceQuotaIncrease",
        "sqs:CancelMessageMoveTask",
        "sqs:PurgeQueue",
        "sqs:ReceiveMessage",
        "sqs:SendMessage",
        "sqs:StartMessageMoveTask",
        "ssm:DeleteParameter",
        "ssm:PutParameter",
        "ssm:SendCommand",
        "states:RedriveExecution",
        "states:StartExecution",
        "states:StopExecution",
        "tag:TagResources",
        "tag:UntagResources"
      ],
      "Resource": "*"
    }
  ]
}
```

## 補足

- **SQSのredrive**は、デッドレターキューのメッセージを元のキューに戻します。AWSでは、デッドレターキューのメッセージを読み取って削除し、宛先のキューに送る権限（`sqs:ReceiveMessage`、`sqs:DeleteMessage`、`sqs:GetQueueAttributes`、`sqs:SendMessage`）も必要です。
- **S3のShare link**は、スマホ上で署名付きURLを作成します。誰かがURLを開くまでAWSには何も送られず、開かれた時点でAWSが署名者であるお客様の`s3:GetObject`権限を確認します。有効期間は最長7日間、またはSSOやロールを使っている場合はサインインの期限までの、いずれか早いほうです。
- **DynamoDBのEdit item / Delete item**は、表示していた属性が変わっていない場合にだけ実行されます。プロビジョニングからオンデマンドへの切り替えは24時間に4回まで、オンデマンドからプロビジョニングへはいつでも行えます。
- **RDSのChange class**は、`rds:DescribeOrderableDBInstanceOptions`（読み取り専用。権限がない場合はクラスを手入力）で、エンジンのバージョンが対応するクラスを一覧表示します。すぐに適用すると数分間のダウンタイムが発生します。
- メッセージの**Peek**は変更として扱われます。メッセージを受信すると、可視性タイムアウトの間、コンシューマーから見えなくなるためです。
- **実行中のEC2インスタンスのタイプ変更**は、停止、タイプの変更、起動の3段階で行います。`ec2:StopInstances`、`ec2:ModifyInstanceAttribute`、`ec2:StartInstances`が必要です。停止中のインスタンスなら`ec2:ModifyInstanceAttribute`だけで足ります。
- **Create image (AMI)**は、オンにしない限りインスタンスを再起動しません。**Copy SSM session command**は、パソコン用の`aws ssm start-session`をコピーするだけで、何も変更せず、無料です。
- **ECSのロールバック**は、どのコンテナイメージが変わるかを表示したうえで、現在より古い、最新のアクティブなタスク定義リビジョンをデプロイします。その特定には`ecs:ListTaskDefinitions`と`ecs:DescribeTaskDefinition`を使います。
- **Lambdaの環境変数**の変更は`$LATEST`にだけ反映されます。発行済みのバージョンは値を保持するため、バージョンを指すエイリアスには、新しいバージョンの発行（`lambda:PublishVersion`）とエイリアスの移動（`lambda:UpdateAlias`）が必要です。
- **シークレットの値の表示**は`secretsmanager:GetSecretValue`を呼び出します。変更ではありませんが、CloudTrailに記録されます。
- **SecureString パラメータの表示**では、復号ありで `ssm:GetParameter` を呼び出します。カスタマー管理の KMS キーの場合は、そのキーに対する `kms:Decrypt` も必要です（AWS のデフォルトキー `alias/aws/ssm` なら追加の権限は不要です）。カスタマー管理キーで SecureString を保存するには、そのキーに対する `kms:Encrypt` が必要です。
- **Run Command**（`ssm:SendCommand`）はインスタンス上で root として実行されます。ドキュメント（`arn:aws:ssm:*:*:document/AWS-RunShellScript`）とインスタンスの ARN またはタグで範囲を絞ってください。結果の読み取りには `ssm:ListCommandInvocations` と `ssm:GetCommandInvocation` を使います。
- **CodeBuild の Retry build** は同じソースバージョンで再実行します。パイプラインが開始したビルドの場合は、リリースを先に進めるため、代わりにパイプラインのステージを再試行してください。
- **タグ**はResource Groups Tagging APIを使うため、リソース固有のタグ付け権限（例：`ecr:TagResource` / `ecr:UntagResource`、`cloudwatch:TagResource`）も必要です。キーが`aws:`で始まるタグはAWSのもので、変更できません。
- **Cloud Control**（カタログにある約110のサービスでのEdit a property、Delete）は、お客様としてそのサービスを呼び出すため、サービス固有の更新または削除の権限（例：`ecr:PutImageTagMutability`、`ecr:DeleteRepository`）も必要です。ボタンが表示されるのは、リソースタイプのスキーマ（`cloudformation:DescribeType`）に更新または削除のハンドラーがある場合だけで、その場で変更できる単純なプロパティだけが対象です。
- **Create a budget alert**：AWS BudgetsにはCreateBudgetという個別の権限はなく、予算とその通知の作成には`budgets:ModifyBudget`が必要です。
- 組織のサービスコントロールポリシーも上乗せで適用されます。それが操作をブロックしている場合、ロールを変更しても解決せず、アプリにもそう表示されます。

**解決しない場合**

試したことと、アプリに表示されたメッセージを添えて[support@cloudconsole.dev](mailto:support@cloudconsole.dev)までメールでお問い合わせください。アクセスキーやシークレットは送らないでください。2営業日以内にご返信します。

## 関連ページ

- [スマホから変更できること](https://cloudconsole.dev/ja/help/actions) – 安全性と変更操作
- [推奨する読み取り専用の権限](https://cloudconsole.dev/ja/help/recommended-permissions) – 権限とエラー
- [ガードレール：変更を確認する仕組み](https://cloudconsole.dev/ja/help/guardrails) – 安全性と変更操作
- [「No permission」などのアクセスエラーを理解する](https://cloudconsole.dev/ja/help/access-denied) – 権限とエラー

[すべてのヘルプトピック →](https://cloudconsole.dev/ja/help/)

---

Source: https://cloudconsole.dev/ja/help/permissions-for-changes

CloudConsole is an independent iPhone and Android app for Amazon Web Services by Cloudconcur Ltd. It is not affiliated with Amazon Web Services.
