You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the Fastly CLI and publishing a Fastly Compute Service for the first time, the fastly.toml [setup] section is read and the resources mentioned in the section are created and linked to the Compute Service, this is a really nice feature for starter-kits however, there’s a potential issue with the implementation which limits the usefulness of this feature.
The resources are created using the exact same name as what is defined in the [setup] section, this means that you can not run fastly compute publish more than once on the same starter-kit within the same Fastly Account, because the resource name would have already been taken when the first fastly compute publish.
Resource names don't have to be equivalent to the name that the Fastly Service wants to use, this means is that we can create a unique resource name for every resource in [setup] and then link the resources to the new Fastly Service with the name provided in the [setup] section. We could prefix the resource names with name in the [setup] section to make it simpler to find the resource within the UI/CLI/API.
If we make this change, then it means a Fastly Account can deploy the same starter-kit as many times as they like, by only changing the name field in the fastly.toml, and not having to update the resource names in the code and in the [setup] section.
The text was updated successfully, but these errors were encountered:
When using the Fastly CLI and publishing a Fastly Compute Service for the first time, the
fastly.toml
[setup] section is read and the resources mentioned in the section are created and linked to the Compute Service, this is a really nice feature for starter-kits however, there’s a potential issue with the implementation which limits the usefulness of this feature.The resources are created using the exact same name as what is defined in the
[setup]
section, this means that you can not runfastly compute publish
more than once on the same starter-kit within the same Fastly Account, because the resource name would have already been taken when the firstfastly compute publish
.Resource names don't have to be equivalent to the name that the Fastly Service wants to use, this means is that we can create a unique resource name for every resource in
[setup]
and then link the resources to the new Fastly Service with the name provided in the[setup]
section. We could prefix the resource names with name in the[setup]
section to make it simpler to find the resource within the UI/CLI/API.If we make this change, then it means a Fastly Account can deploy the same starter-kit as many times as they like, by only changing the
name
field in thefastly.toml
, and not having to update the resource names in the code and in the[setup]
section.The text was updated successfully, but these errors were encountered: