Can I import a resource into a root stack containing nested stacks?

0

I use sam to manage our API resources. We created a bucket and cloudfront distribution for our front end application outside of the sam-managed cloudformation stuff. I would like to import these resources into the stack. I've followed the directions to import, however the change-set fails to create because it thinks there are changes in all nested stacks (referenced as AWS::Serverless::Application). I thought of trying to create a separate stack and then import it as a nested stack, but I think the import changeset will have the same problem. The only hint I have so far is that I might be able to set all the nested stacks to Retain and then remove them from the root template then reimport them all once the resources are imported, but this seems ... daunting.

Is there a better way?

답변 없음

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠