{"id":15372925,"url":"https://github.com/smaeda-ks/fastly-service-clone","last_synced_at":"2025-11-05T06:30:30.700Z","repository":{"id":106182153,"uuid":"323057965","full_name":"smaeda-ks/fastly-service-clone","owner":"smaeda-ks","description":"A shell script to copy Fastly service settings to another service.","archived":false,"fork":false,"pushed_at":"2021-11-24T21:28:27.000Z","size":19,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-22T16:53:39.301Z","etag":null,"topics":["fastly","fastly-api","fastly-service"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/smaeda-ks.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-12-20T11:40:00.000Z","updated_at":"2022-06-04T05:38:37.000Z","dependencies_parsed_at":"2023-04-01T11:12:25.817Z","dependency_job_id":null,"html_url":"https://github.com/smaeda-ks/fastly-service-clone","commit_stats":{"total_commits":8,"total_committers":1,"mean_commits":8.0,"dds":0.0,"last_synced_commit":"abe53e74db688aa7289c493de5abd1f33567dcb5"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smaeda-ks%2Ffastly-service-clone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smaeda-ks%2Ffastly-service-clone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smaeda-ks%2Ffastly-service-clone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/smaeda-ks%2Ffastly-service-clone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/smaeda-ks","download_url":"https://codeload.github.com/smaeda-ks/fastly-service-clone/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239449584,"owners_count":19640535,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fastly","fastly-api","fastly-service"],"created_at":"2024-10-01T13:53:42.364Z","updated_at":"2025-11-05T06:30:30.617Z","avatar_url":"https://github.com/smaeda-ks.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# service-clone.sh\nA shell script to copy service settings to another service.\n\n# Usage\n\n## Setup\n\n### Prerequisites\n\nThis script requires at least `curl` and `jq` commands to be available on your machine.\n\nNOTE: If you run this script on macOS please install `gnu-getopt`.\nhttps://formulae.brew.sh/formula/gnu-getopt\n\n### API Token\n\nPlease set `FASTLY_API_TOKEN` environment variable with your API token.\n\n```sh\nexport FASTLY_API_TOKEN=\"your_api_token\"\n```\n\n```sh\n$ chmod +x ./service-clone.sh\n```\n\n## Help\n\n```text\n$ ./service-clone.sh -h\nUsage: ./service-clone.sh [OPTIONS]\n\nList of available options\n  -s, --src SERVICE_ID    [required] source service ID\n  -d, --dst SERVICE_ID    [required] destinatuon service ID\n  -v, --version VERSION   (optional) source version number (default: the current active version)\n  --no-logging            (optional) exclude logging settings (default: include)\n  --no-acl                (optional) exclude acl (default: include)\n  --no-dictionary         (optional) exclude dictionry (default: include)\n  -h, --help              show help\n\nNeed more help? Visit: https://github.com/smaeda-ks/fastly-service-clone\n```\n\n## Command\n\n```sh\n$ ./service-clone.sh -s ${source_service_id} -d ${destination_service_id}\n```\n\n# Limitations\n\nWASM services (Compute@Edge) are not supported.\nAlso, this tool does not copy over the following part of service settings.\n\n1. custom pragma settings\n2. custom service limit (e.g., max domains, backends, etc)\n3. Image Optimizer settings (IO needs to be explicitly enabled on the destination service as well)\n4. WAF settings (WAF needs to be explicitly enabled on the destination service as well)\n\nIf you need to retain those settings please ask Fastly Support for further assistance.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmaeda-ks%2Ffastly-service-clone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmaeda-ks%2Ffastly-service-clone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmaeda-ks%2Ffastly-service-clone/lists"}