

本文為英文版的機器翻譯版本，如內容有任何歧義或不一致之處，概以英文版為準。

# 企業藍圖工廠中的藍圖生命週期
<a name="architecture-blueprint-lifecycle"></a>

企業藍圖工廠藍圖的生命週期包含三個典型階段：建立、更新和刪除。生命週期階段會影響組態管道和發行管道執行的動作。

## 藍圖建立
<a name="architecture-blueprint-lifecycle-create"></a>

若要在 中發行新的藍圖做為產品 AWS Service Catalog，開發人員會將藍圖合併到 產品儲存庫中、更新組態檔案中的產品組合，並將新產品新增至組態檔案。這會叫用組態管道。組態管道會建立產品的發行管道。在發行管道中，藍圖會進行多次安全檢查。然後，發行管道會將藍圖部署為 Service Catalog 產品。



![建立藍圖時設定和釋放管道動作。](https://docs.aws.amazon.com/zh_tw/prescriptive-guidance/latest/enterprise-blueprint-factory/images/lifecycle-create-product.png)


## 藍圖更新
<a name="architecture-blueprint-lifecycle-update"></a>

開發人員可以將更新的藍圖版本合併至產品儲存庫，以更新 Service Catalog 中的產品。此更新會叫用產品的 發行管道。更新後的範本會進行發行管道中的安全檢查。發行管道會部署 Service Catalog 產品的新版本。如需 Service Catalog 如何更新產品版本的詳細資訊，請參閱 Service Catalog 文件中的[管理版本](https://docs.aws.amazon.com/servicecatalog/latest/adminguide/managing-versions.html)。



![當您更新藍圖時，請釋出管道動作。](https://docs.aws.amazon.com/zh_tw/prescriptive-guidance/latest/enterprise-blueprint-factory/images/lifecycle-update-product.png)


或者，您可以更新藍圖相關聯的 Service Catalog 產品組合，也可以變更這些產品組合的共用組態。在這種情況下，開發人員會更新組態儲存庫中的組態檔案。組態管道會更新產品組合或產品組合共用。在這種情況下，Service Catalog 中的產品保持不變，但現在可能會包含在不同的產品組合中。



![更新產品組合或產品組合共享時設定管道動作。](https://docs.aws.amazon.com/zh_tw/prescriptive-guidance/latest/enterprise-blueprint-factory/images/lifecycle-update-portfolio.png)


## 藍圖刪除
<a name="architecture-blueprint-lifecycle-delete"></a>

**重要**  
您無法在 Service Catalog 產品刪除後將其復原。不過，您可以將藍圖重新部署為新產品。

當您刪除產品時，Service Catalog 會從包含產品的每個產品組合中移除所有產品版本。如需詳細資訊，請參閱 Service Catalog 文件中的[刪除產品](https://docs.aws.amazon.com/servicecatalog/latest/adminguide/productmgmt-delete.html)。

若要在 Service Catalog 中部署藍圖之後刪除藍圖，開發人員會刪除產品儲存庫中的藍圖。然後，他們從組態檔中移除產品。組態管道會將產品與包含產品的產品組合取消關聯，並刪除所有產品關聯。發行管道終止 Service Catalog 產品和[佈建的產品](https://docs.aws.amazon.com/servicecatalog/latest/adminguide/what-is_concepts.html#what-is_concepts-provprod)。然後，組態管道會刪除產品的發行管道。

如果組態管道無法取消所有產品資源的關聯，則不會刪除產品，且管道會失敗。您必須解決失敗的資源取消關聯，然後重新啟動管道。如需詳細資訊，請參閱[在刪除產品時解決失敗的資源取消關聯](https://docs.aws.amazon.com/servicecatalog/latest/adminguide/product-delete-exception.html)。



![刪除藍圖時設定和釋放管道動作。](https://docs.aws.amazon.com/zh_tw/prescriptive-guidance/latest/enterprise-blueprint-factory/images/lifecycle-delete-product.png)
