Search code examples
amazon-web-servicesaws-cloudformationaws-cdkaws-code-deploy

How to import an existing resource into AWS CDK from a different AWS account


I have an AWS codpipeline created with CDK and I want to deploy to a codedeploy deployment group in another account. Any Idea how I can import an existing deployment group in another account into my stack?


Solution

  • You can't do that. CloudFormation is account and region based. You can't create a stack which manages resources in other account.