I'm using CF to create a deployment group for a CodeDeploy application, but I keep getting error that says the deployment group already exists (it does but it belongs to a different CodeDeploy application). If I manually create it, it is fine. Here is the template:
"DeploymentGroup": {
"Description": "Create a deployment group",
"DependsOn": [
"EC2Instance"
],
"Type" : "AWS::CodeDeploy::DeploymentGroup",
"Properties" : {
"ApplicationName" : "Foo",
"DeploymentConfigName": "CodeDeployDefault.AllAtOnce",
"DeploymentGroupName": "foo-group",
"Ec2TagFilters" : [
{
"Key" : "Name",
"Value" : "Foo",
"Type" : "KEY_AND_VALUE"
}
],
"ServiceRoleArn" : "...."
}
},