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

feat(NAT): Synchronized NAT resource, unit test and document. #1091

Conversation

liwanting0517
Copy link
Contributor

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

  • Tests added/passed.
  • Documentation updated.
  • Schema updated.

Acceptance Steps Performed

=== RUN   TestAccPublicSnatRule_basic
=== PAUSE TestAccPublicSnatRule_basic
=== CONT  TestAccPublicSnatRule_basic
--- PASS: TestAccPublicSnatRule_basic (174.99s)
PASS

@github-actions github-actions bot added the size/M label Jan 9, 2024
@liwanting0517 liwanting0517 force-pushed the lwt_dev_nat_snat_rule_v2 branch from 45414b3 to 6db536a Compare January 9, 2024 11:08
@liwanting0517 liwanting0517 changed the title WIP: feat(NAT): Synchronized NAT resource, unit test and document. feat(NAT): Synchronized NAT resource, unit test and document. Jan 9, 2024
@liwanting0517 liwanting0517 force-pushed the lwt_dev_nat_snat_rule_v2 branch 2 times, most recently from e19c768 to d18b65c Compare January 11, 2024 02:57
---

# flexibleengine_nat_snat_rule_v2

Manages a V2 SNAT rule resource within FlexibleEngine.
Manages an SNAT rule resource of the **public** NAT within FlexibleEngine.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There seems to use ... a SNAT ...

Comment on lines 94 to 119
resource "flexibleengine_compute_instance_v2" "test" {
name = "instance_1"
security_groups = ["default"]
image_id = data.flexibleengine_images_image.test.id
flavor_id = data.flexibleengine_compute_flavors_v2.test.flavors[0]
availability_zone = data.flexibleengine_availability_zones.test.names[0]
metadata = {
foo = "bar"
}
network {
uuid = flexibleengine_vpc_subnet_v1.test.id
}
tags = {
key1 = "value1"
key2 = "value.key"
}
}

resource "flexibleengine_nat_gateway_v2" "test" {
name = "%[2]s"
description = "test for terraform"
spec = "2"
vpc_id = flexibleengine_vpc_v1.test.id
subnet_id = flexibleengine_vpc_subnet_v1.test.id
}
`, testBaseComputeResources(name), name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These scripts should be formated.

@liwanting0517 liwanting0517 force-pushed the lwt_dev_nat_snat_rule_v2 branch from d18b65c to 9235729 Compare January 18, 2024 03:14
Comment on lines -3 to -4
description: ""
page_title: "flexibleengine_nat_snat_rule_v2"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please keep it as is. page_title is used for other platforms.

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

Successfully merging this pull request may close these issues.

3 participants