Skip to content

Commit

Permalink
Revert "feat: wait for the creation of AppConfig Deployment"
Browse files Browse the repository at this point in the history
This reverts commit 7f4b6bc.
  • Loading branch information
suzuki-shunsuke committed Jul 17, 2021
1 parent ab7433f commit 0834f15
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 64 deletions.
31 changes: 0 additions & 31 deletions aws/internal/service/appconfig/waiter/status.go

This file was deleted.

25 changes: 0 additions & 25 deletions aws/internal/service/appconfig/waiter/waiter.go

This file was deleted.

9 changes: 1 addition & 8 deletions aws/resource_aws_appconfig_deployment.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema"
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/validation"
"github.com/terraform-providers/terraform-provider-aws/aws/internal/keyvaluetags"
"github.com/terraform-providers/terraform-provider-aws/aws/internal/service/appconfig/waiter"
)

func resourceAwsAppconfigDeployment() *schema.Resource {
Expand Down Expand Up @@ -107,14 +106,8 @@ func resourceAwsAppconfigDeploymentCreate(d *schema.ResourceData, meta interface
return fmt.Errorf("error starting AppConfig Deployment: empty response")
}

deployNum := aws.Int64Value(output.DeploymentNumber)

d.Set("deployment_number", output.DeploymentNumber)
d.SetId(appID + "/" + envID + "/" + strconv.FormatInt(deployNum, 10))

if err := waiter.DeploymentCreated(conn, appID, envID, deployNum); err != nil {
return fmt.Errorf("error waiting for AppConfig Deployment (%s) creation: %w", d.Id(), err)
}
d.SetId(appID + "/" + envID + "/" + strconv.FormatInt(aws.Int64Value(output.DeploymentNumber), 10))

return resourceAwsAppconfigDeploymentRead(d, meta)
}
Expand Down

0 comments on commit 0834f15

Please sign in to comment.