terraform-provider-docker/examples/resources/docker_service/import.sh

6 lines
No EOL
203 B
Bash

#!/bin/bash
## A Docker service can be imported using the long id,
## e.g. for a service with the short id `55ba873dd`:
$ terraform import docker_service.foo "$(docker service inspect -f {{.ID}} 55b)"