Let's quickly go through some important concepts about using key policies:
- For managing access to KMS resources, we can use key policies alone, or we can use IAM policies and grants along with key policies.
- To allow access to KMS CMK, we always need to use key policies, either alone or along with IAM policies or grants.
- The primary resource within KMS is the CMK.
- A CMK's ARN has the following form: arn:aws:kms:<region>:<account ID>:key/<key ID>.
- Some KMS operations also allow the use of an alias as a resource. An alias ARN has the following form: arn:aws:kms:<region>:<account ID>:alias/<alias name>.
- Any user, including the root user, can access CMK, but only if the key policy allows it.
- The default key policy when a CMK is ...