Security in Compute

Who may do what (IAM), what is audited, how volumes are encrypted, and how instances are exposed to the network.

Last updated 18 November 2026View as Markdown

IAM actions

Every operation is checked against your IAM policies. A resource name looks like rn:ews:de1:<org>:ec2:instance/<instance id>; the resource types are instance, volume, vpc, subnet, security-group, key-pair, image, elastic-ip, snapshot-policy, nat-gateway and snapshot.

ActionAccessWhat it allows
ec2:DescribeInstancesReadList and describe instances
ec2:StartInstancesWriteStart stopped instances
ec2:StopInstancesWrite · destructiveStop running instances
ec2:RebootInstancesWrite · destructiveReboot instances
ec2:TerminateInstancesWrite · destructiveTerminate instances
ec2:RunInstancesWriteLaunch new instances
ec2:ModifyInstanceAttributeWrite · destructiveRename or resize an instance
ec2:GetInstanceUserDataRead · sensitiveRead the cloud-init user data an instance booted with
ec2:AssociateInstanceRoleWriteGive a running instance an IAM role it gets short-lived credentials for (also needs iam:PassRole on the role)
ec2:DisassociateInstanceRoleWrite · destructiveTake an instance’s IAM role away; it gets no new credentials
ec2:RotateInstanceIdentityWriteReplace an instance’s identity secret (the machine does this itself at boot and daily)
ec2:GetInstanceIdentityTokenRead · sensitiveAn instance gets a signed, five-minute identity token for one audience, to prove itself to a third party
ec2:AddInstanceKeyWriteAdd a key pair to a running instance’s authorized_keys (root and its default user), through Deutsche Cloud Connect, without a reboot
ec2:RemoveInstanceKeyWrite · destructiveRemove a key pair that Deutsche Cloud added from a running instance
ec2:StartSessionWriteOpen a terminal on an instance from the console or the CLI (Deutsche Cloud Connect, no inbound port)
ec2:DescribeSessionsReadList terminal sessions on instances: who, when, how long, how much
ec2:TerminateSessionWrite · destructiveEnd someone else’s terminal session (ending your own needs no permission)
ec2:RegisterConnectKeyWriteAn instance registers the key its Deutsche Cloud Connect tunnel logs in with (the machine does this itself)
ec2:DescribeVolumesReadList EBS volumes
ec2:CreateVolumeWriteCreate EBS volumes
ec2:DeleteVolumeWrite · destructiveDelete EBS volumes
ec2:AttachVolumeWriteAttach volume to instance
ec2:ModifyVolumeWriteRename a volume or grow its size
ec2:RotateVolumeKeyWriteReplace an encrypted volume’s LUKS passphrase with a new key
ec2:InstallVolumeHelperWriteGet the install script (with a fresh instance credential) that lets an older instance open encrypted volumes
ec2:DetachVolumeWrite · destructiveDetach volume from instance
ec2:DescribeSnapshotsReadList volume snapshots and their progress
ec2:CreateSnapshotWriteSnapshot a volume to object storage (stops its instance when asked to)
ec2:DeleteSnapshotWrite · destructiveDelete a volume snapshot and the stored data no other snapshot uses
ec2:DescribeVpcsReadList VPCs
ec2:DescribeNatGatewaysReadList NAT gateways and their public addresses
ec2:CreateNatGatewayWriteGive a VPC a NAT gateway, so machines without a public IPv4 reach the internet
ec2:DeleteNatGatewayWrite · destructiveDelete a NAT gateway; private machines lose IPv4 internet access
ec2:CreateVpcWriteCreate VPCs
ec2:DeleteVpcWrite · destructiveDelete VPCs
ec2:DescribeSecurityGroupsReadList security groups
ec2:CreateSecurityGroupWriteCreate security groups
ec2:DeleteSecurityGroupWrite · destructiveDelete security groups
ec2:AuthorizeSecurityGroupIngressWriteAdd inbound security group rules
ec2:RevokeSecurityGroupIngressWrite · destructiveRemove inbound security group rules
ec2:AuthorizeSecurityGroupEgressWriteAdd outbound security group rules
ec2:RevokeSecurityGroupEgressWrite · destructiveRemove outbound security group rules
ec2:DescribeSubnetsReadList subnets
ec2:DescribeAvailabilityZonesReadList availability zones and the provider location behind each
ec2:DescribeInstanceTypeOfferingsReadList which instance types each availability zone sells right now (live provider stock)
ec2:CreateSubnetWriteCreate a subnet in a VPC, in one availability zone
ec2:DeleteSubnetWrite · destructiveDelete a subnet no instance holds an address in
ec2:DescribeAddressesReadList Elastic IP addresses
ec2:AllocateAddressWriteAllocate a new Elastic IP
ec2:ReleaseAddressWrite · destructiveRelease an Elastic IP
ec2:AssociateAddressWriteAssociate an Elastic IP with an instance
ec2:DisassociateAddressWrite · destructiveDisassociate an Elastic IP from an instance
ec2:DescribeImagesReadList machine images
ec2:CreateImageWriteCreate a machine image from an instance
ec2:DeregisterImageWrite · destructiveDeregister a machine image and delete its provider snapshot
ec2:DescribeSnapshotPoliciesReadList snapshot policies and their schedules
ec2:CreateSnapshotPolicyWriteCreate a policy that snapshots instances on a schedule
ec2:UpdateSnapshotPolicyWriteChange, pause or run a snapshot policy now
ec2:DeleteSnapshotPolicyWrite · destructiveDelete a snapshot policy (the images it made are kept)
ec2:DescribeKeyPairsReadList key pairs
ec2:ImportKeyPairWriteImport an SSH public key as a key pair
ec2:DeleteKeyPairWrite · destructiveDelete a key pair

Generated from the service’s IAM descriptor. Sensitive reads hand over secret material or source code and are recorded in the audit log like writes; destructive writes delete, overwrite or revoke.

  • Start, stop and reboot are three actions: ec2:StartInstances, ec2:StopInstances (stop and shutdown) and ec2:RebootInstances. Renaming, resizing and changing security groups are all ec2:ModifyInstanceAttribute.
  • Security group rules are checked by direction: ec2:AuthorizeSecurityGroupIngress / …Egress to add, ec2:RevokeSecurityGroupIngress / …Egress to remove, read from the stored rule.
  • Launching with extra volumes also needs ec2:CreateVolume and ec2:AttachVolume; with an instance role, iam:PassRole on it; with a public hostname, dns:ChangeRecords on the zone.
  • Snapshotting an attached volume also needs ec2:StopInstances on its instance.
  • Choosing a KMS key for a volume needs kms:Encrypt on that key.
  • ec2:GetInstanceUserData is a sensitive read: not in the read-only presets, and recorded in the audit log whether allowed or refused.
  • The instance type catalog, image catalog and region list (/ec2/api/catalog/…) need a signed-in caller and no action.
  • Key pairs in the console use the KMS SSH key pair actions (kms:GenerateSshKeyPair, kms:ImportSshKeyPair, kms:DeleteSshKeyPair). The list needs kms:ListSshKeyPairs or ec2:DescribeKeyPairs.

Audit

Every write is recorded in the audit log with its outcome, as is every read of user data. A machine receiving its role's credentials is recorded as iam:AssumeRoleForInstance, and every identity token as ec2:GetInstanceIdentityToken.

Encryption

  • Volumes are encrypted with LUKS2 by default, each with its own key, wrapped by the platform key or by one of your KMS keys. The key is released only to the instance the volume is attached to, from its own address. Deleting the volume deletes the key. See Use encrypted volumes.
  • Volume snapshots of an encrypted volume are copied as ciphertext and keep their own copy of the key.
  • Root disks are not encrypted.

Network exposure

  • With no security group attached, every port of an instance is open to the internet. The launch wizard proposes a new group that lets in SSH from your address only, and warns Every port of this machine will be open to the internet. when you choose none. Through the API, CLI or Terraform, an instance launched without securityGroupIds has no group.
  • Security groups filter the public side; traffic inside a private network is not filtered.
  • An instance launched without a public IPv4 has a public IPv6 address and no inbound IPv4.
  • No root password is set on a machine; logins use keys.
  • Deutsche Cloud Connect is on unless you launch with connect: false: the machine keeps one outbound SSH connection to Deutsche Cloud, through which the console terminal logs in and keys are added, with no inbound port open. See What runs on your machines.
Did this page help you?