From 1967c28d7c4896d13546e3422277c6e418574816 Mon Sep 17 00:00:00 2001 From: Outscale Bot Date: Mon, 6 Feb 2023 17:34:24 +0000 Subject: [PATCH] Release Documentation 0.8.0 Signed-off-by: Outscale Bot --- docs/data-sources/api_access_rule.md | 10 +- docs/data-sources/api_access_rules.md | 14 +- docs/data-sources/client_gateway.md | 4 +- docs/data-sources/client_gateways.md | 12 +- docs/data-sources/dhcp_option.md | 4 +- docs/data-sources/dhcp_options.md | 16 +- docs/data-sources/flexible_gpu.md | 8 +- docs/data-sources/flexible_gpus.md | 12 +- docs/data-sources/image.md | 12 +- docs/data-sources/image_export_task.md | 8 +- docs/data-sources/image_export_tasks.md | 8 +- docs/data-sources/images.md | 16 +- docs/data-sources/internet_service.md | 10 +- docs/data-sources/internet_services.md | 14 +- docs/data-sources/load_balancer.md | 1 + .../load_balancer_listener_rule.md | 8 +- .../load_balancer_listener_rules.md | 8 +- docs/data-sources/load_balancers.md | 1 + docs/data-sources/nat_service.md | 10 +- docs/data-sources/nat_services.md | 14 +- docs/data-sources/net.md | 10 +- docs/data-sources/net_access_point.md | 2 +- .../data-sources/net_access_point_services.md | 16 +- docs/data-sources/net_access_points.md | 2 +- docs/data-sources/net_attributes.md | 2 +- docs/data-sources/net_peering.md | 10 +- docs/data-sources/net_peerings.md | 14 +- docs/data-sources/nets.md | 14 +- docs/data-sources/nic.md | 10 +- docs/data-sources/nics.md | 14 +- docs/data-sources/product_type.md | 8 +- docs/data-sources/product_types.md | 8 +- docs/data-sources/public_ip.md | 10 +- docs/data-sources/public_ips.md | 10 +- docs/data-sources/quota.md | 32 ++-- docs/data-sources/quotas.md | 8 +- docs/data-sources/regions.md | 1 - docs/data-sources/route_table.md | 10 +- docs/data-sources/route_tables.md | 14 +- docs/data-sources/security_group.md | 10 +- docs/data-sources/security_groups.md | 14 +- docs/data-sources/server_certificate.md | 8 +- docs/data-sources/server_certificates.md | 8 +- docs/data-sources/snapshot.md | 10 +- docs/data-sources/snapshot_export_task.md | 8 +- docs/data-sources/snapshot_export_tasks.md | 8 +- docs/data-sources/snapshots.md | 14 +- docs/data-sources/subnet.md | 10 +- docs/data-sources/subnets.md | 14 +- docs/data-sources/subregions.md | 16 +- docs/data-sources/virtual_gateway.md | 10 +- docs/data-sources/virtual_gateways.md | 14 +- docs/data-sources/vm.md | 15 +- docs/data-sources/vm_state.md | 12 +- docs/data-sources/vm_states.md | 16 +- docs/data-sources/vm_types.md | 4 +- docs/data-sources/vms.md | 19 +- docs/data-sources/volume.md | 14 +- docs/data-sources/volumes.md | 18 +- docs/data-sources/vpn_connection.md | 4 +- docs/data-sources/vpn_connections.md | 12 +- docs/index.md | 4 +- docs/resources/api_access_rule.md | 10 +- docs/resources/client_gateway.md | 2 +- docs/resources/flexible_gpu.md | 8 +- docs/resources/flexible_gpu_link.md | 20 +-- docs/resources/image.md | 46 ++--- docs/resources/image_export_task.md | 4 +- docs/resources/load_balancer.md | 164 +++++++++--------- docs/resources/load_balancer_attributes.md | 104 +++++------ docs/resources/load_balancer_listener_rule.md | 78 ++++----- docs/resources/load_balancer_policy.md | 48 ++--- docs/resources/load_balancer_vms.md | 12 +- docs/resources/net_access_point.md | 18 +- docs/resources/net_peering.md | 8 +- docs/resources/net_peering_acceptation.md | 2 +- docs/resources/nic.md | 38 ++-- docs/resources/vm.md | 8 +- scripts/docs/doc-terraform-template | 2 +- 79 files changed, 646 insertions(+), 573 deletions(-) diff --git a/docs/data-sources/api_access_rule.md b/docs/data-sources/api_access_rule.md index 2373a141c..c521c0366 100644 --- a/docs/data-sources/api_access_rule.md +++ b/docs/data-sources/api_access_rule.md @@ -16,11 +16,11 @@ For more information on this resource actions, see the [API documentation](https ## Example Usage ```hcl -data "outscale_api_access_rule" "api_access_rule_01" { - filter { - name = "api_access_rule_ids" - values = ["aar-12345678"] - } +data "outscale_api_access_rule" "api_access_rule01" { + filter { + name = "api_access_rule_ids" + values = ["aar-12345678"] + } } ``` diff --git a/docs/data-sources/api_access_rules.md b/docs/data-sources/api_access_rules.md index 9c4f1c6b6..4a388341e 100644 --- a/docs/data-sources/api_access_rules.md +++ b/docs/data-sources/api_access_rules.md @@ -16,11 +16,15 @@ For more information on this resource actions, see the [API documentation](https ## Example Usage ```hcl -data "outscale_api_access_rules" "api_access_rules_01" { - filter { - name = "api_access_rule_ids" - values = ["aar-12345678", "aar-87654321"] - } +data "outscale_api_access_rules" "api_access_rules01" { + filter { + name = "ca_ids" + values = ["ca-12345678", "ca-87654321"] + } + filter { + name = "ip_ranges" + values = ["192.0.2.0/16"] + } } ``` diff --git a/docs/data-sources/client_gateway.md b/docs/data-sources/client_gateway.md index c51b091f0..b4054e684 100644 --- a/docs/data-sources/client_gateway.md +++ b/docs/data-sources/client_gateway.md @@ -16,7 +16,7 @@ For more information on this resource actions, see the [API documentation](https ## Example Usage ```hcl -data "outscale_client_gateway" "data_client_gateway01" { +data "outscale_client_gateway" "client_gateway01" { filter { name = "client_gateway_ids" values = ["cgw-12345678"] @@ -36,7 +36,7 @@ The following arguments are supported: * `states` - (Optional) The states of the client gateways (`pending` \| `available` \| `deleting` \| `deleted`). * `tag_keys` - (Optional) The keys of the tags associated with the client gateways. * `tag_values` - (Optional) The values of the tags associated with the client gateways. - * `tags` - (Optional) The key/value combination of the tags associated with the client gateways, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the client gateways, in the following format: `TAGKEY=TAGVALUE`. ## Attribute Reference diff --git a/docs/data-sources/client_gateways.md b/docs/data-sources/client_gateways.md index 7448daaf8..43a075380 100644 --- a/docs/data-sources/client_gateways.md +++ b/docs/data-sources/client_gateways.md @@ -16,10 +16,14 @@ For more information on this resource actions, see the [API documentation](https ## Example Usage ```hcl -data "outscale_client_gateways" "data_client_gateways01" { +data "outscale_client_gateways" "client_gateways01" { filter { - name = "client_gateway_ids" - values = ["cgw-12345678","cgw-87654321"] + name = "bgp_asns" + values = ["65000"] + } + filter { + name = "public_ips" + values = ["111.11.111.1", "222.22.222.2"] } } ``` @@ -36,7 +40,7 @@ The following arguments are supported: * `states` - (Optional) The states of the client gateways (`pending` \| `available` \| `deleting` \| `deleted`). * `tag_keys` - (Optional) The keys of the tags associated with the client gateways. * `tag_values` - (Optional) The values of the tags associated with the client gateways. - * `tags` - (Optional) The key/value combination of the tags associated with the client gateways, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the client gateways, in the following format: `TAGKEY=TAGVALUE`. ## Attribute Reference diff --git a/docs/data-sources/dhcp_option.md b/docs/data-sources/dhcp_option.md index 102c4e817..22b93a848 100644 --- a/docs/data-sources/dhcp_option.md +++ b/docs/data-sources/dhcp_option.md @@ -16,7 +16,7 @@ For more information on this resource actions, see the [API documentation](https ## Example Usage ```hcl -data "outscale_dhcp_option" "data_dhcp_option" { +data "outscale_dhcp_option" "dhcp_option01" { filter { name = "dhcp_options_set_id" values = ["dopt-12345678"] @@ -37,7 +37,7 @@ The following arguments are supported: * `ntp_servers` - (Optional) The IPs of the Network Time Protocol (NTP) servers used for the DHCP options sets. * `tag_keys` - (Optional) The keys of the tags associated with the DHCP options sets. * `tag_values` - (Optional) The values of the tags associated with the DHCP options sets. - * `tags` - (Optional) The key/value combination of the tags associated with the DHCP options sets, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the DHCP options sets, in the following format: `TAGKEY=TAGVALUE`. ## Attribute Reference diff --git a/docs/data-sources/dhcp_options.md b/docs/data-sources/dhcp_options.md index 2ce6c24e7..c39e68aab 100644 --- a/docs/data-sources/dhcp_options.md +++ b/docs/data-sources/dhcp_options.md @@ -16,11 +16,15 @@ For more information on this resource actions, see the [API documentation](https ## Example Usage ```hcl -data "outscale_dhcp_options" "data_dhcp_options" { - filter { - name = "dhcp_options_set_ids" - values = ["dopt-12345678","dopt-87654321"] - } +data "outscale_dhcp_options" "dhcp_options01" { + filter { + name = "domain_name_servers" + values = ["111.11.111.1", "222.22.222.2"] + } + filter { + name = "domain_names" + values = ["example.com"] + } } ``` @@ -37,7 +41,7 @@ The following arguments are supported: * `ntp_servers` - (Optional) The IPs of the Network Time Protocol (NTP) servers used for the DHCP options sets. * `tag_keys` - (Optional) The keys of the tags associated with the DHCP options sets. * `tag_values` - (Optional) The values of the tags associated with the DHCP options sets. - * `tags` - (Optional) The key/value combination of the tags associated with the DHCP options sets, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the DHCP options sets, in the following format: `TAGKEY=TAGVALUE`. ## Attribute Reference diff --git a/docs/data-sources/flexible_gpu.md b/docs/data-sources/flexible_gpu.md index c94aed312..7571fe8a1 100644 --- a/docs/data-sources/flexible_gpu.md +++ b/docs/data-sources/flexible_gpu.md @@ -17,10 +17,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_flexible_gpu" "flexible_gpu01" { - filter { - name = "flexible_gpu_ids" - values = ["fgpu-12345678"] - } + filter { + name = "flexible_gpu_ids" + values = ["fgpu-12345678"] + } } ``` diff --git a/docs/data-sources/flexible_gpus.md b/docs/data-sources/flexible_gpus.md index e9f1a328e..4a297e6eb 100644 --- a/docs/data-sources/flexible_gpus.md +++ b/docs/data-sources/flexible_gpus.md @@ -17,10 +17,14 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_flexible_gpus" "flexible_gpus01" { - filter { - name = "fgpu_ids" - values = ["fgpu-12345678", "fgpu-12345679"] - } + filter { + name = "model_names" + values = ["nvidia-p6", "nvidia-p100"] + } + filter { + name = "states" + values = ["attached"] + } } ``` diff --git a/docs/data-sources/image.md b/docs/data-sources/image.md index e208dd5be..93d32753e 100644 --- a/docs/data-sources/image.md +++ b/docs/data-sources/image.md @@ -17,10 +17,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_image" "image01" { - filter { - name = "image_ids" - values = ["ami-12345678"] - } + filter { + name = "image_ids" + values = ["ami-12345678"] + } } ``` @@ -50,7 +50,7 @@ The following arguments are supported: * `states` - (Optional) The states of the OMIs (`pending` \| `available` \| `failed`). * `tag_keys` - (Optional) The keys of the tags associated with the OMIs. * `tag_values` - (Optional) The values of the tags associated with the OMIs. - * `tags` - (Optional) The key/value combination of the tags associated with the OMIs, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the OMIs, in the following format: `TAGKEY=TAGVALUE`. * `virtualization_types` - (Optional) The virtualization types (always `hvm`). ## Attribute Reference @@ -72,7 +72,7 @@ If you specify a snapshot ID but no volume size, the volume is created with a si For more information about volume types, see [About Volumes > Volume Types and IOPS](https://docs.outscale.com/en/userguide/About-Volumes.html#_volume_types_and_iops). * `device_name` - The device name for the volume. For a root device, you must use `/dev/sda1`. For other volumes, you must use `/dev/sdX`, `/dev/sdXX`, `/dev/xvdX`, or `/dev/xvdXX` (where the first `X` is a letter between `b` and `z`, and the second `X` is a letter between `a` and `z`). * `virtual_device_name` - The name of the virtual device (`ephemeralN`). -* `creation_date` - The date and time at which the OMI was created. +* `creation_date` - The date and time of creation of the OMI. * `description` - The description of the OMI. * `file_location` - The location of the bucket where the OMI files are stored. * `image_id` - The ID of the OMI. diff --git a/docs/data-sources/image_export_task.md b/docs/data-sources/image_export_task.md index d5a6bbf07..e78cb052c 100644 --- a/docs/data-sources/image_export_task.md +++ b/docs/data-sources/image_export_task.md @@ -17,10 +17,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_image_export_task" "image_export_task01" { - filter { - name = "task_ids" - values = ["image-export-12345678"] - } + filter { + name = "task_ids" + values = ["image-export-12345678"] + } } ``` diff --git a/docs/data-sources/image_export_tasks.md b/docs/data-sources/image_export_tasks.md index 4ae44c164..dc0565a8b 100644 --- a/docs/data-sources/image_export_tasks.md +++ b/docs/data-sources/image_export_tasks.md @@ -17,10 +17,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_image_export_tasks" "image_export_tasks01" { - filter { - name = "task_ids" - values = ["image-export-12345678", "image-export-87654321"] - } + filter { + name = "task_ids" + values = ["image-export-12345678", "image-export-87654321"] + } } ``` diff --git a/docs/data-sources/images.md b/docs/data-sources/images.md index 626efe6bd..6f1bebff3 100644 --- a/docs/data-sources/images.md +++ b/docs/data-sources/images.md @@ -17,10 +17,14 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_images" "images01" { - filter { - name = "image_ids" - values = ["ami-12345678", "ami-12345679"] - } + filter { + name = "account_aliases" + values = ["Outscale"] + } + filter { + name = "image_names" + values = ["Ubuntu*", "RockyLinux*"] + } } ``` @@ -50,7 +54,7 @@ The following arguments are supported: * `states` - (Optional) The states of the OMIs (`pending` \| `available` \| `failed`). * `tag_keys` - (Optional) The keys of the tags associated with the OMIs. * `tag_values` - (Optional) The values of the tags associated with the OMIs. - * `tags` - (Optional) The key/value combination of the tags associated with the OMIs, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the OMIs, in the following format: `TAGKEY=TAGVALUE`. * `virtualization_types` - (Optional) The virtualization types (always `hvm`). ## Attribute Reference @@ -73,7 +77,7 @@ If you specify a snapshot ID but no volume size, the volume is created with a si For more information about volume types, see [About Volumes > Volume Types and IOPS](https://docs.outscale.com/en/userguide/About-Volumes.html#_volume_types_and_iops). * `device_name` - The device name for the volume. For a root device, you must use `/dev/sda1`. For other volumes, you must use `/dev/sdX`, `/dev/sdXX`, `/dev/xvdX`, or `/dev/xvdXX` (where the first `X` is a letter between `b` and `z`, and the second `X` is a letter between `a` and `z`). * `virtual_device_name` - The name of the virtual device (`ephemeralN`). - * `creation_date` - The date and time at which the OMI was created. + * `creation_date` - The date and time of creation of the OMI. * `description` - The description of the OMI. * `file_location` - The location of the bucket where the OMI files are stored. * `image_id` - The ID of the OMI. diff --git a/docs/data-sources/internet_service.md b/docs/data-sources/internet_service.md index b64829157..38eb065e4 100644 --- a/docs/data-sources/internet_service.md +++ b/docs/data-sources/internet_service.md @@ -17,10 +17,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_internet_service" "internet_service01" { - filter { - name = "internet_service_ids" - values = ["igw-12345678"] - } + filter { + name = "internet_service_ids" + values = ["igw-12345678"] + } } ``` @@ -34,7 +34,7 @@ The following arguments are supported: * `link_states` - (Optional) The current states of the attachments between the Internet services and the Nets (only `available`, if the Internet gateway is attached to a VPC). * `tag_keys` - (Optional) The keys of the tags associated with the Internet services. * `tag_values` - (Optional) The values of the tags associated with the Internet services. - * `tags` - (Optional) The key/value combination of the tags associated with the Internet services, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the Internet services, in the following format: `TAGKEY=TAGVALUE`. ## Attribute Reference diff --git a/docs/data-sources/internet_services.md b/docs/data-sources/internet_services.md index 00771371d..59e6b5244 100644 --- a/docs/data-sources/internet_services.md +++ b/docs/data-sources/internet_services.md @@ -17,10 +17,14 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_internet_services" "internet_services01" { - filter { - name = "internet_service_ids" - values = ["igw-12345678", "igw-12345679"] - } + filter { + name = "tag_keys" + values = ["env"] + } + filter { + name = "tag_values" + values = ["prod", "test"] + } } ``` @@ -34,7 +38,7 @@ The following arguments are supported: * `link_states` - (Optional) The current states of the attachments between the Internet services and the Nets (only `available`, if the Internet gateway is attached to a VPC). * `tag_keys` - (Optional) The keys of the tags associated with the Internet services. * `tag_values` - (Optional) The values of the tags associated with the Internet services. - * `tags` - (Optional) The key/value combination of the tags associated with the Internet services, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the Internet services, in the following format: `TAGKEY=TAGVALUE`. ## Attribute Reference diff --git a/docs/data-sources/load_balancer.md b/docs/data-sources/load_balancer.md index 19455cbc0..09b22c5a5 100644 --- a/docs/data-sources/load_balancer.md +++ b/docs/data-sources/load_balancer.md @@ -67,6 +67,7 @@ The following attributes are exported: If `load_balancer_type` is `internet-facing`, the load balancer has a public DNS name that resolves to a public IP.
If `load_balancer_type` is `internal`, the load balancer has a public DNS name that resolves to a private IP. * `net_id` - The ID of the Net for the load balancer. +* `public_ip` - (internet-facing only) The public IP associated with the load balancer. * `secured_cookies` - Whether secure cookies are enabled for the load balancer. * `security_groups` - One or more IDs of security groups for the load balancers. Valid only for load balancers in a Net. * `source_security_group` - Information about the source security group of the load balancer, which you can use as part of your inbound rules for your registered VMs.
diff --git a/docs/data-sources/load_balancer_listener_rule.md b/docs/data-sources/load_balancer_listener_rule.md index 627eed5c5..4fc9b86a1 100644 --- a/docs/data-sources/load_balancer_listener_rule.md +++ b/docs/data-sources/load_balancer_listener_rule.md @@ -17,10 +17,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_load_balancer_listener_rule" "rule01" { - filter { - name = "listener_rule_names" - values = ["terraform-listener-rule02"] - } + filter { + name = "listener_rule_names" + values = ["terraform-listener-rule02"] + } } ``` diff --git a/docs/data-sources/load_balancer_listener_rules.md b/docs/data-sources/load_balancer_listener_rules.md index 9fdc0d819..44c938c7b 100644 --- a/docs/data-sources/load_balancer_listener_rules.md +++ b/docs/data-sources/load_balancer_listener_rules.md @@ -17,10 +17,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_load_balancer_listener_rules" "rules01" { - filter { - name = "listener_rule_names" - values = ["terraform-listener-rule02","terraform-listener-rule01"] - } + filter { + name = "listener_rule_names" + values = ["terraform-listener-rule02","terraform-listener-rule01"] + } } ``` diff --git a/docs/data-sources/load_balancers.md b/docs/data-sources/load_balancers.md index f97d3999e..82d53ed96 100644 --- a/docs/data-sources/load_balancers.md +++ b/docs/data-sources/load_balancers.md @@ -68,6 +68,7 @@ The following attributes are exported: If `load_balancer_type` is `internet-facing`, the load balancer has a public DNS name that resolves to a public IP.
If `load_balancer_type` is `internal`, the load balancer has a public DNS name that resolves to a private IP. * `net_id` - The ID of the Net for the load balancer. + * `public_ip` - (internet-facing only) The public IP associated with the load balancer. * `secured_cookies` - Whether secure cookies are enabled for the load balancer. * `security_groups` - One or more IDs of security groups for the load balancers. Valid only for load balancers in a Net. * `source_security_group` - Information about the source security group of the load balancer, which you can use as part of your inbound rules for your registered VMs.
diff --git a/docs/data-sources/nat_service.md b/docs/data-sources/nat_service.md index 25b7fdb6a..bea478d13 100644 --- a/docs/data-sources/nat_service.md +++ b/docs/data-sources/nat_service.md @@ -17,10 +17,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_nat_service" "nat_service01" { - filter { - name = "nat_service_ids" - values = ["nat-12345678"] - } + filter { + name = "nat_service_ids" + values = ["nat-12345678"] + } } ``` @@ -35,7 +35,7 @@ The following arguments are supported: * `subnet_ids` - (Optional) The IDs of the Subnets in which the NAT services are. * `tag_keys` - (Optional) The keys of the tags associated with the NAT services. * `tag_values` - (Optional) The values of the tags associated with the NAT services. - * `tags` - (Optional) The key/value combination of the tags associated with the NAT services, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the NAT services, in the following format: `TAGKEY=TAGVALUE`. ## Attribute Reference diff --git a/docs/data-sources/nat_services.md b/docs/data-sources/nat_services.md index 24125e643..303281da9 100644 --- a/docs/data-sources/nat_services.md +++ b/docs/data-sources/nat_services.md @@ -17,10 +17,14 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_nat_services" "nat_services01" { - filter { - name = "nat_service_ids" - values = ["nat-12345678", "nat-12345679"] - } + filter { + name = "net_ids" + values = ["vpc-12345678", "vpc-87654321"] + } + filter { + name = "subnet_ids" + values = ["eu-west-2a"] + } } ``` @@ -35,7 +39,7 @@ The following arguments are supported: * `subnet_ids` - (Optional) The IDs of the Subnets in which the NAT services are. * `tag_keys` - (Optional) The keys of the tags associated with the NAT services. * `tag_values` - (Optional) The values of the tags associated with the NAT services. - * `tags` - (Optional) The key/value combination of the tags associated with the NAT services, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the NAT services, in the following format: `TAGKEY=TAGVALUE`. ## Attribute Reference diff --git a/docs/data-sources/net.md b/docs/data-sources/net.md index 6de64c53e..37fd31cb3 100644 --- a/docs/data-sources/net.md +++ b/docs/data-sources/net.md @@ -17,10 +17,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_net" "net01" { - filter { - name = "net_ids" - values = ["vpc-12345678"] - } + filter { + name = "net_ids" + values = ["vpc-12345678"] + } } ``` @@ -35,7 +35,7 @@ The following arguments are supported: * `states` - (Optional) The states of the Nets (`pending` \| `available` \| `deleted`). * `tag_keys` - (Optional) The keys of the tags associated with the Nets. * `tag_values` - (Optional) The values of the tags associated with the Nets. - * `tags` - (Optional) The key/value combination of the tags associated with the Nets, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the Nets, in the following format: `TAGKEY=TAGVALUE`. ## Attribute Reference diff --git a/docs/data-sources/net_access_point.md b/docs/data-sources/net_access_point.md index 63a502996..26beababb 100644 --- a/docs/data-sources/net_access_point.md +++ b/docs/data-sources/net_access_point.md @@ -52,7 +52,7 @@ The following arguments are supported: * `states` - (Optional) The states of the Net access points (`pending` \| `available` \| `deleting` \| `deleted`). * `tag_keys` - (Optional) The keys of the tags associated with the Net access points. * `tag_values` - (Optional) The values of the tags associated with the Net access points. - * `tags` - (Optional) The key/value combination of the tags associated with the Net access points, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the Net access points, in the following format: `TAGKEY=TAGVALUE`. ## Attribute Reference diff --git a/docs/data-sources/net_access_point_services.md b/docs/data-sources/net_access_point_services.md index 8f6a3824d..00a3b700d 100644 --- a/docs/data-sources/net_access_point_services.md +++ b/docs/data-sources/net_access_point_services.md @@ -26,10 +26,10 @@ data "outscale_net_access_point_services" "all-services" { ```hcl data "outscale_net_access_point_services" "services01" { - filter { - name = "service_ids" - values = ["pl-12345678","pl-12345679"] - } + filter { + name = "service_ids" + values = ["pl-12345678","pl-12345679"] + } } ``` @@ -37,10 +37,10 @@ data "outscale_net_access_point_services" "services01" { ```hcl data "outscale_net_access_point_services" "services02" { - filter { - name = "service_names" - values = ["com.outscale.eu-west-2.api"] - } + filter { + name = "service_names" + values = ["com.outscale.eu-west-2.api"] + } } ``` diff --git a/docs/data-sources/net_access_points.md b/docs/data-sources/net_access_points.md index 73077fb5b..29f92561a 100644 --- a/docs/data-sources/net_access_points.md +++ b/docs/data-sources/net_access_points.md @@ -52,7 +52,7 @@ The following arguments are supported: * `states` - (Optional) The states of the Net access points (`pending` \| `available` \| `deleting` \| `deleted`). * `tag_keys` - (Optional) The keys of the tags associated with the Net access points. * `tag_values` - (Optional) The values of the tags associated with the Net access points. - * `tags` - (Optional) The key/value combination of the tags associated with the Net access points, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the Net access points, in the following format: `TAGKEY=TAGVALUE`. ## Attribute Reference diff --git a/docs/data-sources/net_attributes.md b/docs/data-sources/net_attributes.md index 58863378c..faa02736b 100644 --- a/docs/data-sources/net_attributes.md +++ b/docs/data-sources/net_attributes.md @@ -17,7 +17,7 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_net_attributes" "net_attributes01" { - net_id = "vpc-12345678" + net_id = "vpc-12345678" } ``` diff --git a/docs/data-sources/net_peering.md b/docs/data-sources/net_peering.md index 1864deed2..8e9fd1b12 100644 --- a/docs/data-sources/net_peering.md +++ b/docs/data-sources/net_peering.md @@ -17,10 +17,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_net_peering" "net_peering01" { - filter { - name = "net_peering_ids" - values = ["pcx-12345678"] - } + filter { + name = "net_peering_ids" + values = ["pcx-12345678"] + } } ``` @@ -40,7 +40,7 @@ The following arguments are supported: * `state_names` - (Optional) The states of the Net peerings (`pending-acceptance` \| `active` \| `rejected` \| `failed` \| `expired` \| `deleted`). * `tag_keys` - (Optional) The keys of the tags associated with the Net peerings. * `tag_values` - (Optional) The values of the tags associated with the Net peerings. - * `tags` - (Optional) The key/value combination of the tags associated with the Net peerings, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the Net peerings, in the following format: `TAGKEY=TAGVALUE`. ## Attribute Reference diff --git a/docs/data-sources/net_peerings.md b/docs/data-sources/net_peerings.md index b897831b6..e4a14597e 100644 --- a/docs/data-sources/net_peerings.md +++ b/docs/data-sources/net_peerings.md @@ -17,10 +17,14 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_net_peerings" "net_peerings01" { - filter { - name = "net_peering_ids" - values = ["pcx-12345678", "pcx-12345679"] - } + filter { + name = "source_net_net_ids" + values = ["vpc-12345678"] + } + filter { + name = "state_names" + values = ["active", "pending-acceptance"] + } } ``` @@ -40,7 +44,7 @@ The following arguments are supported: * `state_names` - (Optional) The states of the Net peerings (`pending-acceptance` \| `active` \| `rejected` \| `failed` \| `expired` \| `deleted`). * `tag_keys` - (Optional) The keys of the tags associated with the Net peerings. * `tag_values` - (Optional) The values of the tags associated with the Net peerings. - * `tags` - (Optional) The key/value combination of the tags associated with the Net peerings, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the Net peerings, in the following format: `TAGKEY=TAGVALUE`. ## Attribute Reference diff --git a/docs/data-sources/nets.md b/docs/data-sources/nets.md index cd213dbe6..9586c8881 100644 --- a/docs/data-sources/nets.md +++ b/docs/data-sources/nets.md @@ -17,10 +17,14 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_nets" "nets01" { - filter { - name = "net_ids" - values = ["vpc-12345678", "vpc-12345679", "vpc-12345680"] - } + filter { + name = "net_ids" + values = ["vpc-12345678", "vpc-87654321"] + } + filter { + name = "ip_ranges" + values = ["10.0.0.0/16"] + } } ``` @@ -35,7 +39,7 @@ The following arguments are supported: * `states` - (Optional) The states of the Nets (`pending` \| `available` \| `deleted`). * `tag_keys` - (Optional) The keys of the tags associated with the Nets. * `tag_values` - (Optional) The values of the tags associated with the Nets. - * `tags` - (Optional) The key/value combination of the tags associated with the Nets, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the Nets, in the following format: `TAGKEY=TAGVALUE`. ## Attribute Reference diff --git a/docs/data-sources/nic.md b/docs/data-sources/nic.md index f819f1db5..39927a8c4 100644 --- a/docs/data-sources/nic.md +++ b/docs/data-sources/nic.md @@ -17,10 +17,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_nic" "nic01" { - filter { - name = "nic_ids" - values = ["eni-12345678"] - } + filter { + name = "nic_ids" + values = ["eni-12345678"] + } } ``` @@ -56,7 +56,7 @@ The following arguments are supported: * `subregion_names` - (Optional) The Subregions where the NICs are located. * `tag_keys` - (Optional) The keys of the tags associated with the NICs. * `tag_values` - (Optional) The values of the tags associated with the NICs. - * `tags` - (Optional) The key/value combination of the tags associated with the NICs, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the NICs, in the following format: `TAGKEY=TAGVALUE`. ## Attribute Reference diff --git a/docs/data-sources/nics.md b/docs/data-sources/nics.md index fbf0337e5..4b51211b5 100644 --- a/docs/data-sources/nics.md +++ b/docs/data-sources/nics.md @@ -17,10 +17,14 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_nics" "nics01" { - filter { - name = "nic_ids" - values = ["eni-12345678", "eni-12345679"] - } + filter { + name = "nic_ids" + values = ["eni-12345678", "eni-87654321"] + } + filter { + name = "link_nic_vm_ids" + values = ["i-12345678"] + } } ``` @@ -56,7 +60,7 @@ The following arguments are supported: * `subregion_names` - (Optional) The Subregions where the NICs are located. * `tag_keys` - (Optional) The keys of the tags associated with the NICs. * `tag_values` - (Optional) The values of the tags associated with the NICs. - * `tags` - (Optional) The key/value combination of the tags associated with the NICs, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the NICs, in the following format: `TAGKEY=TAGVALUE`. ## Attribute Reference diff --git a/docs/data-sources/product_type.md b/docs/data-sources/product_type.md index 114fa3a0e..58c240041 100644 --- a/docs/data-sources/product_type.md +++ b/docs/data-sources/product_type.md @@ -17,10 +17,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_product_type" "product_type01" { - filter { - name = "product_type_ids" - values = ["0001"] - } + filter { + name = "product_type_ids" + values = ["0001"] + } } ``` diff --git a/docs/data-sources/product_types.md b/docs/data-sources/product_types.md index 5780ab454..5c481c504 100644 --- a/docs/data-sources/product_types.md +++ b/docs/data-sources/product_types.md @@ -18,10 +18,10 @@ For more information on this resource actions, see the [API documentation](https ### Read specific product types ```hcl data "outscale_product_types" "product_types01" { - filter { - name = "product_type_ids" - values = ["0001", "0002"] - } + filter { + name = "product_type_ids" + values = ["0001", "0002"] + } } ``` diff --git a/docs/data-sources/public_ip.md b/docs/data-sources/public_ip.md index 2c6dc0582..3cd1e7fe8 100644 --- a/docs/data-sources/public_ip.md +++ b/docs/data-sources/public_ip.md @@ -17,10 +17,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_public_ip" "public_ip01" { - filter { - name = "public_ips" - values = ["111.11.111.1"] - } + filter { + name = "public_ips" + values = ["111.11.111.1"] + } } ``` @@ -38,7 +38,7 @@ The following arguments are supported: * `public_ips` - (Optional) The public IPs. * `tag_keys` - (Optional) The keys of the tags associated with the public IPs. * `tag_values` - (Optional) The values of the tags associated with the public IPs. - * `tags` - (Optional) The key/value combination of the tags associated with the public IPs, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the public IPs, in the following format: `TAGKEY=TAGVALUE`. * `vm_ids` - (Optional) The IDs of the VMs. ## Attribute Reference diff --git a/docs/data-sources/public_ips.md b/docs/data-sources/public_ips.md index a8d9f1b81..cea4b575b 100644 --- a/docs/data-sources/public_ips.md +++ b/docs/data-sources/public_ips.md @@ -17,10 +17,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_public_ips" "public_ips01" { - filter { - name = "public_ips" - values = ["111.11.111.1", "222.22.222.2"] - } + filter { + name = "public_ips" + values = ["111.11.111.1", "222.22.222.2"] + } } ``` @@ -38,7 +38,7 @@ The following arguments are supported: * `public_ips` - (Optional) The public IPs. * `tag_keys` - (Optional) The keys of the tags associated with the public IPs. * `tag_values` - (Optional) The values of the tags associated with the public IPs. - * `tags` - (Optional) The key/value combination of the tags associated with the public IPs, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the public IPs, in the following format: `TAGKEY=TAGVALUE`. * `vm_ids` - (Optional) The IDs of the VMs. ## Attribute Reference diff --git a/docs/data-sources/quota.md b/docs/data-sources/quota.md index 274d35edc..f690f9973 100644 --- a/docs/data-sources/quota.md +++ b/docs/data-sources/quota.md @@ -17,22 +17,22 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_quota" "load_balancer_listeners_quota01" { - filter { - name = "collections" - values = ["LBU"] - } - filter { - name = "quota_names" - values = ["lb_listeners_limit"] - } - filter { - name = "quota_types" - values = ["global"] - } - filter { - name = "short_descriptions" - values = ["Load Balancer Listeners Limit"] - } + filter { + name = "collections" + values = ["LBU"] + } + filter { + name = "quota_names" + values = ["lb_listeners_limit"] + } + filter { + name = "quota_types" + values = ["global"] + } + filter { + name = "short_descriptions" + values = ["Load Balancer Listeners Limit"] + } } ``` diff --git a/docs/data-sources/quotas.md b/docs/data-sources/quotas.md index afe795ee2..69f0eae5d 100644 --- a/docs/data-sources/quotas.md +++ b/docs/data-sources/quotas.md @@ -18,10 +18,10 @@ For more information on this resource actions, see the [API documentation](https ### Read specific quotas ```hcl data "outscale_quotas" "vpc_quotas01" { - filter { - name = "collections" - values = ["VPC"] - } + filter { + name = "collections" + values = ["VPC"] + } } ``` diff --git a/docs/data-sources/regions.md b/docs/data-sources/regions.md index 45446fbc7..aa21888c7 100644 --- a/docs/data-sources/regions.md +++ b/docs/data-sources/regions.md @@ -17,7 +17,6 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_regions" "all_regions" { - } ``` diff --git a/docs/data-sources/route_table.md b/docs/data-sources/route_table.md index fd43b2417..e5e891161 100644 --- a/docs/data-sources/route_table.md +++ b/docs/data-sources/route_table.md @@ -17,10 +17,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_route_table" "route_table01" { - filter { - name = "route_table_ids" - values = ["rtb-12345678"] - } + filter { + name = "route_table_ids" + values = ["rtb-12345678"] + } } ``` @@ -45,7 +45,7 @@ The following arguments are supported: * `route_vm_ids` - (Optional) The IDs of the VMs specified in routes in the tables. * `tag_keys` - (Optional) The keys of the tags associated with the route tables. * `tag_values` - (Optional) The values of the tags associated with the route tables. - * `tags` - (Optional) The key/value combination of the tags associated with the route tables, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the route tables, in the following format: `TAGKEY=TAGVALUE`. ## Attribute Reference diff --git a/docs/data-sources/route_tables.md b/docs/data-sources/route_tables.md index a29015b10..e2c9cdf59 100644 --- a/docs/data-sources/route_tables.md +++ b/docs/data-sources/route_tables.md @@ -17,10 +17,14 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_route_tables" "route_tables01" { - filter { - name = "route_table_ids" - values = ["rtb-12345678", "rtb-12345679"] - } + filter { + name = "net_ids" + values = ["vpc-12345678", "vpc-87654321"] + } + filter { + name = "link_route_table_main" + values = ["true"] + } } ``` @@ -45,7 +49,7 @@ The following arguments are supported: * `route_vm_ids` - (Optional) The IDs of the VMs specified in routes in the tables. * `tag_keys` - (Optional) The keys of the tags associated with the route tables. * `tag_values` - (Optional) The values of the tags associated with the route tables. - * `tags` - (Optional) The key/value combination of the tags associated with the route tables, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the route tables, in the following format: `TAGKEY=TAGVALUE`. ## Attribute Reference diff --git a/docs/data-sources/security_group.md b/docs/data-sources/security_group.md index d37c0f379..dc8538e95 100644 --- a/docs/data-sources/security_group.md +++ b/docs/data-sources/security_group.md @@ -17,10 +17,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_security_group" "security_group01" { - filter { - name = "security_group_ids" - values = ["sg-12345678"] - } + filter { + name = "security_group_ids" + values = ["sg-12345678"] + } } ``` @@ -50,7 +50,7 @@ The following arguments are supported: * `security_group_names` - (Optional) The names of the security groups. * `tag_keys` - (Optional) The keys of the tags associated with the security groups. * `tag_values` - (Optional) The values of the tags associated with the security groups. - * `tags` - (Optional) The key/value combination of the tags associated with the security groups, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the security groups, in the following format: `TAGKEY=TAGVALUE`. ## Attribute Reference diff --git a/docs/data-sources/security_groups.md b/docs/data-sources/security_groups.md index 8629454e6..fb6c143af 100644 --- a/docs/data-sources/security_groups.md +++ b/docs/data-sources/security_groups.md @@ -17,10 +17,14 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_security_groups" "security_groups01" { - filter { - name = "security_group_ids" - values = ["sg-12345678", "sg-12345679"] - } + filter { + name = "net_ids" + values = ["sg-12345678", "sg-87654321"] + } + filter { + name = "inbound_rule_ip_ranges" + values = ["111.11.111.1/32"] + } } ``` @@ -50,7 +54,7 @@ The following arguments are supported: * `security_group_names` - (Optional) The names of the security groups. * `tag_keys` - (Optional) The keys of the tags associated with the security groups. * `tag_values` - (Optional) The values of the tags associated with the security groups. - * `tags` - (Optional) The key/value combination of the tags associated with the security groups, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the security groups, in the following format: `TAGKEY=TAGVALUE`. ## Attribute Reference diff --git a/docs/data-sources/server_certificate.md b/docs/data-sources/server_certificate.md index fccfe3985..78e12fd2d 100644 --- a/docs/data-sources/server_certificate.md +++ b/docs/data-sources/server_certificate.md @@ -17,10 +17,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_server_certificate" "server_certificate01" { - filter { - name = "paths" - values = "" - } + filter { + name = "paths" + values = "" + } } ``` diff --git a/docs/data-sources/server_certificates.md b/docs/data-sources/server_certificates.md index 5d2548b1b..ad0caa38c 100644 --- a/docs/data-sources/server_certificates.md +++ b/docs/data-sources/server_certificates.md @@ -19,10 +19,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_server_certificates" "server_certificates01" { - filter { - name = "paths" - values = ["", ""] - } + filter { + name = "paths" + values = ["", ""] + } } ``` diff --git a/docs/data-sources/snapshot.md b/docs/data-sources/snapshot.md index 8e56b390f..7aa251f33 100644 --- a/docs/data-sources/snapshot.md +++ b/docs/data-sources/snapshot.md @@ -17,10 +17,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_snapshot" "snapshot01" { - filter { - name = "snapshot_ids" - values = ["snap-12345678"] - } + filter { + name = "snapshot_ids" + values = ["snap-12345678"] + } } ``` @@ -39,7 +39,7 @@ The following arguments are supported: * `states` - (Optional) The states of the snapshots (`in-queue` \| `completed` \| `error`). * `tag_keys` - (Optional) The keys of the tags associated with the snapshots. * `tag_values` - (Optional) The values of the tags associated with the snapshots. - * `tags` - (Optional) The key/value combination of the tags associated with the snapshots, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the snapshots, in the following format: `TAGKEY=TAGVALUE`. * `volume_ids` - (Optional) The IDs of the volumes used to create the snapshots. * `volume_sizes` - (Optional) The sizes of the volumes used to create the snapshots, in gibibytes (GiB). diff --git a/docs/data-sources/snapshot_export_task.md b/docs/data-sources/snapshot_export_task.md index 26b296a74..5535572d6 100644 --- a/docs/data-sources/snapshot_export_task.md +++ b/docs/data-sources/snapshot_export_task.md @@ -17,10 +17,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_snapshot_export_task" "snapshot_export_task01" { - filter { - name = "task_ids" - values = ["snap-export-12345678"] - } + filter { + name = "task_ids" + values = ["snap-export-12345678"] + } } ``` diff --git a/docs/data-sources/snapshot_export_tasks.md b/docs/data-sources/snapshot_export_tasks.md index 89e0e3acb..d439036ce 100644 --- a/docs/data-sources/snapshot_export_tasks.md +++ b/docs/data-sources/snapshot_export_tasks.md @@ -17,10 +17,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_snapshot_export_tasks" "snapshot_export_tasks01" { - filter { - name = "task_ids" - values = ["snap-export-12345678", "snap-export-87654321"] - } + filter { + name = "task_ids" + values = ["snap-export-12345678", "snap-export-87654321"] + } } ``` diff --git a/docs/data-sources/snapshots.md b/docs/data-sources/snapshots.md index fb3cad14c..f2545c046 100644 --- a/docs/data-sources/snapshots.md +++ b/docs/data-sources/snapshots.md @@ -17,10 +17,14 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_snapshots" "snapshots01" { - filter { - name = "snapshot_ids" - values = ["snap-12345678", "snap-12345679"] - } + filter { + name = "tag_keys" + values = ["env"] + } + filter { + name = "tag_values" + values = ["prod", "test"] + } } ``` @@ -39,7 +43,7 @@ The following arguments are supported: * `states` - (Optional) The states of the snapshots (`in-queue` \| `completed` \| `error`). * `tag_keys` - (Optional) The keys of the tags associated with the snapshots. * `tag_values` - (Optional) The values of the tags associated with the snapshots. - * `tags` - (Optional) The key/value combination of the tags associated with the snapshots, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the snapshots, in the following format: `TAGKEY=TAGVALUE`. * `volume_ids` - (Optional) The IDs of the volumes used to create the snapshots. * `volume_sizes` - (Optional) The sizes of the volumes used to create the snapshots, in gibibytes (GiB). diff --git a/docs/data-sources/subnet.md b/docs/data-sources/subnet.md index 95b1b4108..4a3ab7ced 100644 --- a/docs/data-sources/subnet.md +++ b/docs/data-sources/subnet.md @@ -17,10 +17,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_subnet" "subnet01" { - filter { - name = "net_ids" - values = ["vpc-12345678"] - } + filter { + name = "net_ids" + values = ["vpc-12345678"] + } } ``` @@ -37,7 +37,7 @@ The following arguments are supported: * `subregion_names` - (Optional) The names of the Subregions in which the Subnets are located. * `tag_keys` - (Optional) The keys of the tags associated with the Subnets. * `tag_values` - (Optional) The values of the tags associated with the Subnets. - * `tags` - (Optional) The key/value combination of the tags associated with the Subnets, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the Subnets, in the following format: `TAGKEY=TAGVALUE`. ## Attribute Reference diff --git a/docs/data-sources/subnets.md b/docs/data-sources/subnets.md index 6f3321b17..3ae16ee1d 100644 --- a/docs/data-sources/subnets.md +++ b/docs/data-sources/subnets.md @@ -17,10 +17,14 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_subnets" "subnets01" { - filter { - name = "net_ids" - values = ["vpc-12345678", "vpc-12345679"] - } + filter { + name = "states" + values = ["available"] + } + filter { + name = "subregion_names" + values = ["eu-west-2a", "eu-west-2b"] + } } ``` @@ -37,7 +41,7 @@ The following arguments are supported: * `subregion_names` - (Optional) The names of the Subregions in which the Subnets are located. * `tag_keys` - (Optional) The keys of the tags associated with the Subnets. * `tag_values` - (Optional) The values of the tags associated with the Subnets. - * `tags` - (Optional) The key/value combination of the tags associated with the Subnets, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the Subnets, in the following format: `TAGKEY=TAGVALUE`. ## Attribute Reference diff --git a/docs/data-sources/subregions.md b/docs/data-sources/subregions.md index 6d10d64c8..00ac8c87f 100644 --- a/docs/data-sources/subregions.md +++ b/docs/data-sources/subregions.md @@ -19,10 +19,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_subregions" "subregions01" { - filter { - name = "subregion_names" - values = ["eu-west-2a"] - } + filter { + name = "subregion_names" + values = ["eu-west-2a"] + } } ``` @@ -30,10 +30,10 @@ data "outscale_subregions" "subregions01" { ```hcl data "outscale_subregions" "subregions02" { - filter { - name = "subregion_names" - values = ["eu-west-2a", "eu-west-2b"] - } + filter { + name = "subregion_names" + values = ["eu-west-2a", "eu-west-2b"] + } } ``` ### List all accessible Subregions in the current Region diff --git a/docs/data-sources/virtual_gateway.md b/docs/data-sources/virtual_gateway.md index 86d6b876c..61401cc34 100644 --- a/docs/data-sources/virtual_gateway.md +++ b/docs/data-sources/virtual_gateway.md @@ -17,10 +17,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_virtual_gateway" "virtual_gateway01" { - filter { - name = "virtual_gateway_ids" - values = ["vgw-12345678"] - } + filter { + name = "virtual_gateway_ids" + values = ["vgw-12345678"] + } } ``` @@ -35,7 +35,7 @@ The following arguments are supported: * `states` - (Optional) The states of the virtual gateways (`pending` \| `available` \| `deleting` \| `deleted`). * `tag_keys` - (Optional) The keys of the tags associated with the virtual gateways. * `tag_values` - (Optional) The values of the tags associated with the virtual gateways. - * `tags` - (Optional) The key/value combination of the tags associated with the virtual gateways, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the virtual gateways, in the following format: `TAGKEY=TAGVALUE`. * `virtual_gateway_ids` - (Optional) The IDs of the virtual gateways. ## Attribute Reference diff --git a/docs/data-sources/virtual_gateways.md b/docs/data-sources/virtual_gateways.md index 67199a1d6..edab5be5a 100644 --- a/docs/data-sources/virtual_gateways.md +++ b/docs/data-sources/virtual_gateways.md @@ -17,10 +17,14 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_virtual_gateways" "virtual_gateways01" { - filter { - name = "virtual_gateway_ids" - values = ["vgw-12345678", "vgw-87654321"] - } + filter { + name = "states" + values = ["available"] + } + filter { + name = "link_states" + values = ["attached", "detached"] + } } ``` @@ -35,7 +39,7 @@ The following arguments are supported: * `states` - (Optional) The states of the virtual gateways (`pending` \| `available` \| `deleting` \| `deleted`). * `tag_keys` - (Optional) The keys of the tags associated with the virtual gateways. * `tag_values` - (Optional) The values of the tags associated with the virtual gateways. - * `tags` - (Optional) The key/value combination of the tags associated with the virtual gateways, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the virtual gateways, in the following format: `TAGKEY=TAGVALUE`. * `virtual_gateway_ids` - (Optional) The IDs of the virtual gateways. ## Attribute Reference diff --git a/docs/data-sources/vm.md b/docs/data-sources/vm.md index dda3afabf..4c1561618 100644 --- a/docs/data-sources/vm.md +++ b/docs/data-sources/vm.md @@ -16,11 +16,11 @@ For more information on this resource actions, see the [API documentation](https ## Example Usage ```hcl -data "outscale_vm" "vm_01" { - filter { - name = "vm_ids" - values = ["i-12345678"] - } +data "outscale_vm" "vm01" { + filter { + name = "vm_ids" + values = ["i-12345678"] + } } ``` @@ -31,7 +31,7 @@ The following arguments are supported: * `filter` - (Optional) A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following: * `tag_keys` - (Optional) The keys of the tags associated with the VMs. * `tag_values` - (Optional) The values of the tags associated with the VMs. - * `tags` - (Optional) The key/value combination of the tags associated with the VMs, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the VMs, in the following format: `TAGKEY=TAGVALUE`. * `vm_ids` - (Optional) One or more IDs of VMs. ## Attribute Reference @@ -46,9 +46,8 @@ The following attributes are exported: * `state` - The state of the volume. * `volume_id` - The ID of the volume. * `device_name` - The name of the device. -* `bsu_optimized` - This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. * `client_token` - The idempotency token provided when launching the VM. -* `creation_date` - The date and time at which the VM was created. +* `creation_date` - The date and time of creation of the VM. * `deletion_protection` - If true, you cannot delete the VM unless you change this parameter back to false. * `hypervisor` - The hypervisor type of the VMs (`ovm` \| `xen`). * `image_id` - The ID of the OMI used to create the VM. diff --git a/docs/data-sources/vm_state.md b/docs/data-sources/vm_state.md index b3243683d..c2a94728d 100644 --- a/docs/data-sources/vm_state.md +++ b/docs/data-sources/vm_state.md @@ -17,10 +17,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_vm_state" "vm_state01" { - filter { - name = "vm_ids" - values = ["i-12345678"] - } + filter { + name = "vm_ids" + values = ["i-12345678"] + } } ``` @@ -28,7 +28,6 @@ data "outscale_vm_state" "vm_state01" { The following arguments are supported: -* `all_vms` - (Optional) If true, includes the status of all VMs. By default or if set to false, only includes the status of running VMs. * `filter` - (Optional) A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following: * `maintenance_event_codes` - (Optional) The code for the scheduled event (`system-reboot` \| `system-maintenance`). * `maintenance_event_descriptions` - (Optional) The description of the scheduled event. @@ -36,7 +35,6 @@ The following arguments are supported: * `maintenance_events_not_before` - (Optional) The earliest time the event can start. * `subregion_names` - (Optional) The names of the Subregions of the VMs. * `vm_ids` - (Optional) One or more IDs of VMs. - * `vm_states` - (Optional) The states of the VMs (`pending` \| `running` \| `stopping` \| `stopped` \| `shutting-down` \| `terminated` \| `quarantine`). ## Attribute Reference @@ -49,4 +47,4 @@ The following attributes are exported: * `not_before` - The earliest scheduled start time for the event. * `subregion_name` - The name of the Subregion of the VM. * `vm_id` - The ID of the VM. -* `vm_state` - The state of the VM (`pending` \| `running` \| `stopping` \| `stopped` \| `shutting-down` \| `terminated` \| `quarantine`). +* `vm_state` - The state of the VM. Currently, only `running` VMs are returned. diff --git a/docs/data-sources/vm_states.md b/docs/data-sources/vm_states.md index 982a97e87..b57f3085c 100644 --- a/docs/data-sources/vm_states.md +++ b/docs/data-sources/vm_states.md @@ -17,10 +17,14 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_vm_states" "vm_states01" { - filter { - name = "vm_ids" - values = ["i-12345678", "i-12345679"] - } + filter { + name = "vm_ids" + values = ["i-12345678", "i-87654321"] + } + filter { + name = "vm_states" + values = ["running"] + } } ``` @@ -29,7 +33,6 @@ data "outscale_vm_states" "vm_states01" { The following arguments are supported: -* `all_vms` - (Optional) If true, includes the status of all VMs. By default or if set to false, only includes the status of running VMs. * `filter` - (Optional) A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following: * `maintenance_event_codes` - (Optional) The code for the scheduled event (`system-reboot` \| `system-maintenance`). * `maintenance_event_descriptions` - (Optional) The description of the scheduled event. @@ -37,7 +40,6 @@ The following arguments are supported: * `maintenance_events_not_before` - (Optional) The earliest time the event can start. * `subregion_names` - (Optional) The names of the Subregions of the VMs. * `vm_ids` - (Optional) One or more IDs of VMs. - * `vm_states` - (Optional) The states of the VMs (`pending` \| `running` \| `stopping` \| `stopped` \| `shutting-down` \| `terminated` \| `quarantine`). ## Attribute Reference @@ -51,4 +53,4 @@ The following attributes are exported: * `not_before` - The earliest scheduled start time for the event. * `subregion_name` - The name of the Subregion of the VM. * `vm_id` - The ID of the VM. - * `vm_state` - The state of the VM (`pending` \| `running` \| `stopping` \| `stopped` \| `shutting-down` \| `terminated` \| `quarantine`). + * `vm_state` - The state of the VM. Currently, only `running` VMs are returned. diff --git a/docs/data-sources/vm_types.md b/docs/data-sources/vm_types.md index 26899f9b4..538b58b14 100644 --- a/docs/data-sources/vm_types.md +++ b/docs/data-sources/vm_types.md @@ -27,7 +27,7 @@ data "outscale_vm_types" "vm_types01" { filter { name = "bsu_optimized" values = [true] - } + } } ``` @@ -37,7 +37,7 @@ data "outscale_vm_types" "vm_types02" { filter { name = "vm_type_names" values = ["m3.large"] - } + } } ``` diff --git a/docs/data-sources/vms.md b/docs/data-sources/vms.md index 292b4ea96..b67a0893f 100644 --- a/docs/data-sources/vms.md +++ b/docs/data-sources/vms.md @@ -16,11 +16,15 @@ For more information on this resource actions, see the [API documentation](https ## Example Usage ```hcl -data "outscale_vms" "vms_01" { - filter { - name = "vm_ids" - values = ["i-12345678", "i-12345679"] - } +data "outscale_vms" "vms01" { + filter { + name = "tag_keys" + values = ["env"] + } + filter { + name = "tag_values" + values = ["prod", "test"] + } } ``` @@ -31,7 +35,7 @@ The following arguments are supported: * `filter` - (Optional) A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following: * `tag_keys` - (Optional) The keys of the tags associated with the VMs. * `tag_values` - (Optional) The values of the tags associated with the VMs. - * `tags` - (Optional) The key/value combination of the tags associated with the VMs, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the VMs, in the following format: `TAGKEY=TAGVALUE`. * `vm_ids` - (Optional) One or more IDs of VMs. ## Attribute Reference @@ -47,9 +51,8 @@ The following attributes are exported: * `state` - The state of the volume. * `volume_id` - The ID of the volume. * `device_name` - The name of the device. - * `bsu_optimized` - This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. * `client_token` - The idempotency token provided when launching the VM. - * `creation_date` - The date and time at which the VM was created. + * `creation_date` - The date and time of creation of the VM. * `deletion_protection` - If true, you cannot delete the VM unless you change this parameter back to false. * `hypervisor` - The hypervisor type of the VMs (`ovm` \| `xen`). * `image_id` - The ID of the OMI used to create the VM. diff --git a/docs/data-sources/volume.md b/docs/data-sources/volume.md index 4b29f1a69..42c130604 100644 --- a/docs/data-sources/volume.md +++ b/docs/data-sources/volume.md @@ -17,10 +17,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_volume" "outscale_volume01" { - filter { - name = "volume_ids" - values = ["vol-12345678"] - } + filter { + name = "volume_ids" + values = ["vol-12345678"] + } } ``` @@ -29,17 +29,17 @@ data "outscale_volume" "outscale_volume01" { The following arguments are supported: * `filter` - (Optional) A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following: - * `creation_dates` - (Optional) The dates and times at which the volumes were created. + * `creation_dates` - (Optional) The dates and times of creation of the volumes. * `link_volume_delete_on_vm_deletion` - (Optional) Whether the volumes are deleted or not when terminating the VMs. * `link_volume_device_names` - (Optional) The VM device names. - * `link_volume_link_dates` - (Optional) The dates and times at which the volumes were created. + * `link_volume_link_dates` - (Optional) The dates and times of creation of the volumes. * `link_volume_link_states` - (Optional) The attachment states of the volumes (`attaching` \| `detaching` \| `attached` \| `detached`). * `link_volume_vm_ids` - (Optional) One or more IDs of VMs. * `snapshot_ids` - (Optional) The snapshots from which the volumes were created. * `subregion_names` - (Optional) The names of the Subregions in which the volumes were created. * `tag_keys` - (Optional) The keys of the tags associated with the volumes. * `tag_values` - (Optional) The values of the tags associated with the volumes. - * `tags` - (Optional) The key/value combination of the tags associated with the volumes, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the volumes, in the following format: `TAGKEY=TAGVALUE`. * `volume_ids` - (Optional) The IDs of the volumes. * `volume_sizes` - (Optional) The sizes of the volumes, in gibibytes (GiB). * `volume_states` - (Optional) The states of the volumes (`creating` \| `available` \| `in-use` \| `updating` \| `deleting` \| `error`). diff --git a/docs/data-sources/volumes.md b/docs/data-sources/volumes.md index e4e47a8d2..2571f2704 100644 --- a/docs/data-sources/volumes.md +++ b/docs/data-sources/volumes.md @@ -17,10 +17,14 @@ For more information on this resource actions, see the [API documentation](https ```hcl data "outscale_volumes" "outscale_volumes01" { - filter { - name = "volume_ids" - values = ["vol-12345678", "vol-12345679"] - } + filter { + name = "volume_states" + values = ["in-use"] + } + filter { + name = "volume_types" + values = ["gp2", "io1"] + } } ``` @@ -29,17 +33,17 @@ data "outscale_volumes" "outscale_volumes01" { The following arguments are supported: * `filter` - (Optional) A combination of a filter name and one or more filter values. You can specify this argument for as many filter names as you need. The filter name can be any of the following: - * `creation_dates` - (Optional) The dates and times at which the volumes were created. + * `creation_dates` - (Optional) The dates and times of creation of the volumes. * `link_volume_delete_on_vm_deletion` - (Optional) Whether the volumes are deleted or not when terminating the VMs. * `link_volume_device_names` - (Optional) The VM device names. - * `link_volume_link_dates` - (Optional) The dates and times at which the volumes were created. + * `link_volume_link_dates` - (Optional) The dates and times of creation of the volumes. * `link_volume_link_states` - (Optional) The attachment states of the volumes (`attaching` \| `detaching` \| `attached` \| `detached`). * `link_volume_vm_ids` - (Optional) One or more IDs of VMs. * `snapshot_ids` - (Optional) The snapshots from which the volumes were created. * `subregion_names` - (Optional) The names of the Subregions in which the volumes were created. * `tag_keys` - (Optional) The keys of the tags associated with the volumes. * `tag_values` - (Optional) The values of the tags associated with the volumes. - * `tags` - (Optional) The key/value combination of the tags associated with the volumes, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the volumes, in the following format: `TAGKEY=TAGVALUE`. * `volume_ids` - (Optional) The IDs of the volumes. * `volume_sizes` - (Optional) The sizes of the volumes, in gibibytes (GiB). * `volume_states` - (Optional) The states of the volumes (`creating` \| `available` \| `in-use` \| `updating` \| `deleting` \| `error`). diff --git a/docs/data-sources/vpn_connection.md b/docs/data-sources/vpn_connection.md index 6af80731a..e814970a4 100644 --- a/docs/data-sources/vpn_connection.md +++ b/docs/data-sources/vpn_connection.md @@ -16,7 +16,7 @@ For more information on this resource actions, see the [API documentation](https ## Example Usage ```hcl -data "outscale_vpn_connection" "data_vpn_connection" { +data "outscale_vpn_connection" "vpn_connection01" { filter { name = "vpn_connection_ids" values = ["vpn-12345678"] @@ -37,7 +37,7 @@ The following arguments are supported: * `static_routes_only` - (Optional) If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see [CreateVpnConnectionRoute](https://docs.outscale.com/api#createvpnconnectionroute) and [DeleteVpnConnectionRoute](https://docs.outscale.com/api#deletevpnconnectionroute). * `tag_keys` - (Optional) The keys of the tags associated with the VPN connections. * `tag_values` - (Optional) The values of the tags associated with the VPN connections. - * `tags` - (Optional) The key/value combination of the tags associated with the VPN connections, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the VPN connections, in the following format: `TAGKEY=TAGVALUE`. * `virtual_gateway_ids` - (Optional) The IDs of the virtual gateways. * `vpn_connection_ids` - (Optional) The IDs of the VPN connections. diff --git a/docs/data-sources/vpn_connections.md b/docs/data-sources/vpn_connections.md index adb306855..29a503bef 100644 --- a/docs/data-sources/vpn_connections.md +++ b/docs/data-sources/vpn_connections.md @@ -16,10 +16,14 @@ For more information on this resource actions, see the [API documentation](https ## Example Usage ```hcl -data "outscale_vpn_connections" "data_vpn_connections" { +data "outscale_vpn_connections" "vpn_connections01" { filter { - name = "vpn_connection_ids" - values = ["vpn-12345678","vpn-87654321"] + name = "client_gateway_ids" + values = ["cgw-12345678"] + } + filter { + name = "virtual_gateway_ids" + values = ["vgw-12345678", "vgw-12345678"] } } ``` @@ -37,7 +41,7 @@ The following arguments are supported: * `static_routes_only` - (Optional) If false, the VPN connection uses dynamic routing with Border Gateway Protocol (BGP). If true, routing is controlled using static routes. For more information about how to create and delete static routes, see [CreateVpnConnectionRoute](https://docs.outscale.com/api#createvpnconnectionroute) and [DeleteVpnConnectionRoute](https://docs.outscale.com/api#deletevpnconnectionroute). * `tag_keys` - (Optional) The keys of the tags associated with the VPN connections. * `tag_values` - (Optional) The values of the tags associated with the VPN connections. - * `tags` - (Optional) The key/value combination of the tags associated with the VPN connections, in the following format: "Filters":{"Tags":["TAGKEY=TAGVALUE"]}. + * `tags` - (Optional) The key/value combinations of the tags associated with the VPN connections, in the following format: `TAGKEY=TAGVALUE`. * `virtual_gateway_ids` - (Optional) The IDs of the virtual gateways. * `vpn_connection_ids` - (Optional) The IDs of the VPN connections. diff --git a/docs/index.md b/docs/index.md index 6433593c8..5525854a1 100644 --- a/docs/index.md +++ b/docs/index.md @@ -12,8 +12,8 @@ The provider is based on our OUTSCALE API. For more information, see [APIs Refer The provider needs to be configured with the proper credentials before it can be used. -> **Note:** -To configure the provider, see our [README](https://github.com/outscale-dev/terraform-provider-outscale#using-the-provider) and the [Terraform documentation](https://www.terraform.io/docs/configuration/provider-requirements.html).
-To configure a proxy, see our [README](https://github.com/outscale-dev/terraform-provider-outscale#configuring-the-proxy-on-linuxmac-os-if-any). +To configure the provider, see our [README](https://github.com/outscale/terraform-provider-outscale#using-the-provider) and the [Terraform documentation](https://www.terraform.io/docs/configuration/provider-requirements.html).
+To configure a proxy, see our [README](https://github.com/outscale/terraform-provider-outscale#configuring-the-proxy-if-any). ## Example diff --git a/docs/resources/api_access_rule.md b/docs/resources/api_access_rule.md index 9fe870d6e..109ead663 100644 --- a/docs/resources/api_access_rule.md +++ b/docs/resources/api_access_rule.md @@ -19,8 +19,8 @@ For more information on this resource actions, see the [API documentation](https ```hcl resource "outscale_api_access_rule" "api_access_rule01" { - ip_ranges = ["192.0.2.0", "192.0.2.0/16"] - description = "Basic API Access Rule from Terraform" + ip_ranges = ["192.0.2.0", "192.0.2.0/16"] + description = "Basic API Access Rule from Terraform" } ``` @@ -33,9 +33,9 @@ resource "outscale_ca" "ca01" { } resource "outscale_api_access_rule" "api_access_rule02" { - ip_ranges = ["192.0.2.0", "192.0.2.0/16"] - ca_ids = [outscale_ca.ca01.ca_id] - description = "API Access Rule with CA from Terraform" + ip_ranges = ["192.0.2.0", "192.0.2.0/16"] + ca_ids = [outscale_ca.ca01.ca_id] + description = "API Access Rule with CA from Terraform" } ``` diff --git a/docs/resources/client_gateway.md b/docs/resources/client_gateway.md index 75b9cbc71..950892d0e 100644 --- a/docs/resources/client_gateway.md +++ b/docs/resources/client_gateway.md @@ -23,7 +23,7 @@ resource "outscale_client_gateway" "client_gateway01" { tags { key = "Name" value = "client_gateway_01" - } + } } ``` diff --git a/docs/resources/flexible_gpu.md b/docs/resources/flexible_gpu.md index 653364a1b..86e5f3e55 100644 --- a/docs/resources/flexible_gpu.md +++ b/docs/resources/flexible_gpu.md @@ -19,10 +19,10 @@ For more information on this resource actions, see the [API documentation](https ```hcl resource "outscale_flexible_gpu" "flexible_gpu01" { - model_name = var.model_name - generation = "v4" - subregion_name = "${var.region}a" - delete_on_vm_deletion = true + model_name = var.model_name + generation = "v4" + subregion_name = "${var.region}a" + delete_on_vm_deletion = true } ``` diff --git a/docs/resources/flexible_gpu_link.md b/docs/resources/flexible_gpu_link.md index 9737752a3..65a773a11 100644 --- a/docs/resources/flexible_gpu_link.md +++ b/docs/resources/flexible_gpu_link.md @@ -21,16 +21,16 @@ For more information on this resource actions, see the [API documentation](https ```hcl resource "outscale_vm" "vm01" { - image_id = ami-12345678 - vm_type = t2.small - keypair_name = var.keypair_name - placement_subregion_name = "eu-west-2a" + image_id = ami-12345678 + vm_type = t2.small + keypair_name = var.keypair_name + placement_subregion_name = "eu-west-2a" } resource "outscale_flexible_gpu" "flexible_gpu01" { - model_name = var.model_name - generation = "v4" - subregion_name = "eu-west-2a" - delete_on_vm_deletion = true + model_name = var.model_name + generation = "v4" + subregion_name = "eu-west-2a" + delete_on_vm_deletion = true } ``` @@ -38,8 +38,8 @@ resource "outscale_flexible_gpu" "flexible_gpu01" { ```hcl resource "outscale_flexible_gpu_link" "link_fgpu01" { - flexible_gpu_id = outscale_flexible_gpu.flexible_gpu01.flexible_gpu_id - vm_id = outscale_vm.vm01.vm_id + flexible_gpu_id = outscale_flexible_gpu.flexible_gpu01.flexible_gpu_id + vm_id = outscale_vm.vm01.vm_id } ``` diff --git a/docs/resources/image.md b/docs/resources/image.md index 52132d4ce..f45fb7c23 100644 --- a/docs/resources/image.md +++ b/docs/resources/image.md @@ -19,9 +19,9 @@ For more information on this resource actions, see the [API documentation](https ```hcl resource "outscale_image" "image01" { - image_name = "terraform-omi-create" - vm_id = var.vm_id - no_reboot = "true" + image_name = "terraform-omi-create" + vm_id = var.vm_id + no_reboot = "true" } ``` @@ -30,9 +30,9 @@ resource "outscale_image" "image01" { ```hcl resource "outscale_image" "image02" { - description = "Terraform register OMI" - image_name = "terraform-omi-register" - file_location = "" + description = "Terraform register OMI" + image_name = "terraform-omi-register" + file_location = "" } ``` @@ -40,10 +40,10 @@ resource "outscale_image" "image02" { ```hcl resource "outscale_image" "image03" { - description = "Terraform copy OMI" - image_name = "terraform-omi-copy" - source_image_id = "ami-12345678" - source_region_name = "eu-west-2" + description = "Terraform copy OMI" + image_name = "terraform-omi-copy" + source_image_id = "ami-12345678" + source_region_name = "eu-west-2" } ``` @@ -51,19 +51,19 @@ resource "outscale_image" "image03" { ```hcl resource "outscale_image" "image04" { - image_name = "terraform-omi-bsu" - block_device_mappings { - device_name = "/dev/sda1" - bsu { - snapshot_id = "snap-12345678" - volume_size = "120" - volume_type = "io1" - iops = 150 - delete_on_vm_deletion = "true" + image_name = "terraform-omi-bsu" + block_device_mappings { + device_name = "/dev/sda1" + bsu { + snapshot_id = "snap-12345678" + volume_size = "120" + volume_type = "io1" + iops = 150 + delete_on_vm_deletion = "true" + } } - } - root_device_name = "/dev/sda1" - description = "Terraform OMI with BSU" + root_device_name = "/dev/sda1" + description = "Terraform OMI with BSU" } ``` @@ -116,7 +116,7 @@ If you specify a snapshot ID but no volume size, the volume is created with a si For more information about volume types, see [About Volumes > Volume Types and IOPS](https://docs.outscale.com/en/userguide/About-Volumes.html#_volume_types_and_iops). * `device_name` - The device name for the volume. For a root device, you must use `/dev/sda1`. For other volumes, you must use `/dev/sdX`, `/dev/sdXX`, `/dev/xvdX`, or `/dev/xvdXX` (where the first `X` is a letter between `b` and `z`, and the second `X` is a letter between `a` and `z`). * `virtual_device_name` - The name of the virtual device (`ephemeralN`). -* `creation_date` - The date and time at which the OMI was created. +* `creation_date` - The date and time of creation of the OMI. * `description` - The description of the OMI. * `file_location` - The location of the bucket where the OMI files are stored. * `image_id` - The ID of the OMI. diff --git a/docs/resources/image_export_task.md b/docs/resources/image_export_task.md index 5abb21421..bb9828538 100644 --- a/docs/resources/image_export_task.md +++ b/docs/resources/image_export_task.md @@ -19,8 +19,8 @@ For more information on this resource actions, see the [API documentation](https ```hcl resource "outscale_image" "image01" { - image_name = "terraform-image-to-export" - vm_id = "i-12345678" + image_name = "terraform-image-to-export" + vm_id = "i-12345678" } ``` diff --git a/docs/resources/load_balancer.md b/docs/resources/load_balancer.md index c60105a80..6d083367e 100644 --- a/docs/resources/load_balancer.md +++ b/docs/resources/load_balancer.md @@ -19,18 +19,18 @@ For more information on this resource actions, see the [API documentation](https ```hcl resource "outscale_load_balancer" "load_balancer01" { - load_balancer_name = "terraform-public-load-balancer" - subregion_names = ["${var.region}a"] - listeners { - backend_port = 8080 - backend_protocol = "HTTP" - load_balancer_protocol = "HTTP" - load_balancer_port = 8080 - } - tags { - key = "name" - value = "terraform-public-load-balancer" - } + load_balancer_name = "terraform-public-load-balancer" + subregion_names = ["${var.region}a"] + listeners { + backend_port = 8080 + backend_protocol = "HTTP" + load_balancer_protocol = "HTTP" + load_balancer_port = 8080 + } + tags { + key = "name" + value = "terraform-public-load-balancer" + } } ``` @@ -38,43 +38,43 @@ resource "outscale_load_balancer" "load_balancer01" { ```hcl resource "outscale_net" "net01" { - ip_range = "10.0.0.0/16" + ip_range = "10.0.0.0/16" } resource "outscale_subnet" "subnet01" { - net_id = outscale_net.net01.net_id - ip_range = "10.0.0.0/24" - tags { - key = "Name" - value = "terraform-subnet-for-internal-load-balancer" - } + net_id = outscale_net.net01.net_id + ip_range = "10.0.0.0/24" + tags { + key = "Name" + value = "terraform-subnet-for-internal-load-balancer" + } } resource "outscale_security_group" "security_group01" { - description = "Terraform security group for internal load balancer" - security_group_name = "terraform-security-group-for-internal-load-balancer" - net_id = outscale_net.net01.net_id - tags { - key = "Name" - value = "terraform-security-group-for-internal-load-balancer" - } + description = "Terraform security group for internal load balancer" + security_group_name = "terraform-security-group-for-internal-load-balancer" + net_id = outscale_net.net01.net_id + tags { + key = "Name" + value = "terraform-security-group-for-internal-load-balancer" + } } resource "outscale_load_balancer" "load_balancer02" { - load_balancer_name = "terraform-private-load-balancer" - listeners { - backend_port = 80 - backend_protocol = "TCP" - load_balancer_protocol = "TCP" - load_balancer_port = 80 - } - subnets = [outscale_subnet.subnet01.subnet_id] - security_groups = [outscale_security_group.security_group01.security_group_id] - load_balancer_type = "internal" - tags { - key = "name" - value = "terraform-private-load-balancer" - } + load_balancer_name = "terraform-private-load-balancer" + listeners { + backend_port = 80 + backend_protocol = "TCP" + load_balancer_protocol = "TCP" + load_balancer_port = 80 + } + subnets = [outscale_subnet.subnet01.subnet_id] + security_groups = [outscale_security_group.security_group01.security_group_id] + load_balancer_type = "internal" + tags { + key = "name" + value = "terraform-private-load-balancer" + } } ``` @@ -82,70 +82,72 @@ resource "outscale_load_balancer" "load_balancer02" { ```hcl resource "outscale_net" "net02" { - ip_range = "10.0.0.0/16" + ip_range = "10.0.0.0/16" } resource "outscale_subnet" "subnet02" { - net_id = outscale_net.net02.net_id - ip_range = "10.0.0.0/24" - tags { - key = "Name" - value = "terraform-security-group-for-load-balancer" - } + net_id = outscale_net.net02.net_id + ip_range = "10.0.0.0/24" + tags { + key = "Name" + value = "terraform-security-group-for-load-balancer" + } } resource "outscale_internet_service" "internet_service01" { - depends_on = [outscale_net.net02] + depends_on = [outscale_net.net02] } resource "outscale_internet_service_link" "internet_service_link01" { - internet_service_id = outscale_internet_service.internet_service01.internet_service_id - net_id = outscale_net.net02.net_id + internet_service_id = outscale_internet_service.internet_service01.internet_service_id + net_id = outscale_net.net02.net_id } resource "outscale_route_table" "route_table01" { - net_id = outscale_net.net02.net_id - tags { - key = "name" - value = "terraform-route-table-for-load-balancer" - } + net_id = outscale_net.net02.net_id + tags { + key = "name" + value = "terraform-route-table-for-load-balancer" + } } resource "outscale_route" "route01" { - gateway_id = outscale_internet_service.internet_service01.id - destination_ip_range = "10.0.0.0/0" - route_table_id = outscale_route_table.route_table01.route_table_id + gateway_id = outscale_internet_service.internet_service01.id + destination_ip_range = "10.0.0.0/0" + route_table_id = outscale_route_table.route_table01.route_table_id } resource "outscale_route_table_link" "route_table_link01" { - route_table_id = outscale_route_table.route_table01.route_table_id - subnet_id = outscale_subnet.subnet02.subnet_id + route_table_id = outscale_route_table.route_table01.route_table_id + subnet_id = outscale_subnet.subnet02.subnet_id } resource "outscale_load_balancer" "load_balancer03" { - load_balancer_name = "terraform-internet-facing-private-load-balancer" - listeners { - backend_port = 80 - backend_protocol = "TCP" - load_balancer_protocol = "TCP" - load_balancer_port = 80 - } - listeners { - backend_port = 8080 - backend_protocol = "HTTP" - load_balancer_protocol = "HTTP" - load_balancer_port = 8080 - } - subnets = [outscale_subnet.subnet02.subnet_id] - load_balancer_type = "internet-facing" - tags { - key = "name" - value = "terraform-internet-facing-private-load-balancer" - } - depends_on = [outscale_route.route01,outscale_route_table_link.route_table_link01] + load_balancer_name = "terraform-internet-private-lb" + listeners { + backend_port = 80 + backend_protocol = "TCP" + load_balancer_protocol = "TCP" + load_balancer_port = 80 + } + listeners { + backend_port = 8080 + backend_protocol = "HTTP" + load_balancer_protocol = "HTTP" + load_balancer_port = 8080 + } + subnets = [outscale_subnet.subnet02.subnet_id] + load_balancer_type = "internet-facing" + public_ip = "192.0.2.0" + tags { + key = "name" + value = "terraform-internet-private-lb" + } + depends_on = [outscale_route.route01,outscale_route_table_link.route_table_link01] } ``` + ## Argument Reference The following arguments are supported: @@ -158,6 +160,7 @@ The following arguments are supported: * `server_certificate_id` - (Optional) The OUTSCALE Resource Name (ORN) of the server certificate. For more information, see [Resource Identifiers > OUTSCALE Resource Names (ORNs)](https://docs.outscale.com/en/userguide/Resource-Identifiers.html#_outscale_resource_names_orns). * `load_balancer_name` - (Required) The unique name of the load balancer (32 alphanumeric or hyphen characters maximum, but cannot start or end with a hyphen). * `load_balancer_type` - (Optional) The type of load balancer: `internet-facing` or `internal`. Use this parameter only for load balancers in a Net. +* `public_ip` - (Optional) (internet-facing only) The public IP you want to associate with the load balancer. If not specified, a public IP owned by 3DS OUTSCALE is associated. * `security_groups` - (Optional) (Net only) One or more IDs of security groups you want to assign to the load balancer. If not specified, the default security group of the Net is assigned to the load balancer. * `subnets` - (Optional) (Net only) The ID of the Subnet in which you want to create the load balancer. Regardless of this Subnet, the load balancer can distribute traffic to all Subnets. This parameter is required in a Net. * `subregion_names` - (Optional) (public Cloud only) The Subregion in which you want to create the load balancer. Regardless of this Subregion, the load balancer can distribute traffic to all Subregions. This parameter is required in the public Cloud. @@ -201,6 +204,7 @@ The following attributes are exported: If `load_balancer_type` is `internet-facing`, the load balancer has a public DNS name that resolves to a public IP.
If `load_balancer_type` is `internal`, the load balancer has a public DNS name that resolves to a private IP. * `net_id` - The ID of the Net for the load balancer. +* `public_ip` - (internet-facing only) The public IP associated with the load balancer. * `secured_cookies` - Whether secure cookies are enabled for the load balancer. * `security_groups` - One or more IDs of security groups for the load balancers. Valid only for load balancers in a Net. * `source_security_group` - Information about the source security group of the load balancer, which you can use as part of your inbound rules for your registered VMs.
diff --git a/docs/resources/load_balancer_attributes.md b/docs/resources/load_balancer_attributes.md index 1b8e0526e..f15dfe32c 100644 --- a/docs/resources/load_balancer_attributes.md +++ b/docs/resources/load_balancer_attributes.md @@ -19,35 +19,35 @@ For more information on this resource actions, see the [API documentation](https ```hcl resource "outscale_load_balancer" "load_balancer01" { - load_balancer_name = "terraform-load-balancer" - subregion_names = ["eu-west-2a"] - listeners { - backend_port = 80 - backend_protocol = "HTTP" - load_balancer_protocol = "HTTP" - load_balancer_port = 80 - } - listeners { - backend_port = 8080 - backend_protocol = "HTTPS" - load_balancer_protocol = "HTTPS" - load_balancer_port = 8080 - server_certificate_id = "arn:aws:iam::012345678910:server-certificate/MyCertificates/Certificate" - } - listeners { - backend_port = 1024 - backend_protocol = "TCP" - load_balancer_protocol = "TCP" - load_balancer_port = 1024 - } - tags { - key = "name" - value = "terraform-load-balancer" - } - tags { - key = "platform" - value = "eu-west-2" - } + load_balancer_name = "terraform-load-balancer" + subregion_names = ["eu-west-2a"] + listeners { + backend_port = 80 + backend_protocol = "HTTP" + load_balancer_protocol = "HTTP" + load_balancer_port = 80 + } + listeners { + backend_port = 8080 + backend_protocol = "HTTPS" + load_balancer_protocol = "HTTPS" + load_balancer_port = 8080 + server_certificate_id = "arn:aws:iam::012345678910:server-certificate/MyCertificates/Certificate" + } + listeners { + backend_port = 1024 + backend_protocol = "TCP" + load_balancer_protocol = "TCP" + load_balancer_port = 1024 + } + tags { + key = "name" + value = "terraform-load-balancer" + } + tags { + key = "platform" + value = "eu-west-2" + } } ``` @@ -55,16 +55,16 @@ resource "outscale_load_balancer" "load_balancer01" { ```hcl resource "outscale_load_balancer_attributes" "attributes01" { - load_balancer_name = outscale_load_balancer.load_balancer01.id - health_check { - healthy_threshold = 10 - check_interval = 30 - path = "/index.html" - port = 8080 - protocol = "HTTPS" - timeout = 5 - unhealthy_threshold = 5 - } + load_balancer_name = outscale_load_balancer.load_balancer01.id + health_check { + healthy_threshold = 10 + check_interval = 30 + path = "/index.html" + port = 8080 + protocol = "HTTPS" + timeout = 5 + unhealthy_threshold = 5 + } } ``` @@ -72,13 +72,13 @@ resource "outscale_load_balancer_attributes" "attributes01" { ```hcl resource "outscale_load_balancer_attributes" "attributes02" { - load_balancer_name = outscale_load_balancer.load_balancer01.id - access_log { - publication_interval = 5 - is_enabled = true - osu_bucket_name = "terraform-access-logs" - osu_bucket_prefix = "access-logs-01234" - } + load_balancer_name = outscale_load_balancer.load_balancer01.id + access_log { + publication_interval = 5 + is_enabled = true + osu_bucket_name = "terraform-access-logs" + osu_bucket_prefix = "access-logs-01234" + } } ``` @@ -86,9 +86,9 @@ resource "outscale_load_balancer_attributes" "attributes02" { ```hcl resource "outscale_load_balancer_attributes" "attributes03" { - load_balancer_name = outscale_load_balancer.load_balancer01.id - load_balancer_port = 80 - policy_names = ["policy-name-01"] + load_balancer_name = outscale_load_balancer.load_balancer01.id + load_balancer_port = 80 + policy_names = ["policy-name-01"] } ``` @@ -96,9 +96,9 @@ resource "outscale_load_balancer_attributes" "attributes03" { ```hcl resource "outscale_load_balancer_attributes" "attributes04" { - load_balancer_name = outscale_load_balancer.load_balancer01.id - load_balancer_port = 8080 - server_certificate_id = "arn:aws:iam::012345678910:server-certificate/MyCertificates/Certificate" + load_balancer_name = outscale_load_balancer.load_balancer01.id + load_balancer_port = 8080 + server_certificate_id = "arn:aws:iam::012345678910:server-certificate/MyCertificates/Certificate" } ``` diff --git a/docs/resources/load_balancer_listener_rule.md b/docs/resources/load_balancer_listener_rule.md index fe4577c50..9008d96cd 100644 --- a/docs/resources/load_balancer_listener_rule.md +++ b/docs/resources/load_balancer_listener_rule.md @@ -19,29 +19,29 @@ For more information on this resource actions, see the [API documentation](https ```hcl resource "outscale_vm" "vm01" { - image_id = var.image_id - vm_type = var.vm_type - keypair_name = var.keypair_name + image_id = var.image_id + vm_type = var.vm_type + keypair_name = var.keypair_name } resource "outscale_load_balancer" "load_balancer01" { - load_balancer_name = "terraform-public-load-balancer" - subregion_names = ["${var.region}a"] - listeners { - backend_port = 80 - backend_protocol = "TCP" - load_balancer_protocol = "TCP" - load_balancer_port = 80 - } - tags { - key = "name" - value = "terraform-public-load-balancer" - } + load_balancer_name = "terraform-public-load-balancer" + subregion_names = ["${var.region}a"] + listeners { + backend_port = 80 + backend_protocol = "TCP" + load_balancer_protocol = "TCP" + load_balancer_port = 80 + } + tags { + key = "name" + value = "terraform-public-load-balancer" + } } resource "outscale_load_balancer_vms" "outscale_load_balancer_vms01" { - load_balancer_name = outscale_load_balancer.load_balancer01.id - backend_vm_ids = [outscale_vm.vm01.vm_id] + load_balancer_name = outscale_load_balancer.load_balancer01.id + backend_vm_ids = [outscale_vm.vm01.vm_id] } ``` @@ -49,17 +49,17 @@ resource "outscale_load_balancer_vms" "outscale_load_balancer_vms01" { ```hcl resource "outscale_load_balancer_listener_rule" "rule01" { - listener { - load_balancer_name = outscale_load_balancer.load_balancer01.id - load_balancer_port = 80 - } - listener_rule { - action = "forward" - listener_rule_name = "terraform-listener-rule01" - path_pattern = "*.abc.*.abc.*.com" - priority = 10 - } - vm_ids = [outscale_vm.vm01.vm_id] + listener { + load_balancer_name = outscale_load_balancer.load_balancer01.id + load_balancer_port = 80 + } + listener_rule { + action = "forward" + listener_rule_name = "terraform-listener-rule01" + path_pattern = "*.abc.*.abc.*.com" + priority = 10 + } + vm_ids = [outscale_vm.vm01.vm_id] } ``` @@ -67,17 +67,17 @@ resource "outscale_load_balancer_listener_rule" "rule01" { ```hcl resource "outscale_load_balancer_listener_rule" "rule02" { - listener { - load_balancer_name = outscale_load_balancer.load_balancer01.id - load_balancer_port = 80 - } - listener_rule { - action = "forward" - listener_rule_name = "terraform-listener-rule02" - host_name_pattern = "*.abc.-.abc.*.com" - priority = 1 - } - vm_ids = [outscale_vm.vm01.vm_id] + listener { + load_balancer_name = outscale_load_balancer.load_balancer01.id + load_balancer_port = 80 + } + listener_rule { + action = "forward" + listener_rule_name = "terraform-listener-rule02" + host_name_pattern = "*.abc.-.abc.*.com" + priority = 1 + } + vm_ids = [outscale_vm.vm01.vm_id] } ``` diff --git a/docs/resources/load_balancer_policy.md b/docs/resources/load_balancer_policy.md index 22b8c0344..e58250492 100644 --- a/docs/resources/load_balancer_policy.md +++ b/docs/resources/load_balancer_policy.md @@ -19,20 +19,20 @@ For more information on this resource actions, see the [API documentation](https ```hcl resource "outscale_load_balancer" "load_balancer01" { - load_balancer_name = "terraform-load-balancer-for-browser-policy" - subregion_names = ["eu-west-2a"] - listeners { - backend_port = 8080 - backend_protocol = "HTTP" - load_balancer_port = 8080 - load_balancer_protocol = "HTTP" - } + load_balancer_name = "terraform-lb-for-browser-policy" + subregion_names = ["eu-west-2a"] + listeners { + backend_port = 8080 + backend_protocol = "HTTP" + load_balancer_port = 8080 + load_balancer_protocol = "HTTP" + } } resource "outscale_load_balancer_policy" "load_balancer_policy01" { - load_balancer_name = "terraform-load-balancer-for-browser-policy" - policy_name = "terraform-load-balancer-browser-policy" - policy_type = "load_balancer" + load_balancer_name = "terraform-lb-for-browser-policy" + policy_name = "terraform-lb-browser-policy" + policy_type = "load_balancer" } ``` @@ -40,22 +40,22 @@ resource "outscale_load_balancer_policy" "load_balancer_policy01" { ```hcl resource "outscale_load_balancer" "load_balancer02" { - load_balancer_name = "terraform-load-balancer-for-app-policy" - subregion_names = ["${var.region}b"] - listeners { - load_balancer_port = 80 - load_balancer_protocol = "TCP" - backend_port = 80 - backend_protocol = "TCP" - } + load_balancer_name = "terraform-lb-for-app-policy" + subregion_names = ["${var.region}b"] + listeners { + load_balancer_port = 80 + load_balancer_protocol = "TCP" + backend_port = 80 + backend_protocol = "TCP" + } } resource "outscale_load_balancer_policy" "load_balancer_policy02" { - load_balancer_name = outscale_load_balancer.load_balancer02.load_balancer_name - policy_name = "terraform-load-balancer-app-policy" - policy_type = "app" - cookie_name = "cookie01" - depends_on = [outscale_load_balancer.load_balancer02] + load_balancer_name = outscale_load_balancer.load_balancer02.load_balancer_name + policy_name = "terraform-lb-app-policy" + policy_type = "app" + cookie_name = "cookie01" + depends_on = [outscale_load_balancer.load_balancer02] } ``` diff --git a/docs/resources/load_balancer_vms.md b/docs/resources/load_balancer_vms.md index 61084ad9d..f649ad44e 100644 --- a/docs/resources/load_balancer_vms.md +++ b/docs/resources/load_balancer_vms.md @@ -34,14 +34,14 @@ resource "outscale_load_balancer" "load_balancer01" { load_balancer_name = "load-balancer-for-backend-vms" subregion_names = ["${var.region}a"] listeners { - backend_port = 80 - backend_protocol = "TCP" - load_balancer_protocol = "TCP" - load_balancer_port = 80 + backend_port = 80 + backend_protocol = "TCP" + load_balancer_protocol = "TCP" + load_balancer_port = 80 } tags { - key = "name" - value = "outscale_load_balancer01" + key = "name" + value = "outscale_load_balancer01" } } ``` diff --git a/docs/resources/net_access_point.md b/docs/resources/net_access_point.md index db87387e4..b59f9efbd 100644 --- a/docs/resources/net_access_point.md +++ b/docs/resources/net_access_point.md @@ -19,11 +19,11 @@ For more information on this resource actions, see the [API documentation](https ```hcl resource "outscale_net" "net01" { - ip_range = "10.0.0.0/16" + ip_range = "10.0.0.0/16" } resource "outscale_route_table" "route_table01" { - net_id = outscale_net.net01.net_id + net_id = outscale_net.net01.net_id } ``` @@ -31,13 +31,13 @@ resource "outscale_route_table" "route_table01" { ```hcl resource "outscale_net_access_point" "net_access_point01" { - net_id = outscale_net.net01.net_id - route_table_ids = [outscale_route_table.route_table01.route_table_id] - service_name = "com.outscale.eu-west-2.api" - tags { - key = "name" - value = "terraform-net-access-point" - } + net_id = outscale_net.net01.net_id + route_table_ids = [outscale_route_table.route_table01.route_table_id] + service_name = "com.outscale.eu-west-2.api" + tags { + key = "name" + value = "terraform-net-access-point" + } } ``` diff --git a/docs/resources/net_peering.md b/docs/resources/net_peering.md index 851eced00..5eb1e7707 100644 --- a/docs/resources/net_peering.md +++ b/docs/resources/net_peering.md @@ -19,11 +19,11 @@ For more information on this resource actions, see the [API documentation](https ```hcl resource "outscale_net" "net01" { - ip_range = "10.10.0.0/24" + ip_range = "10.10.0.0/24" } resource "outscale_net" "net02" { - ip_range = "10.31.0.0/16" + ip_range = "10.31.0.0/16" } ``` @@ -31,8 +31,8 @@ resource "outscale_net" "net02" { ```hcl resource "outscale_net_peering" "net_peering01" { - accepter_net_id = outscale_net.net01.net_id - source_net_id = outscale_net.net02.net_id + accepter_net_id = outscale_net.net01.net_id + source_net_id = outscale_net.net02.net_id } ``` diff --git a/docs/resources/net_peering_acceptation.md b/docs/resources/net_peering_acceptation.md index 9348dd1e1..f23a82829 100644 --- a/docs/resources/net_peering_acceptation.md +++ b/docs/resources/net_peering_acceptation.md @@ -17,7 +17,7 @@ For more information on this resource actions, see the [API documentation](https ```hcl resource "outscale_net_peering_acceptation" "net_peering_acceptation01" { - net_peering_id = outscale_net_peering.net_peering01.net_peering_id + net_peering_id = outscale_net_peering.net_peering01.net_peering_id } ``` diff --git a/docs/resources/nic.md b/docs/resources/nic.md index 96594ad61..55229d74d 100644 --- a/docs/resources/nic.md +++ b/docs/resources/nic.md @@ -19,19 +19,19 @@ For more information on this resource actions, see the [API documentation](https ```hcl resource "outscale_net" "net01" { - ip_range = "10.0.0.0/16" + ip_range = "10.0.0.0/16" } resource "outscale_subnet" "subnet01" { - subregion_name = "eu-west-2a" - ip_range = "10.0.0.0/18" - net_id = outscale_net.net01.net_id + subregion_name = "eu-west-2a" + ip_range = "10.0.0.0/18" + net_id = outscale_net.net01.net_id } resource "outscale_security_group" "security_group01" { - description = "Terraform security group for nic with private IPs" - security_group_name = "terraform-security-group-nic-ips" - net_id = outscale_net.net01.net_id + description = "Terraform security group for nic with private IPs" + security_group_name = "terraform-security-group-nic-ips" + net_id = outscale_net.net01.net_id } ``` @@ -39,7 +39,7 @@ resource "outscale_security_group" "security_group01" { ```hcl resource "outscale_nic" "nic01" { - subnet_id = outscale_subnet.subnet01.subnet_id + subnet_id = outscale_subnet.subnet01.subnet_id } ``` @@ -48,17 +48,17 @@ resource "outscale_nic" "nic01" { ```hcl resource "outscale_nic" "nic02" { - description = "Terraform nic with private IPs" - subnet_id = outscale_subnet.outscale_subnet01.subnet_id - security_group_ids = [outscale_security_group.outscale_security_group1.security_group_id] - private_ips { - is_primary = true - private_ip = "10.0.0.1" - } - private_ips { - is_primary = false - private_ip = "10.0.0.2" - } + description = "Terraform nic with private IPs" + subnet_id = outscale_subnet.subnet01.subnet_id + security_group_ids = [outscale_security_group.security_group01.security_group_id] + private_ips { + is_primary = true + private_ip = "10.0.0.1" + } + private_ips { + is_primary = false + private_ip = "10.0.0.2" + } } ``` diff --git a/docs/resources/vm.md b/docs/resources/vm.md index ab50d89b1..5c548778d 100644 --- a/docs/resources/vm.md +++ b/docs/resources/vm.md @@ -186,7 +186,6 @@ For more information about volume types, see [About Volumes > Volume Types and I * `device_name` - (Optional) The device name for the volume. For a root device, you must use `/dev/sda1`. For other volumes, you must use `/dev/sdX`, `/dev/sdXX`, `/dev/xvdX`, or `/dev/xvdXX` (where the first `X` is a letter between `b` and `z`, and the second `X` is a letter between `a` and `z`). * `no_device` - (Optional) Removes the device which is included in the block device mapping of the OMI. * `virtual_device_name` - (Optional) The name of the virtual device (`ephemeralN`). -* `bsu_optimized` - (Optional) If true, the VM is created with optimized BSU I/O. Updating this parameter will trigger a stop/start of the VM. * `client_token` - (Optional) A unique identifier which enables you to manage the idempotency. * `deletion_protection` - (Optional) If true, you cannot delete the VM unless you change this parameter back to false. * `get_admin_password` - (Optional) (Windows VM only) If true, waits for the administrator password of the VM to become available in order to retrieve the VM. The password is exported to the `admin_password` attribute. @@ -217,13 +216,13 @@ For more information about volume types, see [About Volumes > Volume Types and I * `value` - (Required) The value of the tag, between 0 and 255 characters. * `user_data` - (Optional) Data or script used to add a specific configuration to the VM. It must be Base64-encoded, either directly or using the [base64encode](https://www.terraform.io/docs/configuration/functions/base64encode.html) Terraform function. For multiline strings, use a [heredoc syntax](https://www.terraform.io/docs/configuration/expressions.html#string-literals). Updating this parameter will trigger a stop/start of the VM. * `vm_initiated_shutdown_behavior` - (Optional) The VM behavior when you stop it. By default or if set to `stop`, the VM stops. If set to `restart`, the VM stops then automatically restarts. If set to `terminate`, the VM stops and is terminated. -* `vm_type` - (Optional) The type of VM (`t2.small` by default). Updating this parameter will trigger a stop/start of the VM.
For more information, see [Instance Types](https://wiki.outscale.net/display/EN/Instance+Types). +* `vm_type` - (Optional) The type of VM (`t2.small` by default). Updating this parameter will trigger a stop/start of the VM.
For more information, see [Instance Types](https://docs.outscale.com/en/userguide/Instance-Types.html). ## Attribute Reference The following attributes are exported: -* `admin_password` - (Windows VM only) The administrator password of the VM. This password is encrypted with the keypair you specified when launching the VM and encoded in Base64. You need to wait about 10 minutes after launching the VM to be able to retrieve this password.
If `get_admin_password` is false or not specified, the VM resource is created without the `admin_password` attribute. Once `admin_password` is available, it will appear in the Terraform state after the next **refresh** or **apply** command.
If `get_admin_password` is true, the VM resource itself is not considered created until the `admin_password` attribute is available.
Note also that after the first reboot of the VM, this attribute can no longer be retrieved. For more information on how to use this password to connect to the VM, see [Accessing a Windows Instance](https://wiki.outscale.net/display/EN/Accessing+a+Windows+Instance). +* `admin_password` - (Windows VM only) The administrator password of the VM. This password is encrypted with the keypair you specified when launching the VM and encoded in Base64. You need to wait about 10 minutes after launching the VM to be able to retrieve this password.
If `get_admin_password` is false or not specified, the VM resource is created without the `admin_password` attribute. Once `admin_password` is available, it will appear in the Terraform state after the next **refresh** or **apply** command.
If `get_admin_password` is true, the VM resource itself is not considered created until the `admin_password` attribute is available.
Note also that after the first reboot of the VM, this attribute can no longer be retrieved. For more information on how to use this password to connect to the VM, see [Accessing a Windows Instance](https://docs.outscale.com/en/userguide/Accessing-a-Windows-Instance.html). * `architecture` - The architecture of the VM (`i386` \| `x86_64`). * `block_device_mappings_created` - The block device mapping of the VM. * `bsu` - Information about the created BSU volume. @@ -232,9 +231,8 @@ The following attributes are exported: * `state` - The state of the volume. * `volume_id` - The ID of the volume. * `device_name` - The name of the device. -* `bsu_optimized` - This parameter is not available. It is present in our API for the sake of historical compatibility with AWS. * `client_token` - The idempotency token provided when launching the VM. -* `creation_date` - The date and time at which the VM was created. +* `creation_date` - The date and time of creation of the VM. * `deletion_protection` - If true, you cannot delete the VM unless you change this parameter back to false. * `hypervisor` - The hypervisor type of the VMs (`ovm` \| `xen`). * `image_id` - The ID of the OMI used to create the VM. diff --git a/scripts/docs/doc-terraform-template b/scripts/docs/doc-terraform-template index 2ebe4a4c1..26da329f5 160000 --- a/scripts/docs/doc-terraform-template +++ b/scripts/docs/doc-terraform-template @@ -1 +1 @@ -Subproject commit 2ebe4a4c1813a98a5c5748de23ee895eb943d9a4 +Subproject commit 26da329f5b88c18a14eeca0f129279bec53b8f12