iot:CreatePackageVersion

Write

iot:CreatePackageVersion is a Write access-level action in the iot service. Grants permission to create a version under the specified package

Resource types

ARNs that iot:CreatePackageVersion can be scoped to in an IAM policy.

arn:${Partition}:iot:${Region}:${Account}:package/${PackageName} required
package
arn:${Partition}:iot:${Region}:${Account}:package/${PackageName}/version/${VersionName} required
packageversion

Condition keys

Keys you can use in the Condition block of a policy that grants iot:CreatePackageVersion.

aws:RequestTag/${TagKey} String

Filters access by a tag key that is present in the request

aws:TagKeys ArrayOfString

Filters access by a list of tag keys associated to the IoT resource in the request

aws:ResourceTag/${TagKey} String

Filters access by a tag key component of a tag associated to the IoT resource in the request

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowIotCreatePackageVersion",
      "Effect": "Allow",
      "Action": "iot:CreatePackageVersion",
      "Resource": "*"
    }
  ]
}

Related actions in iot

View all iot actions →