Incorporate existing AWS resources into a cloudformation stack

后端 未结 6 1803
余生分开走
余生分开走 2020-12-10 10:45

Is there a way to incorporate existing AWS resources that were created outside of cloudformation into an existing cloudformation stack? I\'d like to do this without having t

6条回答
  •  情话喂你
    2020-12-10 11:42

    You can do this by passing existing resource information to your stack via Parameters. Here is an example of how to pass these parameters to the stack.

    Check out this blog post from Eric Hammond describing how you can incorporate these parameters into the rest of the stack. The use-case described is a bit different in that they are optionally creating new resources if they aren't passed in, but the overall structure applies to the case you've described.

    In this case I don't think Drift Detection will help you, since it will show differences between deployed resources and the configuration described in a stack. Resources defined/created outside of the stack won't be checked.

提交回复
热议问题