The resources and data sources of the ews provider for Compute. Setting up the provider: Terraform & OpenTofu.
Resources
dcloud_eipAn Elastic IP: a public IPv4 address the organization keeps until it releases it, whatever instance it points at. Attach it with dcloud_eip_association. It is billed from allocation, attached or not.
dcloud_eip_associationPoints an Elastic IP at an instance. Its id is <elastic_ip_id>/<instance_id>.
dcloud_instanceA virtual machine. Created running; terraform destroy terminates it and deletes its machine.
dcloud_machine_imageAn image taken from an instance's disk, to launch more like it (machine_image_id of a launch template). The instance must be running or stopped. terraform destroy deregisters it and deletes the snapshot behind it.
dcloud_nat_gatewayIPv4 egress for the machines of a VPC that have no public address: a machine Deutsche Cloud runs and a default route to it. One per VPC.
dcloud_security_groupA security group: a firewall attached to instances. Rules are separate dcloud_security_group_rule resources, so adding one never replaces the group.
dcloud_snapshot_policyTakes machine images of instances on a schedule and keeps the newest retain_count of each. Deleting the policy keeps the images it took.
dcloud_subnetA share of a VPC's addresses in one availability zone. A VPC holds several, as long as their ranges do not overlap. Deleting one is refused while an instance or database still holds an address in it.
dcloud_volumeA block storage volume. Attach it with dcloud_volume_attachment.
dcloud_volume_snapshotA snapshot of a volume in object storage, restorable with dcloud_volume.snapshot_id. An attached volume needs stop_instance = true (its instance is stopped for the copy).
dcloud_vpcA VPC: one private network in a region. Divide its cidr_block with dcloud_subnet (one per availability zone, ranges must not overlap).
Data sources
dcloud_availability_zonesThe availability zones of a region (availability_zone_id of dcloud_subnet).
dcloud_imagesOperating system images instances can be launched from.
dcloud_instance_type_offeringsWhich instance types each availability zone sells right now. The provider sells from live stock, refreshed every minute: pick availability_zone_id of dcloud_instance (or a fallback server_type) from the rows with in_stock = true.