You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment
resource"aws_codedeploy_app""app1" {
compute_platform ="Server"
name ="app1"
}
resource"aws_codedeploy_app""app2" {
compute_platform ="Server"
name ="app2"
}
For 1st Terraform apply which is successful:resource"aws_codedeploy_deployment_group""g1" {
app_name = aws_codedeploy_app.app1.name
deployment_group_name ="g1"
}
resource"aws_codedeploy_deployment_group""g2" {
app_name = aws_codedeploy_app.app1.name
deployment_group_name ="g2"
}
For 2nd Terraform apply, changes are as follows:resource"aws_codedeploy_deployment_group""g1" {
app_name = aws_codedeploy_app.app1.name
deployment_group_name ="g1"
}
resource"aws_codedeploy_deployment_group""g2" {
app_name = aws_codedeploy_app.app2.name
deployment_group_name ="g2"
}
Debug Output
Panic Output
Expected Behavior
After the 2nd Terraform apply, it should've destroyed previously created Deployment group belonging to "app1", and then created a new deployment group in "app2"
Actual Behavior
Terraform tried to modify the same deployment group, and errored as follows:
Error: Error updating CodeDeploy deployment group: DeploymentGroupDoesNotExistException: No Deployment Group found for name: g2
Steps to Reproduce
terraform apply with 1st Terraform apply configurations
terraform apply with 2nd Terraform apply configurations
Important Factoids
References
#0000
The text was updated successfully, but these errors were encountered:
Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.
If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!
github-actionsbot
added
the
stale
Old or inactive issues managed by automation, if no further action taken these will get closed.
label
Apr 17, 2024
Community Note
Terraform CLI and Terraform AWS Provider Version
Terraform v1.0.3
on linux_amd64
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
After the 2nd Terraform apply, it should've destroyed previously created Deployment group belonging to "app1", and then created a new deployment group in "app2"
Actual Behavior
Terraform tried to modify the same deployment group, and errored as follows:
Error: Error updating CodeDeploy deployment group: DeploymentGroupDoesNotExistException: No Deployment Group found for name: g2
Steps to Reproduce
terraform apply
with 1st Terraform apply configurationsterraform apply
with 2nd Terraform apply configurationsImportant Factoids
References
The text was updated successfully, but these errors were encountered: