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(instance): remove support for export_uri #2663

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion docs/resources/instance_image.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ In addition to all arguments above, the following attributes are exported:
-> The `additional_volumes` block contains :
- `id` - The ID of the volume.
- `name` - The name of the volume.
- `export_uri` - The export URI of the volume.
- `size` - The size of the volume.
- `volume_type` - The type of volume, possible values are `l_ssd` and `b_ssd`.
- `creation_date` - Date of the volume creation.
Expand Down
4 changes: 0 additions & 4 deletions internal/services/instance/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@ func ResourceImage() *schema.Resource {
Type: schema.TypeString,
Computed: true,
},
"export_uri": {
Type: schema.TypeString,
Computed: true,
},
"size": {
Type: schema.TypeInt,
Computed: true,
Expand Down
1 change: 0 additions & 1 deletion internal/services/instance/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ func flattenImageExtraVolumes(volumes map[string]*instance.Volume, zone scw.Zone
volumeFlat := map[string]interface{}{
"id": zonal.NewIDString(zone, volume.ID),
"name": volume.Name,
"export_uri": volume.ExportURI,
"size": volume.Size,
"volume_type": volume.VolumeType,
"creation_date": volume.CreationDate,
Expand Down
Loading