-
Notifications
You must be signed in to change notification settings - Fork 53
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
feat(ECS): Synchronized ECS resources, unit test and document. #1090
Conversation
data "flexibleengine_vpc_subnet_v1" "mynet" { | ||
name = "subnet-default" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flexibleengine seems have no default vpc and subnet, it's better to use resource
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
* `region` - (Optional, String, ForceNew) The region in which to create the interface attachment. | ||
If omitted, the `region` argument of the provider is used. Changing this creates a new attachment. | ||
* `region` - (Optional, String, ForceNew) The region in which to create the network interface attache resource. If | ||
omitted, the provider-level region will be used. Changing this creates a new network interface attache resource. | ||
|
||
* `instance_id` - (Required, String, ForceNew) The ID of the Instance to attach the Port or Network to. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lack
Changing this creates a new network interface attache resource.
check if other fields is ForceNew
and if have Changing this...
in this document.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
data "flexibleengine_compute_flavors_v2" "test" { | ||
availability_zone = data.flexibleengine_availability_zones.test.names[0] | ||
performance_type = "normal" | ||
cpu_core = 2 | ||
memory_size = 4 | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this scripts should be formated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
resource "flexibleengine_compute_instance_v2" "test" { | ||
name = "%[1]s" | ||
image_id = data.flexibleengine_images_images.test.images[0].id | ||
flavor_id = data.flexibleengine_compute_flavors_v2.test.flavors[0] | ||
availability_zone = data.flexibleengine_availability_zones.test.names[0] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there should have only one space on the left of the equal symbol
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
3feddb2
to
f7b2a05
Compare
/lgtm |
/lgtm cancel |
What this PR does / why we need it:
Which issue this PR fixes:
(optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close that issue when PR gets merged)fixes #xxx
Special notes for your reviewer:
Release note:
PR Checklist
Acceptance Steps Performed
flexibleengine_compute_interface_attach
=== RUN TestAccComputeInterfaceAttach_Basic
=== PAUSE TestAccComputeInterfaceAttach_Basic
=== CONT TestAccComputeInterfaceAttach_Basic
--- PASS: TestAccComputeInterfaceAttach_Basic (624.92s)
PASS