Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provider/aws: Remove aws_codedeploy_deployment_group from state on 404 #7530

Merged
merged 1 commit into from Jul 8, 2016

Conversation

stack72
Copy link
Contributor

@stack72 stack72 commented Jul 7, 2016

Fixes #4802

The manual removal will now force Terraform to remove the resource from
state and then report it needs recreated

% make testacc TEST=./builtin/providers/aws TESTARGS ='- run=TestAccAWSCodeDeployDeploymentGroup_'             
==> Checking that code complies with gofmt requirements...
go generate $(go list ./... | grep -v /vendor/)
TF_ACC=1 go test ./builtin/providers/aws -v -run=TestAccAWSCodeDeployDeploymentGroup_ -timeout 120m
=== RUN   TestAccAWSCodeDeployDeploymentGroup_basic
--- PASS: TestAccAWSCodeDeployDeploymentGroup_basic (49.14s)
=== RUN   TestAccAWSCodeDeployDeploymentGroup_onPremiseTag
--- PASS: TestAccAWSCodeDeployDeploymentGroup_onPremiseTag (33.49s)
=== RUN   TestAccAWSCodeDeployDeploymentGroup_disappears
--- PASS: TestAccAWSCodeDeployDeploymentGroup_disappears (45.27s)
=== RUN   TestAccAWSCodeDeployDeploymentGroup_triggerConfiguration_basic
--- PASS: TestAccAWSCodeDeployDeploymentGroup_triggerConfiguration_basic (45.49s)
=== RUN   TestAccAWSCodeDeployDeploymentGroup_triggerConfiguration_multiple
--- PASS: TestAccAWSCodeDeployDeploymentGroup_triggerConfiguration_multiple (49.16s)
PASS
ok      github.com/hashicorp/terraform/builtin/providers/aws    222.580s

Fixes #4802

The manual removal will now force Terraform to remove the resource from
state and then report it needs recreated
@jen20
Copy link
Contributor

jen20 commented Jul 8, 2016

LGTM! Thanks @stack72

@jen20 jen20 merged commit 4c05fdd into master Jul 8, 2016
@stack72 stack72 deleted the aws-codedeployment-manual branch September 3, 2016 17:28
@ghost
Copy link

ghost commented Apr 22, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@hashicorp hashicorp locked and limited conversation to collaborators Apr 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot apply/destroy if CodeDeploy resources are removed out-of-band.
2 participants