Skip to content

oxide_instance: attribute to read external IP addresses #516

@sudomateo

Description

@sudomateo

Currently the oxide_instance resource has an external_ips attribute that users use to specify whether they want ephemeral or floating external IPs for the instance. However, the upstream instance_create API does not return those IP addresses back to the caller, forcing us to make a separate API call to instance_external_ip_list. This asymmetry in the schema means that we can't just overwrite the external_ips attribute for the user since that'll conflict with what they specified in the configuration.

This issue is to consider updating the oxide_instance resource to return all the external IPs for the instance so that users don't have to use the oxide_instance_external_ips data source and potentially turn that data source into an apply-time data source (e.g., instance just created so data source is deferred to apply).

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions