View a markdown version of this page

在使用者旅程和服務層級套用政策 - AWS 彈性中樞

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

在使用者旅程和服務層級套用政策

政策可以在應用程式階層的兩個層級套用:

Level 如何套用 誰通常擁有它
使用者旅程 套用至系統內的使用者旅程 中央 SRE 團隊
服務 直接套用至服務實體 服務團隊

若要將政策套用至使用者旅程,請使用下列命令。該使用者旅程中的所有服務都會根據此政策進行評估:

aws resiliencehubv2 update-user-journey \ --system-arn "arn:aws:resiliencehub:region:account-id:system/system-name:id" \ --user-journey-id "user-journey-id" \ --policy-arn "arn:aws:resiliencehub:us-east-1:123456789012:policy/critical-dr:abc123"

若要將政策直接套用至服務,請使用下列命令:

aws resiliencehubv2 update-service \ --service-arn "arn:aws:resiliencehub:..." \ --policy-arn "arn:aws:resiliencehub:us-east-1:123456789012:policy/high-performance:def456"