[英]AWS Cloudformation - nested stacks - stack keeps failing deploy but not reason is given
我得到了一個僅由兩個嵌套堆棧組成的簡單 cloudformation 堆棧,一個用於托管和服務單頁應用程序 web 應用程序,另一個用於身份驗證邏輯(目前它只定義一個 Cognito 用戶池資源)。 auth 嵌套堆棧在部署期間不斷失敗,但我無法弄清楚為什么命令沒有給出合理的動機。 即使在手動刪除 ...
[英]AWS Cloudformation - nested stacks - stack keeps failing deploy but not reason is given
我得到了一個僅由兩個嵌套堆棧組成的簡單 cloudformation 堆棧,一個用於托管和服務單頁應用程序 web 應用程序,另一個用於身份驗證邏輯(目前它只定義一個 Cognito 用戶池資源)。 auth 嵌套堆棧在部署期間不斷失敗,但我無法弄清楚為什么命令沒有給出合理的動機。 即使在手動刪除 ...
[英]Assign tags to all resources of a nested stack
我正在嘗試使用 NestedStack 但我找不到將標簽傳播到堆棧的所有資源的方法,因為 NestedStack 構造沒有字段tags ,就像構造Stack中的情況一樣。 因此,例如,我無法運行 const stack = cdk.Stack.of(scope); for (let key in ...
[英]Error understanding Apigateway and nested stack on AWS cloudformation
我正在努力將一個大模板與使用 apigateway AWS 的 lambda 解耦。 我解決了有關嵌套堆棧過程的多個錯誤,但目前錯誤並不清楚。 你能檢查一下定義中的問題嗎? 主堆棧顯示來自 api 子堆棧創建的一般錯誤,但 api-substack 顯示下一個錯誤: 接下來顯示模板代碼: 主模板 ...
[英]Use Nested Stack to separate API gateway error with ouse on other stacks
嘗試部署嵌套堆棧時出現錯誤是否有 APIGateway 設置,而其他有 lambdas 服務主模板 SubStackAPIDev 子棧λA 當我執行 sam package 命令時,控制台返回下一個錯誤: 如何將 ApGateWay 資源導出到主模板,以發送另一個堆棧? ...
[英]AWS CloudFormation NestedStacks vs Modules
在 CloudFormation 中, 嵌套堆棧和模塊都通過創建通用組件來鼓勵可重用性。 從 AWS 文檔中,沒有說明何時使用什么。 有什么建議? ...
[英]How the Cloud formation template in yaml will be for checking whether the exported stack is exists or not (Using nested? stack)
基於以下代碼嘗試實現 YAML 模板,並想檢查導出的堆棧是否存在。 請建議方法。 ...
[英]Cloudformation - Passing Parameters to second level stack
我正在嘗試將一些參數傳遞給嵌套堆棧。 我目前的配置如下: 根模板: 第一個嵌套堆棧: 第二級嵌套堆棧: 使用此配置,當 AWS 嘗試部署第一個嵌套堆棧時出現錯誤,因為它需要字符串或 object 字符串。 我還嘗試在第一級堆棧中使用 CommaDelimitedList 類型,但在第二級仍然出現錯誤 ...
[英]How to use Mappings in AWS CloudFormation templates in nested stacks
讓我們考慮在同一 AWS CloudFormation 模板中使用以下Mappings和FindInMap 。 他們會工作的。 Now, consider the VpcIds under Mappings are in the master.yaml template, and I am try ...
[英]AWS Cloudformation - Stack vs NestedStack
我認為這將在互聯網上得到非常清楚的回答。 但是對於何時使用一種類型的堆棧以及何時使用另一種類型的堆棧,我沒有找到足夠的答案。 所以主要問題是常規堆棧和嵌套堆棧有什么區別? 我可以僅使用常規堆棧完美地 model 我的基礎架構。 此外,我可以僅使用嵌套堆棧和一個根常規堆棧來完美地 model 我的基 ...
[英]Passing parameters from parent stack to child stack in nested stack - Cloudformation
我正在嘗試使用 root 將參數傳遞給面向互聯網的 elb。 我創建了一個嵌套堆棧,其中 root.yml 充當根,vpc 和 elb 是子堆棧。 我正在嘗試將參數從根傳遞到 elb.yml,但它給出了一個錯誤Parameter values specified for a template wh ...
[英]Referencing the output of Parent stack in nested stack - Cloudformation
我正在嘗試創建嵌套堆棧,但遇到了麻煩,因為我是新手並且仍在學習過程中。 我創建了具有 2 個私有子網和 2 個公共子網的 vpc。 然后將面向 Internet 的 elb 連接到 2 個公共子網。 我認為我沒有正確引用它。 Vpc 已創建,但在創建 elb 時出現錯誤Output 'VpcID ...
[英]Migrating current resources into reusable nested stack
我在每個微服務中都有一個整體式 cloudformation 堆棧,創建相同類型的資源,我想通過將其分解為嵌套堆棧並在每個服務中重用它們來使其模塊化。 我對嵌套堆棧的理解是,您可以將它們用作可重用單元來創建捆綁資源。 我知道通過將刪除策略設置為保留並導入另一個堆棧來導入現有資源。 我無法理解如何使用 ...
[英]CloudFormation nested stacks outputs limit
事實: CloudFormation 輸出限制每個模板60個。 我有 90 個資源要導出,所以我創建了以下結構: parent_stack.template (包含下面的嵌套堆棧) stack01.template (包含 45 個資源及其輸出) stack02.template (包含 4 ...
[英]How to conditionalize nested stack creation via CommaDelimitedList parameter
在我的 AWS CloudFormation 模板中,我想通過 CommaDelimitedList 參數對嵌套堆棧的創建進行條件化。 我會這樣做: 不幸的是,Fn::Contains 不是有效的 Fn。 不過,我認為它很好地說明了我想要實現的目標。 請問您將如何實現這一目標? ...
[英]What access is necessary to update a CloudFormation stack with nested stacks
使用嵌套堆棧是 AWS CloudFormation 中的最佳實踐,實際上它們解決了許多問題(代碼重用、堆棧限制等)。 使用更新所需的最少訪問權限(使用 UpdateStack 命令的 RoleARN)進行任何類型的更新通常也是一個好主意。 我似乎找不到任何有關更新具有嵌套堆棧的堆棧所必需的 IAM ...
[英]Can UsePreviousTemplate (in CloudFormation UpdateStack) be used together with nested stacks
使用嵌套堆棧是 AWS CloudFormation 中的最佳實踐,實際上它們解決了許多問題(代碼重用、堆棧限制等)。 更新堆棧時(通過 UpdateStack 或 ChangeSets),可以提供UsePreviousTemplate=True以指示 CloudFormation 使用堆棧當前存在 ...