codedeploy:DeregisterOnPremisesInstance

Write

codedeploy:DeregisterOnPremisesInstance is a Write access-level action in the codedeploy service. Grants permission to deregister an on-premises instance

Resource types

ARNs that codedeploy:DeregisterOnPremisesInstance can be scoped to in an IAM policy.

arn:${Partition}:codedeploy:${Region}:${Account}:instance:${InstanceName}
instance

Condition keys

No condition keys are documented for this action.

Example IAM policy

A minimal policy that allows codedeploy:DeregisterOnPremisesInstance. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowCodedeployDeregisterOnPremisesInstance",
      "Effect": "Allow",
      "Action": "codedeploy:DeregisterOnPremisesInstance",
      "Resource": "*"
    }
  ]
}

Related actions in codedeploy

View all codedeploy actions →