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

Current provider fails to create instance due to InvalidSecurityGroupId #564

Closed
troby-kabam opened this issue Dec 7, 2018 · 2 comments
Closed

Comments

@troby-kabam
Copy link

https://github.com/terraform-providers/terraform-provider-alicloud/blob/4b69936bb5e5d3a9ca4a6fbd3acb016bde7c4a0f/examples/ecs-vpc/main.tf#L42

This example code does not work.
A much simpler version of this code with just the VPC, vswitch, instance and security group also fails.
An even simpler version relying on a pre-existing default VPC also fails.

This problem was experienced with:
Terraform v0.11.10

  • provider.alicloud v1.25.0

Error: Error applying plan:

3 error(s) occurred:

  • alicloud_instance.instance[2]: 1 error(s) occurred:

  • alicloud_instance.instance.2: Error creating Aliyun ecs instance: &errors.ServerError{httpStatus:404, requestId:"D7BEACCB-B4E6-4CB5-8CCA-A8154B412714", hostId:"ecs-cn-hangzhou.aliyuncs.com", errorCode:"InvalidSecurityGroupId", recommend:"", message:"The specified SecurityGroupId is invalid or does not exist.", comment:""}

  • alicloud_instance.instance[0]: 1 error(s) occurred:

  • alicloud_instance.instance.0: Error creating Aliyun ecs instance: &errors.ServerError{httpStatus:404, requestId:"9218F860-ACE9-4D38-B338-6332E9D02809", hostId:"ecs-cn-hangzhou.aliyuncs.com", errorCode:"InvalidSecurityGroupId", recommend:"", message:"The specified SecurityGroupId is invalid or does not exist.", comment:""}

  • alicloud_instance.instance[1]: 1 error(s) occurred:

  • alicloud_instance.instance.1: Error creating Aliyun ecs instance: &errors.ServerError{httpStatus:404, requestId:"A35CE05A-79E7-4666-8247-52945EEA0D2D", hostId:"ecs-cn-hangzhou.aliyuncs.com", errorCode:"InvalidSecurityGroupId", recommend:"", message:"The specified SecurityGroupId is invalid or does not exist.", comment:""}

@troby-kabam
Copy link
Author

This problem cannot be reproduced on terraform-provider-alicloud v.1.24.0.
The breakage occurred in changes between v1.24.0 and v1.25.0.

@troby-kabam
Copy link
Author

This problem is no longer reproducible with v1.25.0.
Something may have changed on the Alicloud api side of things. This no longer fails.

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

1 participant