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

add reserved public ip #71

Merged
merged 4 commits into from
Sep 20, 2021

Conversation

kral2
Copy link
Contributor

@kral2 kral2 commented Sep 9, 2021

Feature description

This feature allow the module user to provision an instance with a reserved public IP.
The user still have the possibility to provision an instance without a public IP or with an ephemeral public IP.

The argument assign_public_ip from the create_vnic_details block on oci_core_instance is not used anymore, as it do not allow assigning a reserved public IP.

New resources

  • oci_core_public_ip

Control variable

  • var.public_ip as string with the following accepted values: NONE, RESERVED or EPHEMERAL
  • var.public_ip_display_name as string, default to instance's display name

@kral2 kral2 requested a review from hyder September 9, 2021 21:02
docs/terraformoptions.adoc Show resolved Hide resolved
examples/instances_fixed_shape/main.tf Show resolved Hide resolved
examples/instances_reserved_public_ip/main.tf Show resolved Hide resolved
main.tf Outdated Show resolved Hide resolved
variables.tf Outdated Show resolved Hide resolved
variables.tf Show resolved Hide resolved
hyder
hyder previously approved these changes Sep 14, 2021
docs/terraformoptions.adoc Outdated Show resolved Hide resolved
variables.tf Outdated Show resolved Hide resolved
outputs.tf Outdated Show resolved Hide resolved
outputs.tf Outdated Show resolved Hide resolved
main.tf Outdated Show resolved Hide resolved
var.assign_public_ip becomes deprecated
var.public_ip and var.public_ip_display_name are added to control this new resource

var.public_ip accept a string with value NONE, RESERVED or EPHEMERAL. each keyword does what it says.

fix oracle-terraform-modules#55
- fix assign_public_ip test condition
- rename terraform resources from <this> to more meaningful name
@kral2 kral2 merged commit 5b0c5c4 into oracle-terraform-modules:main Sep 20, 2021
@kral2 kral2 deleted the 55_add_reserved_public_ip branch September 20, 2021 13:43
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

Successfully merging this pull request may close these issues.

2 participants