Cross account deployment using CodeDeployServerDeployAction #13069
-
I am creating a cross account deployment code pipeline to deploy my application to EC2 instance which is in another aws account. Should I implement my own custom action to do a cross account deployment to EC2 instances? Like I did for cross account deployment to my Elastic beanstalk environments in another aws account which works perfectly. - ElasticBeanstalkDeployAction.ts |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 13 replies
-
Hey @dhirajkhodade , The Thanks, |
Beta Was this translation helpful? Give feedback.
-
Notice that the error message talks about an const application = new codedeploy.ServerApplication(this, 'App', {
applicationName: PhysicalName.GENERATE_IF_NEEDED,
});
this.ec2deploymentGroup = new codedeploy.ServerDeploymentGroup(this, props.applicationName, {
deploymentGroupName: PhysicalName.GENERATE_IF_NEEDED,
application: application,
ec2InstanceTags: new codedeploy.InstanceTagSet({
'Name': [props.applicationName],
}),
}); |
Beta Was this translation helpful? Give feedback.
-
I'm glad you figured it out @dhirajkhodade 🙂. Would you mind opening us an issue about the use case you ran into? I feel like going new codedeploy.ServerDeploymentGroup(this, props.applicationName, {
deploymentGroupName: PhysicalName.GENERATE_IF_NEEDED,
}); should automatically create the |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
I'm glad you figured it out @dhirajkhodade 🙂.
Would you mind opening us an issue about the use case you ran into? I feel like going
should automatically create the
Application
owning the Deployment Group also withPhysicalName.GENERATE_IF_NEEDED
.