Pages

Tuesday, March 28, 2023

Delete IAM Certificate using CLI

There are two types of certificates in AWS,
  • ACM Certificate
  • IAM Certificate
to delete IAM Certificate, we can run the below CLI command,

aws iam delete-server-certificate --server-certificate-name <Certificate-name>

to perform this action we need the below permission with Resource's arn
    
    Action:
        "iam:DeleteServerCertificate",
    Resource:
        "arn:aws:iam::*:server-certificate/exst/dev/dev.*",

No comments:

Post a Comment