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

spotinst_subscription creation fails on error "Resource 'sig-XXXX' doesn't exist" although sig exists #57

Closed
J00MZ opened this issue May 21, 2019 · 1 comment

Comments

@J00MZ
Copy link

J00MZ commented May 21, 2019

Issue

When creating spotinst_subscription resource it's failing with error message:

CANT_CREATE_SUBSCRIPTION: Resource 'sig-XXXX' doesn't exist

However when searching for this Elastigroup sig in the console I can see it exists.
Annotation 2019-05-21 130655

Terraform Version

$ terraform version
Terraform v0.11.14
+ provider.azurerm v1.27.1
+ provider.spotinst v1.13.3

Affected Resource(s)

  • spotinst_subscription

Terraform Configuration Files

resource "spotinst_subscription" "subscription" {
  resource_id = "${var.elastigroup_id}"
  event_type  = "AZURE_VM_TERMINATE"
  protocol    = "web"
  endpoint    = "https://${var.endpoint}"

  format = {
    event       = "%event%"
    instance_id = "%instance-id%"
  }
}

Expected Behavior

Create the spotinst_notification resource

Actual Behavior

Failed with error message of non-existent Elastigroup although elastigroup with this ID exists

Steps to Reproduce

  1. terraform apply
mikecook pushed a commit to ticketmaster/terraform-provider-spotinst that referenced this issue May 24, 2019
@chandra1-n
Copy link
Contributor

@J00MZ this seems to be fixed, working fine now. Closing the issue, please open a new ticket if you find any issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants