diff --git a/docs/data-sources/access_key.md b/docs/data-sources/access_key.md
index de0e5f624..32ce26049 100644
--- a/docs/data-sources/access_key.md
+++ b/docs/data-sources/access_key.md
@@ -15,6 +15,8 @@ For more information on this resource actions, see the [API documentation](https
## Example Usage
+### Get one of your own access keys (root account or user)
+
```hcl
data "outscale_access_key" "access_key01" {
filter {
@@ -24,6 +26,22 @@ data "outscale_access_key" "access_key01" {
}
```
+### Get the access key of another user
+
+```hcl
+data "outscale_access_key" "access_key01" {
+ user_name = "user_name"
+ filter {
+ name = "access_key_ids"
+ values = ["XXXXXXXXX"]
+ }
+ filter {
+ name = "states"
+ values = ["ACTIVE"]
+ }
+}
+```
+
## Argument Reference
The following arguments are supported:
diff --git a/docs/data-sources/access_keys.md b/docs/data-sources/access_keys.md
index 3c32aac55..6b52d654a 100644
--- a/docs/data-sources/access_keys.md
+++ b/docs/data-sources/access_keys.md
@@ -15,6 +15,8 @@ For more information on this resource actions, see the [API documentation](https
## Example Usage
+### Get your own access keys (root account or user)
+
```hcl
data "outscale_access_keys" "access_keys01" {
filter {
@@ -24,6 +26,22 @@ data "outscale_access_keys" "access_keys01" {
}
```
+### Get the access keys of another user
+
+```hcl
+data "outscale_access_keys" "access_keys" {
+ user_name = "user_name"
+ filter {
+ name = "access_key_ids"
+ values = ["XXXXXXXXX","YYYYYYYYYY"]
+ }
+ filter {
+ name = "states"
+ values = ["ACTIVE"]
+ }
+}
+```
+
## Argument Reference
The following arguments are supported:
diff --git a/docs/data-sources/dhcp_option.md b/docs/data-sources/dhcp_option.md
index b06baf0e4..897d074b4 100644
--- a/docs/data-sources/dhcp_option.md
+++ b/docs/data-sources/dhcp_option.md
@@ -39,7 +39,7 @@ The following arguments are supported:
* `tag_values` - (Optional) The values of the tags associated with the DHCP options sets.
* `tags` - (Optional) The key/value combinations of the tags associated with the DHCP options sets, in the following format: `TAGKEY=TAGVALUE`.
* `next_page_token` - (Optional) The token to request the next page of results. Each token refers to a specific page.
-* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1`and `1000`, both included). By default, `100`.
+* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1` and `1000`, both included). By default, `100`.
## Attribute Reference
diff --git a/docs/data-sources/dhcp_options.md b/docs/data-sources/dhcp_options.md
index c7f7d5d7e..f6c60fe72 100644
--- a/docs/data-sources/dhcp_options.md
+++ b/docs/data-sources/dhcp_options.md
@@ -43,7 +43,7 @@ The following arguments are supported:
* `tag_values` - (Optional) The values of the tags associated with the DHCP options sets.
* `tags` - (Optional) The key/value combinations of the tags associated with the DHCP options sets, in the following format: `TAGKEY=TAGVALUE`.
* `next_page_token` - (Optional) The token to request the next page of results. Each token refers to a specific page.
-* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1`and `1000`, both included). By default, `100`.
+* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1` and `1000`, both included). By default, `100`.
## Attribute Reference
diff --git a/docs/data-sources/entities_linked_to_policy.md b/docs/data-sources/entities_linked_to_policy.md
new file mode 100644
index 000000000..1aad6505c
--- /dev/null
+++ b/docs/data-sources/entities_linked_to_policy.md
@@ -0,0 +1,53 @@
+---
+layout: "outscale"
+page_title: "OUTSCALE: outscale_entities_linked_to_policy"
+sidebar_current: "outscale-entities-linked-to-policy"
+description: |-
+ [Provides information about entities (account, users, or user groups) linked to a specific managed policy.]
+---
+
+# outscale_entities_linked_to_policy Data Source
+
+Provides information about entities (account, users, or user groups) linked to a specific managed policy.
+
+For more information on this resource, see the [User Guide](https://docs.outscale.com/en/userguide/About-Policies.html).
+For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api.html#readentitieslinkedtopolicy).
+
+## Example Usage
+
+```hcl
+data "outscale_entities_linked_to_policy" "entities_linked_policy01" {
+ policy_orn = "orn:ows:idauth::012345678910:policy/example/example-policy"
+ entities_type = ["USER","GROUP","ACCOUNT"]
+}
+```
+
+## Argument Reference
+
+The following arguments are supported:
+
+* `entities_type` - (Optional) The type of entity linked to the policy (`ACCOUNT` \| `USER` \| `GROUP`) you want to get information about.
+* `first_item` - (Optional) The item starting the list of entities requested.
+* `policy_orn` - (Optional) The OUTSCALE Resource Name (ORN) of the policy. For more information, see [Resource Identifiers](https://docs.outscale.com/en/userguide/Resource-Identifiers.html).
+* `results_per_page` - (Optional) The maximum number of items that can be returned in a single response (by default, 100).
+
+## Attribute Reference
+
+The following attributes are exported:
+
+* `accounts` - TODO_ARRAY
+ * `id` - The ID of the entity.
+ * `name` - The name of the entity.
+ * `orn` - The OUTSCALE Resource Name (ORN) of the entity. For more information, see [Resource Identifiers](https://docs.outscale.com/en/userguide/Resource-Identifiers.html).
+* `groups` - TODO_ARRAY
+ * `id` - The ID of the entity.
+ * `name` - The name of the entity.
+ * `orn` - The OUTSCALE Resource Name (ORN) of the entity. For more information, see [Resource Identifiers](https://docs.outscale.com/en/userguide/Resource-Identifiers.html).
+* `has_more_items` - If true, there are more items to return using the `first_item` parameter in a new request.
+* `items_count` - The number of entities the specified policy is linked to.
+* `max_results_limit` - Indicates maximum results defined for the operation.
+* `max_results_truncated` - If true, indicates whether requested page size is more than allowed.
+* `users` - TODO_ARRAY
+ * `id` - The ID of the entity.
+ * `name` - The name of the entity.
+ * `orn` - The OUTSCALE Resource Name (ORN) of the entity. For more information, see [Resource Identifiers](https://docs.outscale.com/en/userguide/Resource-Identifiers.html).
diff --git a/docs/data-sources/image.md b/docs/data-sources/image.md
index 1e233d41b..ebaa938f3 100644
--- a/docs/data-sources/image.md
+++ b/docs/data-sources/image.md
@@ -54,7 +54,7 @@ The following arguments are supported:
* `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`).
* `next_page_token` - (Optional) The token to request the next page of results. Each token refers to a specific page.
-* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1`and `1000`, both included). By default, `100`.
+* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1` and `1000`, both included). By default, `100`.
## Attribute Reference
diff --git a/docs/data-sources/images.md b/docs/data-sources/images.md
index d1edffe07..f33d14378 100644
--- a/docs/data-sources/images.md
+++ b/docs/data-sources/images.md
@@ -58,7 +58,7 @@ The following arguments are supported:
* `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`).
* `next_page_token` - (Optional) The token to request the next page of results. Each token refers to a specific page.
-* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1`and `1000`, both included). By default, `100`.
+* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1` and `1000`, both included). By default, `100`.
## Attribute Reference
diff --git a/docs/data-sources/load_balancer_listener_rule.md b/docs/data-sources/load_balancer_listener_rule.md
index 4fc9b86a1..57bce2828 100644
--- a/docs/data-sources/load_balancer_listener_rule.md
+++ b/docs/data-sources/load_balancer_listener_rule.md
@@ -36,10 +36,10 @@ The following arguments are supported:
The following attributes are exported:
* `action` - The type of action for the rule (always `forward`).
-* `host_name_pattern` - A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except [-.?].
+* `host_name_pattern` - A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except `-.?`.
* `listener_id` - The ID of the listener.
* `listener_rule_id` - The ID of the listener rule.
* `listener_rule_name` - A human-readable name for the listener rule.
-* `path_pattern` - A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except [_-.$/~"'@:+?].
+* `path_pattern` - A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except `_-.$/~"'@:+?`.
* `priority` - The priority level of the listener rule, between `1` and `19999` both included. Each rule must have a unique priority level. Otherwise, an error is returned.
* `vm_ids` - The IDs of the backend VMs.
diff --git a/docs/data-sources/load_balancer_listener_rules.md b/docs/data-sources/load_balancer_listener_rules.md
index 44c938c7b..83656b416 100644
--- a/docs/data-sources/load_balancer_listener_rules.md
+++ b/docs/data-sources/load_balancer_listener_rules.md
@@ -37,10 +37,10 @@ The following attributes are exported:
* `listener_rules` - The list of the rules to describe.
* `action` - The type of action for the rule (always `forward`).
- * `host_name_pattern` - A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except [-.?].
+ * `host_name_pattern` - A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except `-.?`.
* `listener_id` - The ID of the listener.
* `listener_rule_id` - The ID of the listener rule.
* `listener_rule_name` - A human-readable name for the listener rule.
- * `path_pattern` - A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except [_-.$/~"'@:+?].
+ * `path_pattern` - A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except `_-.$/~"'@:+?`.
* `priority` - The priority level of the listener rule, between `1` and `19999` both included. Each rule must have a unique priority level. Otherwise, an error is returned.
* `vm_ids` - The IDs of the backend VMs.
diff --git a/docs/data-sources/load_balancer_vm_health.md b/docs/data-sources/load_balancer_vm_health.md
index c9e8fbcfa..228f7f357 100644
--- a/docs/data-sources/load_balancer_vm_health.md
+++ b/docs/data-sources/load_balancer_vm_health.md
@@ -3,12 +3,12 @@ layout: "outscale"
page_title: "OUTSCALE: outscale_load_balancer_vm_health"
sidebar_current: "outscale-load-balancer-vm-health"
description: |-
- [Provides information about the health of one or more back-end VMs registered with a specific load balancer.]
+ [Provides information about the health of one or more backend VMs registered with a specific load balancer.]
---
# outscale_load_balancer_vm_health Data Source
-Provides information about the health of one or more back-end VMs registered with a specific load balancer.
+Provides information about the health of one or more backend VMs registered with a specific load balancer.
For more information on this resource, see the [User Guide](https://docs.outscale.com/en/userguide/About-Load-Balancers.html).
For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api#readvmshealth).
diff --git a/docs/data-sources/nat_service.md b/docs/data-sources/nat_service.md
index 84c03d400..f63965984 100644
--- a/docs/data-sources/nat_service.md
+++ b/docs/data-sources/nat_service.md
@@ -37,7 +37,7 @@ The following arguments are supported:
* `tag_values` - (Optional) The values of the tags associated with the NAT services.
* `tags` - (Optional) The key/value combinations of the tags associated with the NAT services, in the following format: `TAGKEY=TAGVALUE`.
* `next_page_token` - (Optional) The token to request the next page of results. Each token refers to a specific page.
-* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1`and `1000`, both included). By default, `100`.
+* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1` and `1000`, both included). By default, `100`.
## Attribute Reference
diff --git a/docs/data-sources/nat_services.md b/docs/data-sources/nat_services.md
index c85ade682..bc77f45eb 100644
--- a/docs/data-sources/nat_services.md
+++ b/docs/data-sources/nat_services.md
@@ -41,7 +41,7 @@ The following arguments are supported:
* `tag_values` - (Optional) The values of the tags associated with the NAT services.
* `tags` - (Optional) The key/value combinations of the tags associated with the NAT services, in the following format: `TAGKEY=TAGVALUE`.
* `next_page_token` - (Optional) The token to request the next page of results. Each token refers to a specific page.
-* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1`and `1000`, both included). By default, `100`.
+* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1` and `1000`, both included). By default, `100`.
## Attribute Reference
diff --git a/docs/data-sources/net_access_point.md b/docs/data-sources/net_access_point.md
index 668c092f0..934caf7bb 100644
--- a/docs/data-sources/net_access_point.md
+++ b/docs/data-sources/net_access_point.md
@@ -54,7 +54,7 @@ The following arguments are supported:
* `tag_values` - (Optional) The values of the tags associated with the Net access points.
* `tags` - (Optional) The key/value combinations of the tags associated with the Net access points, in the following format: `TAGKEY=TAGVALUE`.
* `next_page_token` - (Optional) The token to request the next page of results. Each token refers to a specific page.
-* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1`and `1000`, both included). By default, `100`.
+* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1` and `1000`, both included). By default, `100`.
## Attribute Reference
diff --git a/docs/data-sources/net_access_points.md b/docs/data-sources/net_access_points.md
index 385e3dd4d..363e17952 100644
--- a/docs/data-sources/net_access_points.md
+++ b/docs/data-sources/net_access_points.md
@@ -54,7 +54,7 @@ The following arguments are supported:
* `tag_values` - (Optional) The values of the tags associated with the Net access points.
* `tags` - (Optional) The key/value combinations of the tags associated with the Net access points, in the following format: `TAGKEY=TAGVALUE`.
* `next_page_token` - (Optional) The token to request the next page of results. Each token refers to a specific page.
-* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1`and `1000`, both included). By default, `100`.
+* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1` and `1000`, both included). By default, `100`.
## Attribute Reference
diff --git a/docs/data-sources/net_peering.md b/docs/data-sources/net_peering.md
index 9a6607c66..e19a63148 100644
--- a/docs/data-sources/net_peering.md
+++ b/docs/data-sources/net_peering.md
@@ -43,7 +43,7 @@ The following arguments are supported:
* `tag_values` - (Optional) The values of the tags associated with the Net peerings.
* `tags` - (Optional) The key/value combinations of the tags associated with the Net peerings, in the following format: `TAGKEY=TAGVALUE`.
* `next_page_token` - (Optional) The token to request the next page of results. Each token refers to a specific page.
-* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1`and `1000`, both included). By default, `100`.
+* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1` and `1000`, both included). By default, `100`.
## Attribute Reference
diff --git a/docs/data-sources/net_peerings.md b/docs/data-sources/net_peerings.md
index d4799edda..086ae7890 100644
--- a/docs/data-sources/net_peerings.md
+++ b/docs/data-sources/net_peerings.md
@@ -47,7 +47,7 @@ The following arguments are supported:
* `tag_values` - (Optional) The values of the tags associated with the Net peerings.
* `tags` - (Optional) The key/value combinations of the tags associated with the Net peerings, in the following format: `TAGKEY=TAGVALUE`.
* `next_page_token` - (Optional) The token to request the next page of results. Each token refers to a specific page.
-* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1`and `1000`, both included). By default, `100`.
+* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1` and `1000`, both included). By default, `100`.
## Attribute Reference
diff --git a/docs/data-sources/policies.md b/docs/data-sources/policies.md
new file mode 100644
index 000000000..6b9780cc0
--- /dev/null
+++ b/docs/data-sources/policies.md
@@ -0,0 +1,63 @@
+---
+layout: "outscale"
+page_title: "OUTSCALE: outscale_policies"
+sidebar_current: "outscale-policies"
+description: |-
+ [Provides information about NOT_FOUND.]
+---
+
+# outscale_policies Data Source
+
+Provides information about NOT_FOUND.
+
+For more information on this resource, see the [User Guide](NOT_FOUND).
+For more information on this resource actions, see the [API documentation](NOT_FOUND).
+
+## Example Usage
+
+```hcl
+data "outscale_policies" "user_policies" {
+ filter {
+ name = "only_linked"
+ values = [true]
+ }
+ filter {
+ name = "path_prefix"
+ values = ["/"]
+ }
+ filter {
+ name = "scope"
+ values = ["LOCAL"]
+ }
+}
+```
+
+## Argument Reference
+
+The following arguments are supported:
+
+* `filters` - One or more filters.
+ * `only_linked` - (Optional) If set to true, lists only the policies attached to a user.
+ * `path_prefix` - (Optional) The path prefix you can use to filter the results. If not specified, it is set to a slash (`/`).
+ * `scope` - (Optional) The scope to filter policies (`OWS` \| `LOCAL`).
+* `first_item` - (Optional) The item starting the list of policies requested.
+* `results_per_page` - (Optional) The maximum number of items that can be returned in a single response (by default, `100`).
+
+## Attribute Reference
+
+The following attributes are exported:
+
+* `has_more_items` - If true, there are more items to return using the `first_item` parameter in a new request.
+* `max_results_limit` - Indicates maximum results defined for the operation.
+* `max_results_truncated` - If true, indicates whether requested page size is more than allowed.
+* `policies` - Information about one or more policies.
+ * `creation_date` - The date and time (UTC) at which the policy was created.
+ * `description` - A friendly name for the policy (between 0 and 1000 characters).
+ * `is_linkable` - Indicates whether the policy can be linked to a group or an EIM user.
+ * `last_modification_date` - The date and time (UTC) at which the policy was last modified.
+ * `orn` - The OUTSCALE Resource Name (ORN) of the policy. For more information, see [Resource Identifiers](https://docs.outscale.com/en/userguide/Resource-Identifiers.html).
+ * `path` - The path to the policy.
+ * `policy_default_version_id` - The ID of the policy default version.
+ * `policy_id` - The ID of the policy.
+ * `policy_name` - The name of the policy.
+ * `resources_count` - The number of resources attached to the policy.
diff --git a/docs/data-sources/policies_linked_to_user.md b/docs/data-sources/policies_linked_to_user.md
new file mode 100644
index 000000000..504c06778
--- /dev/null
+++ b/docs/data-sources/policies_linked_to_user.md
@@ -0,0 +1,45 @@
+---
+layout: "outscale"
+page_title: "OUTSCALE: outscale_policies_linked_to_user"
+sidebar_current: "outscale-policies-linked-to-user"
+description: |-
+ [Provides information about a link policy to user.]
+---
+
+# outscale_policies_linked_to_user Data Source
+
+Provides information about a link policy to user.
+
+For more information on this resource, see the [User Guide](https://docs.outscale.com/en/userguide/About-Policies.html).
+For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api.html#readlinkedpolicies).
+
+## Example Usage
+
+```hcl
+data "outscale_policies_linked_to_user" "linked_policy01" {
+ user_name = "user_name"
+}
+```
+
+## Argument Reference
+
+The following arguments are supported:
+
+* `filters` - One or more filters.
+ * `path_prefix` - (Optional) The path prefix of the policies. If not specified, it is set to a slash (`/`).
+* `first_item` - (Optional) The item starting the list of policies requested.
+* `results_per_page` - (Optional) The maximum number of items that can be returned in a single response (by default, `100`).
+* `user_name` - (Required) The name of the user the policies are linked to.
+
+## Attribute Reference
+
+The following attributes are exported:
+
+* `creation_date` - The date and time (UTC) at which the linked policy was created.
+* `has_more_items` - If true, there are more items to return using the `first_item` parameter in a new request.
+* `last_modification_date` - The date and time (UTC) at which the linked policy was last modified.
+* `max_results_limit` - Indicates maximum results defined for the operation.
+* `max_results_truncated` - If true, indicates whether requested page size is more than allowed.
+* `orn` - The OUTSCALE Resource Name (ORN) of the policy. For more information, see [Resource Identifiers](https://docs.outscale.com/en/userguide/Resource-Identifiers.html).
+* `policy_id` - The ID of the policy.
+* `policy_name` - The name of the policy.
diff --git a/docs/data-sources/policies_linked_to_user_group.md b/docs/data-sources/policies_linked_to_user_group.md
new file mode 100644
index 000000000..21988626e
--- /dev/null
+++ b/docs/data-sources/policies_linked_to_user_group.md
@@ -0,0 +1,54 @@
+---
+layout: "outscale"
+page_title: "OUTSCALE: outscale_policies_linked_to_user_group"
+sidebar_current: "outscale-policies-linked-to-user-group"
+description: |-
+ [Provides information about a link policy to user group.]
+---
+
+# outscale_policies_linked_to_user_group Data Source
+
+Provides information about a link policy to user group.
+
+For more information on this resource, see the [User Guide](https://docs.outscale.com/en/userguide/About-Policies.html).
+For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api.html#readmanagedpolicieslinkedtousergroup).
+
+## Example Usage
+
+```hcl
+data "outscale_policies_linked_to_user_group" "managed_policies_linked_to_user_group" {
+ user_group_name = "user_group_name"
+ filter {
+ name = "user_group_ids"
+ values = ["XXXXXXX","YYYYYY"]
+ }
+ filter {
+ name = "path_prefix"
+ values = ["/test/"]
+ }
+}
+```
+
+## Argument Reference
+
+The following arguments are supported:
+
+* `filters` - One or more filters.
+ * `path_prefix` - (Optional) The path prefix of the groups. If not specified, it is set to a slash (`/`).
+ * `user_group_ids` - (Optional) The IDs of the user groups.
+* `first_item` - (Optional) The item starting the list of policies requested.
+* `results_per_page` - (Optional) The maximum number of items that can be returned in a single response (by default, `100`).
+* `user_group_name` - (Required) The name of the group.
+
+## Attribute Reference
+
+The following attributes are exported:
+
+* `creation_date` - The date and time (UTC) at which the linked policy was created.
+* `has_more_items` - If true, there are more items to return using the `first_item` parameter in a new request.
+* `last_modification_date` - The date and time (UTC) at which the linked policy was last modified.
+* `max_results_limit` - Indicates maximum results defined for the operation.
+* `max_results_truncated` - If true, indicates whether requested page size is more than allowed.
+* `orn` - The OUTSCALE Resource Name (ORN) of the policy. For more information, see [Resource Identifiers](https://docs.outscale.com/en/userguide/Resource-Identifiers.html).
+* `policy_id` - The ID of the policy.
+* `policy_name` - The name of the policy.
diff --git a/docs/data-sources/policy.md b/docs/data-sources/policy.md
new file mode 100644
index 000000000..151ba9ed1
--- /dev/null
+++ b/docs/data-sources/policy.md
@@ -0,0 +1,43 @@
+---
+layout: "outscale"
+page_title: "OUTSCALE: outscale_policy"
+sidebar_current: "outscale-policy"
+description: |-
+ [Provides information about a policy.]
+---
+
+# outscale_policy Data Source
+
+Provides information about a policy.
+
+For more information on this resource, see the [User Guide](https://docs.outscale.com/en/userguide/About-Policies.html).
+For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api.html#createpolicy).
+
+## Example Usage
+
+```hcl
+data "outscale_policy" "user_policy01" {
+ policy_orn = "orn:ows:idauth::012345678910:policy/example/example-user-policy"
+}
+```
+
+## Argument Reference
+
+The following arguments are supported:
+
+* `policy_orn` - (Required) The OUTSCALE Resource Name (ORN) of the policy. For more information, see [Resource Identifiers](https://docs.outscale.com/en/userguide/Resource-Identifiers.html).
+
+## Attribute Reference
+
+The following attributes are exported:
+
+* `creation_date` - The date and time (UTC) at which the policy was created.
+* `description` - A friendly name for the policy (between 0 and 1000 characters).
+* `is_linkable` - Indicates whether the policy can be linked to a group or an EIM user.
+* `last_modification_date` - The date and time (UTC) at which the policy was last modified.
+* `orn` - The OUTSCALE Resource Name (ORN) of the policy. For more information, see [Resource Identifiers](https://docs.outscale.com/en/userguide/Resource-Identifiers.html).
+* `path` - The path to the policy.
+* `policy_default_version_id` - The ID of the policy default version.
+* `policy_id` - The ID of the policy.
+* `policy_name` - The name of the policy.
+* `resources_count` - The number of resources attached to the policy.
diff --git a/docs/data-sources/public_ip.md b/docs/data-sources/public_ip.md
index d1f00cdb8..0f6b894ef 100644
--- a/docs/data-sources/public_ip.md
+++ b/docs/data-sources/public_ip.md
@@ -41,7 +41,7 @@ The following arguments are supported:
* `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.
* `next_page_token` - (Optional) The token to request the next page of results. Each token refers to a specific page.
-* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1`and `1000`, both included). By default, `100`.
+* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1` and `1000`, both included). By default, `100`.
## Attribute Reference
diff --git a/docs/data-sources/public_ips.md b/docs/data-sources/public_ips.md
index de0a925c9..8cb9c5c68 100644
--- a/docs/data-sources/public_ips.md
+++ b/docs/data-sources/public_ips.md
@@ -41,7 +41,7 @@ The following arguments are supported:
* `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.
* `next_page_token` - (Optional) The token to request the next page of results. Each token refers to a specific page.
-* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1`and `1000`, both included). By default, `100`.
+* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1` and `1000`, both included). By default, `100`.
## Attribute Reference
diff --git a/docs/data-sources/route_table.md b/docs/data-sources/route_table.md
index e936278dd..8348e56d8 100644
--- a/docs/data-sources/route_table.md
+++ b/docs/data-sources/route_table.md
@@ -47,7 +47,7 @@ The following arguments are supported:
* `tag_values` - (Optional) The values of the tags associated with the route tables.
* `tags` - (Optional) The key/value combinations of the tags associated with the route tables, in the following format: `TAGKEY=TAGVALUE`.
* `next_page_token` - (Optional) The token to request the next page of results. Each token refers to a specific page.
-* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1`and `1000`, both included). By default, `100`.
+* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1` and `1000`, both included). By default, `100`.
## Attribute Reference
diff --git a/docs/data-sources/route_tables.md b/docs/data-sources/route_tables.md
index 720acee1a..7d3bdc95a 100644
--- a/docs/data-sources/route_tables.md
+++ b/docs/data-sources/route_tables.md
@@ -51,7 +51,7 @@ The following arguments are supported:
* `tag_values` - (Optional) The values of the tags associated with the route tables.
* `tags` - (Optional) The key/value combinations of the tags associated with the route tables, in the following format: `TAGKEY=TAGVALUE`.
* `next_page_token` - (Optional) The token to request the next page of results. Each token refers to a specific page.
-* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1`and `1000`, both included). By default, `100`.
+* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1` and `1000`, both included). By default, `100`.
## Attribute Reference
diff --git a/docs/data-sources/subregions.md b/docs/data-sources/subregions.md
index 9e97cbcc7..76751b5d8 100644
--- a/docs/data-sources/subregions.md
+++ b/docs/data-sources/subregions.md
@@ -57,7 +57,7 @@ The following arguments are supported:
The following attributes are exported:
* `subregions` - Information about one or more Subregions.
- * `location_code` - The location code of the Subregion.
+ * `location_code` - The location code (physical zone) of the Subregion. For more information, see [About Regions > Mapping Between Subregions and Physical Zones](https://docs.outscale.com/en/userguide/About-Regions-and-Subregions.html#_mapping_between_subregions_and_physical_zones).
* `region_name` - The name of the Region containing the Subregion.
* `state` - The state of the Subregion.
* `subregion_name` - The name of the Subregion.
diff --git a/docs/data-sources/user.md b/docs/data-sources/user.md
new file mode 100644
index 000000000..b804b3e7b
--- /dev/null
+++ b/docs/data-sources/user.md
@@ -0,0 +1,48 @@
+---
+layout: "outscale"
+page_title: "OUTSCALE: outscale_user"
+sidebar_current: "outscale-user"
+description: |-
+ [Provides information about a user.]
+---
+
+# outscale_user Data Source
+
+Provides information about a user.
+
+For more information on this resource, see the [User Guide](https://docs.outscale.com/en/userguide/About-EIM-Users.html).
+For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api.html#createuser).
+
+## Example Usage
+
+```hcl
+data "outscale_user" "user01" {
+ filter {
+ name = "user_ids"
+ values = ["XXXXXXXXXXXXXXXX"]
+ }
+}
+```
+
+## Argument Reference
+
+The following arguments are supported:
+
+* `filters` - One or more filters.
+ * `user_ids` - (Optional) The IDs of the users.
+* `first_item` - (Optional) The item starting the list of users requested.
+* `results_per_page` - (Optional) The maximum number of items that can be returned in a single response (by default, `100`).
+
+## Attribute Reference
+
+The following attributes are exported:
+
+* `creation_date` - The date and time (UTC) of creation of the EIM user.
+* `has_more_items` - If true, there are more items to return using the `first_item` parameter in a new request.
+* `last_modification_date` - The date and time (UTC) of the last modification of the EIM user.
+* `max_results_limit` - Indicates maximum results defined for the operation.
+* `max_results_truncated` - If true, indicates whether requested page size is more than allowed.
+* `path` - The path to the EIM user.
+* `user_email` - The email address of the EIM user.
+* `user_id` - The ID of the EIM user.
+* `user_name` - The name of the EIM user.
diff --git a/docs/data-sources/user_group.md b/docs/data-sources/user_group.md
new file mode 100644
index 000000000..a1e549b30
--- /dev/null
+++ b/docs/data-sources/user_group.md
@@ -0,0 +1,44 @@
+---
+layout: "outscale"
+page_title: "OUTSCALE: outscale_user_group"
+sidebar_current: "outscale-user-group"
+description: |-
+ [Provides information about a user group.]
+---
+
+# outscale_user_group Data Source
+
+Provides information about a user group.
+
+For more information on this resource, see the [User Guide](https://docs.outscale.com/en/userguide/About-EIM-Groups.html).
+For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api.html#createusergroup).
+
+## Example Usage
+
+```hcl
+data "outscale_user_group" "user_group01" {
+ user_group_name = "user_group_name"
+ path = "/"
+}
+```
+
+## Argument Reference
+
+The following arguments are supported:
+
+* `path` - (Optional) The path to the group. If not specified, it is set to a slash (`/`).
+* `user_group_name` - (Required) The name of the group.
+
+## Attribute Reference
+
+The following attributes are exported:
+
+* `creation_date` - The date and time (UTC) of creation of the EIM user.
+* `last_modification_date` - The date and time (UTC) of the last modification of the EIM user.
+* `name` - The name of the user group.
+* `orn` - The Outscale Resource Name (ORN) of the user group. For more information, see [Resource Identifiers](https://docs.outscale.com/en/userguide/Resource-Identifiers.html).
+* `path` - The path to the EIM user.
+* `user_email` - The email address of the EIM user.
+* `user_group_id` - The ID of the user group.
+* `user_id` - The ID of the EIM user.
+* `user_name` - The name of the EIM user.
diff --git a/docs/data-sources/user_groups.md b/docs/data-sources/user_groups.md
new file mode 100644
index 000000000..d0cf5f5f7
--- /dev/null
+++ b/docs/data-sources/user_groups.md
@@ -0,0 +1,54 @@
+---
+layout: "outscale"
+page_title: "OUTSCALE: outscale_user_groups"
+sidebar_current: "outscale-user-groups"
+description: |-
+ [Provides information about user groups.]
+---
+
+# outscale_user_groups Data Source
+
+Provides information about user groups.
+
+For more information on this resource, see the [User Guide](https://docs.outscale.com/en/userguide/About-EIM-Groups.html).
+For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api.html#createusergroup).
+
+## Example Usage
+
+```hcl
+data "outscale_user_groups" "usegroups01" {
+ filter {
+ name = "user_group_ids"
+ values = ["XXXXXXXXX","YYYYYYYYYY"]
+ }
+ filter {
+ name = "path_prefix"
+ values = ["/"]
+ }
+}
+```
+
+## Argument Reference
+
+The following arguments are supported:
+
+* `filters` - One or more filters.
+ * `path_prefix` - (Optional) The path prefix of the groups. If not specified, it is set to a slash (`/`).
+ * `user_group_ids` - (Optional) The IDs of the user groups.
+* `first_item` - (Optional) The item starting the list of groups requested.
+* `results_per_page` - (Optional) The maximum number of items that can be returned in a single response (by default, `100`).
+
+## Attribute Reference
+
+The following attributes are exported:
+
+* `has_more_items` - If true, there are more items to return using the `first_item` parameter in a new request.
+* `max_results_limit` - Indicates maximum results defined for the operation.
+* `max_results_truncated` - If true, indicates whether requested page size is more than allowed.
+* `user_groups` - A list of user groups.
+ * `creation_date` - The date and time (UTC) of creation of the user group.
+ * `last_modification_date` - The date and time (UTC) of the last modification of the user group.
+ * `name` - The name of the user group.
+ * `orn` - The Outscale Resource Name (ORN) of the user group. For more information, see [Resource Identifiers](https://docs.outscale.com/en/userguide/Resource-Identifiers.html).
+ * `path` - The path to the user group.
+ * `user_group_id` - The ID of the user group.
diff --git a/docs/data-sources/user_groups_per_user.md b/docs/data-sources/user_groups_per_user.md
new file mode 100644
index 000000000..cfdda6fa6
--- /dev/null
+++ b/docs/data-sources/user_groups_per_user.md
@@ -0,0 +1,41 @@
+---
+layout: "outscale"
+page_title: "OUTSCALE: outscale_user_groups_per_user"
+sidebar_current: "outscale-user-groups-per-user"
+description: |-
+ [Provides information about groups that a specified user belongs to.]
+---
+
+# outscale_user_groups_per_user Data Source
+
+Provides information about groups that a specified user belongs to.
+
+For more information on this resource, see the [User Guide](https://docs.outscale.com/en/userguide/About-EIM-Groups.html).
+For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api.html#readusergroupsperuser).
+
+## Example Usage
+
+```hcl
+data "outscale_user_groups_per_user" "user_groups_per_user01" {
+ user_name = "user_name"
+ user_path = "/"
+}
+```
+
+## Argument Reference
+
+The following arguments are supported:
+
+* `user_name` - (Required) The name of the user.
+* `user_path` - (Optional) The path to the user (by default, `/`).
+
+## Attribute Reference
+
+The following attributes are exported:
+
+* `creation_date` - The date and time (UTC) of creation of the user group.
+* `last_modification_date` - The date and time (UTC) of the last modification of the user group.
+* `name` - The name of the user group.
+* `orn` - The Outscale Resource Name (ORN) of the user group. For more information, see [Resource Identifiers](https://docs.outscale.com/en/userguide/Resource-Identifiers.html).
+* `path` - The path to the user group.
+* `user_group_id` - The ID of the user group.
diff --git a/docs/data-sources/users.md b/docs/data-sources/users.md
new file mode 100644
index 000000000..61f9f6d34
--- /dev/null
+++ b/docs/data-sources/users.md
@@ -0,0 +1,49 @@
+---
+layout: "outscale"
+page_title: "OUTSCALE: outscale_users"
+sidebar_current: "outscale-users"
+description: |-
+ [Provides information about users.]
+---
+
+# outscale_users Data Source
+
+Provides information about users.
+
+For more information on this resource, see the [User Guide](https://docs.outscale.com/en/userguide/About-EIM-Users.html).
+For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api.html#createuser).
+
+## Example Usage
+
+```hcl
+data "outscale_users" "users-2" {
+ filter {
+ name = "user_ids"
+ values = ["XXXXXXXXXXXXXXXX","YYYYYYYYYY"]
+ }
+}
+```
+
+## Argument Reference
+
+The following arguments are supported:
+
+* `filters` - One or more filters.
+ * `user_ids` - (Optional) The IDs of the users.
+* `first_item` - (Optional) The item starting the list of users requested.
+* `results_per_page` - (Optional) The maximum number of items that can be returned in a single response (by default, `100`).
+
+## Attribute Reference
+
+The following attributes are exported:
+
+* `has_more_items` - If true, there are more items to return using the `first_item` parameter in a new request.
+* `max_results_limit` - Indicates maximum results defined for the operation.
+* `max_results_truncated` - If true, indicates whether requested page size is more than allowed.
+* `users` - A list of EIM users.
+ * `creation_date` - The date and time (UTC) of creation of the EIM user.
+ * `last_modification_date` - The date and time (UTC) of the last modification of the EIM user.
+ * `path` - The path to the EIM user.
+ * `user_email` - The email address of the EIM user.
+ * `user_id` - The ID of the EIM user.
+ * `user_name` - The name of the EIM user.
diff --git a/docs/data-sources/virtual_gateway.md b/docs/data-sources/virtual_gateway.md
index b6068e395..9e18d2b4f 100644
--- a/docs/data-sources/virtual_gateway.md
+++ b/docs/data-sources/virtual_gateway.md
@@ -38,7 +38,7 @@ The following arguments are supported:
* `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.
* `next_page_token` - (Optional) The token to request the next page of results. Each token refers to a specific page.
-* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1`and `1000`, both included). By default, `100`.
+* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1` and `1000`, both included). By default, `100`.
## Attribute Reference
diff --git a/docs/data-sources/virtual_gateways.md b/docs/data-sources/virtual_gateways.md
index 282adb32a..27b0d26ba 100644
--- a/docs/data-sources/virtual_gateways.md
+++ b/docs/data-sources/virtual_gateways.md
@@ -42,7 +42,7 @@ The following arguments are supported:
* `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.
* `next_page_token` - (Optional) The token to request the next page of results. Each token refers to a specific page.
-* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1`and `1000`, both included). By default, `100`.
+* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1` and `1000`, both included). By default, `100`.
## Attribute Reference
diff --git a/docs/data-sources/vm.md b/docs/data-sources/vm.md
index c140f882e..5a996fe2e 100644
--- a/docs/data-sources/vm.md
+++ b/docs/data-sources/vm.md
@@ -94,7 +94,7 @@ The following arguments are supported:
* `vm_state_names` - (Optional) The state names of the VMs (`pending` \| `running` \| `stopping` \| `stopped` \| `shutting-down` \| `terminated` \| `quarantine`).
* `vm_types` - (Optional) The VM types (for example, t2.micro). For more information, see [VM Types](https://docs.outscale.com/en/userguide/VM-Types.html).
* `next_page_token` - (Optional) The token to request the next page of results. Each token refers to a specific page.
-* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1`and `1000`, both included). By default, `100`.
+* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1` and `1000`, both included). By default, `100`.
## Attribute Reference
diff --git a/docs/data-sources/vms.md b/docs/data-sources/vms.md
index f078828f2..f6ad47ccf 100644
--- a/docs/data-sources/vms.md
+++ b/docs/data-sources/vms.md
@@ -98,7 +98,7 @@ The following arguments are supported:
* `vm_state_names` - (Optional) The state names of the VMs (`pending` \| `running` \| `stopping` \| `stopped` \| `shutting-down` \| `terminated` \| `quarantine`).
* `vm_types` - (Optional) The VM types (for example, t2.micro). For more information, see [VM Types](https://docs.outscale.com/en/userguide/VM-Types.html).
* `next_page_token` - (Optional) The token to request the next page of results. Each token refers to a specific page.
-* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1`and `1000`, both included). By default, `100`.
+* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1` and `1000`, both included). By default, `100`.
## Attribute Reference
diff --git a/docs/data-sources/volume.md b/docs/data-sources/volume.md
index 04369b938..637b319f2 100644
--- a/docs/data-sources/volume.md
+++ b/docs/data-sources/volume.md
@@ -45,7 +45,7 @@ The following arguments are supported:
* `volume_states` - (Optional) The states of the volumes (`creating` \| `available` \| `in-use` \| `updating` \| `deleting` \| `error`).
* `volume_types` - (Optional) The types of the volumes (`standard` \| `gp2` \| `io1`).
* `next_page_token` - (Optional) The token to request the next page of results. Each token refers to a specific page.
-* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1`and `1000`, both included). By default, `100`.
+* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1` and `1000`, both included). By default, `100`.
## Attribute Reference
diff --git a/docs/data-sources/volumes.md b/docs/data-sources/volumes.md
index 2865d1f35..f10c60916 100644
--- a/docs/data-sources/volumes.md
+++ b/docs/data-sources/volumes.md
@@ -49,7 +49,7 @@ The following arguments are supported:
* `volume_states` - (Optional) The states of the volumes (`creating` \| `available` \| `in-use` \| `updating` \| `deleting` \| `error`).
* `volume_types` - (Optional) The types of the volumes (`standard` \| `gp2` \| `io1`).
* `next_page_token` - (Optional) The token to request the next page of results. Each token refers to a specific page.
-* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1`and `1000`, both included). By default, `100`.
+* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1` and `1000`, both included). By default, `100`.
## Attribute Reference
diff --git a/docs/data-sources/vpn_connection.md b/docs/data-sources/vpn_connection.md
index 262775c65..5b01a7473 100644
--- a/docs/data-sources/vpn_connection.md
+++ b/docs/data-sources/vpn_connection.md
@@ -41,7 +41,7 @@ The following arguments are supported:
* `virtual_gateway_ids` - (Optional) The IDs of the virtual gateways.
* `vpn_connection_ids` - (Optional) The IDs of the VPN connections.
* `next_page_token` - (Optional) The token to request the next page of results. Each token refers to a specific page.
-* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1`and `1000`, both included). By default, `100`.
+* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1` and `1000`, both included). By default, `100`.
## Attribute Reference
diff --git a/docs/data-sources/vpn_connections.md b/docs/data-sources/vpn_connections.md
index d80f0091b..cbdc39ce0 100644
--- a/docs/data-sources/vpn_connections.md
+++ b/docs/data-sources/vpn_connections.md
@@ -45,7 +45,7 @@ The following arguments are supported:
* `virtual_gateway_ids` - (Optional) The IDs of the virtual gateways.
* `vpn_connection_ids` - (Optional) The IDs of the VPN connections.
* `next_page_token` - (Optional) The token to request the next page of results. Each token refers to a specific page.
-* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1`and `1000`, both included). By default, `100`.
+* `results_per_page` - (Optional) The maximum number of logs returned in a single response (between `1` and `1000`, both included). By default, `100`.
## Attribute Reference
diff --git a/docs/index.md b/docs/index.md
index 5525854a1..ca716bd81 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -79,6 +79,35 @@ $ export OUTSCALE_X509KEY="~/certificate/certificate.key"
$ terraform plan
```
+## Configuration
+
+### Set a profile using a configuration file
+
+Use the `profile` or the `OSC_PROFILE` parameter to specify a named profile.
+
+The locations of the shared configuration and credentials files can be configured using either the parameters `config_file` and `OSC_PROFILE`.
+
+Example with the provider:
+
+```hcl
+provider "outscale" {
+ config_file = "./.osc/config.json"
+ profile = "default"
+}
+```
+
+Examples with the environment variable export:
+
+ ```hcl
+# For Linux and macOS
+export OSC_PROFILE="default"
+export OSC_CONFIG_FILE="$HOME/.osc/config.json"
+
+# For Windows
+export OSC_CONFIG_FILE="%USERPROFILE%.osc\config.json"
+ ```
+
+
## Arguments Reference
In addition to [generic provider arguments](https://www.terraform.io/docs/configuration/providers.html), the following arguments are supported in the OUTSCALE provider block:
@@ -93,4 +122,12 @@ In addition to [generic provider arguments](https://www.terraform.io/docs/config
* `x509_cert_path` - (Optional) The path to the x509 Client Certificate. It can also be sourced from the `OUTSCALE_X509CERT` [environment variable](#environment-variables). For more information on the use of those certificates, see [About API Access Rules](https://docs.outscale.com/en/userguide/About-API-Access-Rules.html).
-* `x509_key_path` - (Optional) The path to the private key of the x509 Client Certificate. It can also be sourced from the `OUTSCALE_X509KEY` [environment variable](#environment-variables). For more information on the use of those certificates, see [About API Access Rules](https://docs.outscale.com/en/userguide/About-API-Access-Rules.html).
\ No newline at end of file
+* `x509_key_path` - (Optional) The path to the private key of the x509 Client Certificate. It can also be sourced from the `OUTSCALE_X509KEY` [environment variable](#environment-variables). For more information on the use of those certificates, see [About API Access Rules](https://docs.outscale.com/en/userguide/About-API-Access-Rules.html).
+
+* `config_file` - (Optional) The path to the OSC config file.
+
+* `profile` - (Optional) The named profile you want to use.
+
+* `OSC_PROFILE` - (Optional) The OSC profile name as set in the shared configuration and credentials files.
+
+* `OSC_CONFIG_FILE` - (Optional) The path to the OSC config file.
\ No newline at end of file
diff --git a/docs/resources/access_key.md b/docs/resources/access_key.md
index b9fc1c760..9819c4a65 100644
--- a/docs/resources/access_key.md
+++ b/docs/resources/access_key.md
@@ -18,10 +18,23 @@ For more information on this resource actions, see the [API documentation](https
## Example Usage
+### Creating an access key for yourself
+
```hcl
resource "outscale_access_key" "access_key01" {
state = "ACTIVE"
- expiration_date = "2023-01-01"
+ expiration_date = "2028-01-01"
+}
+```
+
+### Creating an access key for another user
+
+```hcl
+resource "outscale_access_key" "access_key_eim01" {
+ user_name = outscale_user.user-1.user_name
+ state = "ACTIVE"
+ expiration_date = "2028-01-01"
+ depends_on = [outscale_user.user-1]
}
```
@@ -31,6 +44,7 @@ The following arguments are supported:
* `expiration_date` - (Optional) The date and time, or the date, at which you want the access key to expire, in ISO 8601 format (for example, `2020-06-14T00:00:00.000Z`, or `2020-06-14`). To remove an existing expiration date, use the method without specifying this parameter.
* `state` - (Optional) The state for the access key (`ACTIVE` | `INACTIVE`).
+* `user_name` - (Optional) The name of the EIM user that owns the key to be created. If you do not specify a user name, this action creates an access key for the user who sends the request (which can be the root account).
## Attribute Reference
diff --git a/docs/resources/flexible_gpu_link.md b/docs/resources/flexible_gpu_link.md
index 3e60c35aa..6c7369956 100644
--- a/docs/resources/flexible_gpu_link.md
+++ b/docs/resources/flexible_gpu_link.md
@@ -21,8 +21,8 @@ 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
+ image_id = "ami-12345678"
+ vm_type = "tinav5.c1r1p2"
keypair_name = var.keypair_name
placement_subregion_name = "eu-west-2a"
}
diff --git a/docs/resources/image.md b/docs/resources/image.md
index c938ed4a9..b77427556 100644
--- a/docs/resources/image.md
+++ b/docs/resources/image.md
@@ -71,8 +71,8 @@ resource "outscale_image" "image04" {
The following arguments are supported:
-* `architecture` - (Optional) **(when registering from a snapshot, or from a bucket without using a manifest file)** The architecture of the OMI (`i386` or `x86_64`).
-* `block_device_mappings` - (Optional) **(when registering from a snapshot, or from a bucket without using a manifest file)** One or more block device mappings.
+* `architecture` - (Optional) **(when registering from a snapshot)** The architecture of the OMI (`i386` or `x86_64`).
+* `block_device_mappings` - (Optional) **(when registering from a snapshot)** One or more block device mappings.
* `bsu` - Information about the BSU volume to create.
* `delete_on_vm_deletion` - (Optional) By default or if set to true, the volume is deleted when terminating the VM. If false, the volume is not deleted when terminating the VM.
* `iops` - (Optional) The number of I/O operations per second (IOPS). This parameter must be specified only if you create an `io1` volume. The maximum number of IOPS allowed for `io1` volumes is `13000` with a maximum performance ratio of 300 IOPS per gibibyte.
@@ -85,13 +85,12 @@ 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`).
* `virtual_device_name` - (Optional) The name of the virtual device (`ephemeralN`).
* `description` - (Optional) A description for the new OMI.
-* `file_location` - (Optional) **(when registering from a bucket by using a manifest file)** The pre-signed URL of the manifest file for the OMI you want to register. For more information, see [Configuring a Pre-signed URL](https://docs.outscale.com/en/userguide/Configuring-a-Pre-signed-URL.html) or [Managing Access to Your Buckets and Objects](https://docs.outscale.com/en/userguide/Managing-Access-to-Your-Buckets-and-Objects.html).
-You can also specify the normal URL of the OMI if you have permission on the OOS bucket, without using the manifest file, but in that case, you need to manually specify through the other parameters all the information that would otherwise be read from the manifest file.
+* `file_location` - (Optional) **(when registering from a bucket by using a manifest file)** The pre-signed URL of the manifest file for the OMI you want to register. For more information, see [Creating a Pre-signed URL](https://docs.outscale.com/en/userguide/Creating-a-Pre-Signed-URL.html).
* `image_name` - (Optional) A unique name for the new OMI.
Constraints: 3-128 alphanumeric characters, underscores (`_`), spaces (` `), parentheses (`()`), slashes (`/`), periods (`.`), or dashes (`-`).
* `no_reboot` - (Optional) **(when creating from a VM)** If false, the VM shuts down before creating the OMI and then reboots. If true, the VM does not.
* `product_codes` - (Optional) The product codes associated with the OMI.
-* `root_device_name` - (Optional) **(when registering from a snapshot, or from a bucket without using a manifest file)** The name of the root device for the new OMI.
+* `root_device_name` - (Optional) **(when registering from a snapshot)** The name of the root device for the new OMI.
* `source_image_id` - (Optional) **(when copying an OMI)** The ID of the OMI you want to copy.
* `source_region_name` - (Optional) **(when copying an OMI)** The name of the source Region (always the same as the Region of your account).
* `tags` - (Optional) A tag to add to this resource. You can specify this argument several times.
diff --git a/docs/resources/load_balancer.md b/docs/resources/load_balancer.md
index 895d4be83..dbbdf372f 100644
--- a/docs/resources/load_balancer.md
+++ b/docs/resources/load_balancer.md
@@ -158,7 +158,7 @@ The following arguments are supported:
* `load_balancer_port` - (Optional) The port on which the load balancer is listening (between `1` and `65535`, both included).
* `load_balancer_protocol` - (Optional) The routing protocol (`HTTP` \| `HTTPS` \| `TCP` \| `SSL`).
* `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, with a maximum length of 32 alphanumeric characters and dashes (-). This name must not start or end with a dash.
+* `load_balancer_name` - (Required) The unique name of the load balancer, with a maximum length of 32 alphanumeric characters and dashes (`-`). This name must not start or end with a dash.
* `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.
@@ -180,6 +180,7 @@ The following attributes are exported:
* `application_sticky_cookie_policies` - The stickiness policies defined for the load balancer.
* `cookie_name` - The name of the application cookie used for stickiness.
* `policy_name` - The mnemonic name for the policy being created. The name must be unique within a set of policies for this load balancer.
+* `backend_ips` - One or more public IPs of backend VMs.
* `backend_vm_ids` - One or more IDs of backend VMs for the load balancer.
* `dns_name` - The DNS name of the load balancer.
* `health_check` - Information about the health check configuration.
diff --git a/docs/resources/load_balancer_listener_rule.md b/docs/resources/load_balancer_listener_rule.md
index acd9ecf32..b9793a126 100644
--- a/docs/resources/load_balancer_listener_rule.md
+++ b/docs/resources/load_balancer_listener_rule.md
@@ -87,9 +87,9 @@ The following arguments are supported:
* `listener_rule` - Information about the listener rule.
* `action` - (Optional) The type of action for the rule (always `forward`).
- * `host_name_pattern` - (Optional) A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except [-.?].
+ * `host_name_pattern` - (Optional) A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except `-.?`.
* `listener_rule_name` - (Optional) A human-readable name for the listener rule.
- * `path_pattern` - (Optional) A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except [_-.$/~"'@:+?].
+ * `path_pattern` - (Optional) A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except `_-.$/~"'@:+?`.
* `priority` - (Optional) The priority level of the listener rule, between `1` and `19999` both included. Each rule must have a unique priority level. Otherwise, an error is returned.
* `listener` - Information about the load balancer.
* `load_balancer_name` - (Optional) The name of the load balancer to which the listener is attached.
@@ -101,11 +101,11 @@ The following arguments are supported:
The following attributes are exported:
* `action` - The type of action for the rule (always `forward`).
-* `host_name_pattern` - A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except [-.?].
+* `host_name_pattern` - A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except `-.?`.
* `listener_id` - The ID of the listener.
* `listener_rule_id` - The ID of the listener rule.
* `listener_rule_name` - A human-readable name for the listener rule.
-* `path_pattern` - A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except [_-.$/~"'@:+?].
+* `path_pattern` - A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except `_-.$/~"'@:+?`.
* `priority` - The priority level of the listener rule, between `1` and `19999` both included. Each rule must have a unique priority level. Otherwise, an error is returned.
* `vm_ids` - The IDs of the backend VMs.
diff --git a/docs/resources/load_balancer_policy.md b/docs/resources/load_balancer_policy.md
index c3e9f4752..c8dd48947 100644
--- a/docs/resources/load_balancer_policy.md
+++ b/docs/resources/load_balancer_policy.md
@@ -65,7 +65,7 @@ The following arguments are supported:
* `cookie_name` - (Optional) The name of the application cookie used for stickiness. This parameter is required if you create a stickiness policy based on an application-generated cookie.
* `load_balancer_name` - (Required) The name of the load balancer for which you want to create a policy.
-* `policy_name` - (Required) The unique name of the policy, with a maximum length of 32 alphanumeric characters and dashes (-).
+* `policy_name` - (Required) The unique name of the policy, with a maximum length of 32 alphanumeric characters and dashes (`-`).
* `policy_type` - (Required) The type of stickiness policy you want to create: `app` or `load_balancer`.
## Attribute Reference
diff --git a/docs/resources/load_balancer_vms.md b/docs/resources/load_balancer_vms.md
index 116941d5a..0716e5a00 100644
--- a/docs/resources/load_balancer_vms.md
+++ b/docs/resources/load_balancer_vms.md
@@ -20,11 +20,11 @@ For more information on this resource actions, see the [API documentation](https
```hcl
resource "outscale_vm" "outscale_vm01" {
image_id = "ami-12345678"
- vm_type = "t2.small"
+ vm_type = "tinav5.c1r1p2"
keypair_name = var.keypair_name
}
-resource "outscale_vm" "outscale_vm_02" {
+resource "outscale_vm" "outscale_vm02" {
image_id = var.image_id
vm_type = var.vm_type
keypair_name = var.keypair_name
@@ -55,6 +55,15 @@ resource "outscale_load_balancer_vms" "outscale_load_balancer_vms01" {
}
```
+### Register IPs with a load balancer
+
+```hcl
+resource "outscale_load_balancer_vms" "outscale_load_balancer_vms01" {
+ load_balancer_name = "load-balancer-for-backend-vms"
+ backend_ips = [outscale_vm.outscale_vm01.public_ip, outscale_vm.outscale_vm02.public_ip]
+}
+```
+
## Argument Reference
The following arguments are supported:
diff --git a/docs/resources/policy.md b/docs/resources/policy.md
new file mode 100644
index 000000000..d7ac6b0ea
--- /dev/null
+++ b/docs/resources/policy.md
@@ -0,0 +1,59 @@
+---
+layout: "outscale"
+page_title: "OUTSCALE: outscale_policy"
+sidebar_current: "outscale-policy"
+description: |-
+ [Manages a policy.]
+---
+
+# outscale_policy Resource
+
+Manages a policy.
+
+For more information on this resource, see the [User Guide](https://docs.outscale.com/en/userguide/About-Policies.html).
+For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api.html#createpolicy).
+
+## Example Usage
+
+ ```hcl
+resource "outscale_policy" "policy-1" {
+ policy_name = "terraform-policy-1"
+ description = "test-terraform"
+ document = file("policy.json")
+ path = "/"
+}
+```
+
+## Argument Reference
+
+The following arguments are supported:
+
+* `description` - (Optional) A description for the policy.
+* `document` - (Required) The policy document, corresponding to a JSON string that contains the policy. For more information, see [EIM Reference Information](https://docs.outscale.com/en/userguide/EIM-Reference-Information.html) and [EIM Policy Generator](https://docs.outscale.com/en/userguide/EIM-Policy-Generator.html).
+* `path` - (Optional) The path of the policy.
+* `policy_name` - (Required) The name of the policy.
+
+## Attribute Reference
+
+The following attributes are exported:
+
+* `creation_date` - The date and time (UTC) at which the policy was created.
+* `description` - A friendly name for the policy (between 0 and 1000 characters).
+* `is_linkable` - Indicates whether the policy can be linked to a group or an EIM user.
+* `last_modification_date` - The date and time (UTC) at which the policy was last modified.
+* `orn` - The OUTSCALE Resource Name (ORN) of the policy. For more information, see [Resource Identifiers](https://docs.outscale.com/en/userguide/Resource-Identifiers.html).
+* `path` - The path to the policy.
+* `policy_default_version_id` - The ID of the policy default version.
+* `policy_id` - The ID of the policy.
+* `policy_name` - The name of the policy.
+* `resources_count` - The number of resources attached to the policy.
+
+## Import
+
+A policy can be imported using its ORN. For example:
+
+```console
+
+$ terraform import outscale_policy.policy1 orn
+
+```
\ No newline at end of file
diff --git a/docs/resources/policy_version.md b/docs/resources/policy_version.md
new file mode 100644
index 000000000..81d686181
--- /dev/null
+++ b/docs/resources/policy_version.md
@@ -0,0 +1,45 @@
+---
+layout: "outscale"
+page_title: "OUTSCALE: outscale_policy_version"
+sidebar_current: "outscale-policy-version"
+description: |-
+ [Manages a policy version.]
+---
+
+# outscale_policy_version Resource
+
+Manages a policy version.
+
+~> **Note** At creation, the initial version of a policy is set to 'V1' by default.
+
+
+For more information on this resource, see the [User Guide](https://docs.outscale.com/en/userguide/Editing-Managed-Policies-Using-Policy-Versions.html).
+For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api.html#createpolicyversion).
+
+## Example Usage
+
+```hcl
+resource "outscale_policy_version" "Policy2-version-02" {
+ policy_orn = outscale_policy.policy-2.orn
+ document = file("policy.json")
+ set_as_default = true
+}
+```
+
+## Argument Reference
+
+The following arguments are supported:
+
+* `document` - (Required) The policy document, corresponding to a JSON string that contains the policy. For more information, see [EIM Reference Information](https://docs.outscale.com/en/userguide/EIM-Reference-Information.html) and [EIM Policy Generator](https://docs.outscale.com/en/userguide/EIM-Policy-Generator.html).
+* `policy_orn` - (Required) The OUTSCALE Resource Name (ORN) of the policy. For more information, see [Resource Identifiers](https://docs.outscale.com/en/userguide/Resource-Identifiers.html).
+* `set_as_default` - (Optional) If set to true, the new policy version is set as the default version, meaning it becomes the active one. Otherwise, the new policy version is not actually active until the `default_version_id` is specified in the `outscale_user` or `outscale_user_group` resources.
+
+## Attribute Reference
+
+The following attributes are exported:
+
+* `body` - The policy document, corresponding to a JSON string that contains the policy. For more information, see [EIM Reference Information](https://docs.outscale.com/en/userguide/EIM-Reference-Information.html) and [EIM Policy Generator](https://docs.outscale.com/en/userguide/EIM-Policy-Generator.html).
+* `creation_date` - The date and time (UTC) at which the version was created.
+* `default_version` - If true, the version is the default one.
+* `version_id` - The ID of the version.
+
diff --git a/docs/resources/server_certificate.md b/docs/resources/server_certificate.md
index 1c6364047..4bdf1851c 100644
--- a/docs/resources/server_certificate.md
+++ b/docs/resources/server_certificate.md
@@ -32,8 +32,8 @@ The following arguments are supported:
* `body` - (Required) The PEM-encoded X509 certificate.
* `chain` - (Optional) The PEM-encoded intermediate certification authorities.
-* `name` - (Required) A unique name for the certificate. Constraints: 1-128 alphanumeric characters, pluses (+), equals (=), commas (,), periods (.), at signs (@), minuses (-), or underscores (_).
-* `path` - (Optional) The path to the server certificate, set to a slash (/) if not specified.
+* `name` - (Required) A unique name for the certificate. Constraints: 1-128 alphanumeric characters, pluses (`+`), equals (`=`), commas (`,`), periods (`.`), at signs (`@`), minuses (`-`), or underscores (`_`).
+* `path` - (Optional) The path to the server certificate, set to a slash (`/`) if not specified.
* `private_key` - (Required) The PEM-encoded private key matching the certificate.
## Attribute Reference
diff --git a/docs/resources/snapshot.md b/docs/resources/snapshot.md
index c0382eff3..a1a536dd7 100644
--- a/docs/resources/snapshot.md
+++ b/docs/resources/snapshot.md
@@ -47,7 +47,7 @@ resource "outscale_snapshot" "snapshot02" {
The following arguments are supported:
* `description` - (Optional) A description for the snapshot.
-* `file_location` - (Optional) **(when importing from a bucket)** The pre-signed URL of the snapshot you want to import, or the normal URL of the snapshot if you have permission on the OOS bucket. For more information, see [Configuring a Pre-signed URL](https://docs.outscale.com/en/userguide/Configuring-a-Pre-signed-URL.html) or [Managing Access to Your Buckets and Objects](https://docs.outscale.com/en/userguide/Managing-Access-to-Your-Buckets-and-Objects.html).
+* `file_location` - (Optional) **(when importing from a bucket)** The pre-signed URL of the snapshot you want to import. For more information, see [Creating a Pre-signed URL](https://docs.outscale.com/en/userguide/Creating-a-Pre-Signed-URL.html).
* `snapshot_size` - (Optional) **(when importing from a bucket)** The size of the snapshot you want to create in your account, in bytes. This size must be greater than or equal to the size of the original, uncompressed snapshot.
* `source_region_name` - (Optional) **(when copying a snapshot)** The name of the source Region, which must be the same as the Region of your account.
* `source_snapshot_id` - (Optional) **(when copying a snapshot)** The ID of the snapshot you want to copy.
diff --git a/docs/resources/user.md b/docs/resources/user.md
new file mode 100644
index 000000000..d7d436ddd
--- /dev/null
+++ b/docs/resources/user.md
@@ -0,0 +1,68 @@
+---
+layout: "outscale"
+page_title: "OUTSCALE: outscale_user"
+sidebar_current: "outscale-user"
+description: |-
+ [Manages a user.]
+---
+
+# outscale_user Resource
+
+Manages a user.
+
+For more information on this resource, see the [User Guide](https://docs.outscale.com/en/userguide/About-EIM-Users.html).
+For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api.html#createuser).
+
+## Example Usage
+
+### Creating a user
+
+```hcl
+resource "outscale_user" "user-1" {
+ user_name = "User-TF-1"
+ user_email = "test-TF1@test2.fr"
+ path = "/terraform/"
+}
+```
+
+### Linking a policy to a user
+
+```hcl
+resource "outscale_user" "user-1" {
+ user_name = "User-TF-1"
+ policy {
+ policy_orn = outscale_policy.policy-1.orn
+ default_version_id = "V1"
+ }
+}
+```
+
+## Argument Reference
+
+The following arguments are supported:
+
+* `default_version_id` - The ID of a policy version that you want to make the default one (the active one).
+* `path` - (Optional) The path to the EIM user you want to create (by default, `/`). This path name must begin and end with a slash (`/`), and contain between 1 and 512 alphanumeric characters and/or slashes (`/`), or underscores (`_`).
+* `user_email` - (Optional) The email address of the EIM user.
+* `user_name` - (Required) The name of the EIM user. This user name must contain between 1 and 64 alphanumeric characters and/or pluses (`+`), equals (`=`), commas (`,`), periods (`.`), at signs (`@`), dashes (`-`), or underscores (`_`).
+
+## Attribute Reference
+
+The following attributes are exported:
+
+* `creation_date` - The date and time (UTC) of creation of the EIM user.
+* `last_modification_date` - The date and time (UTC) of the last modification of the EIM user.
+* `path` - The path to the EIM user.
+* `user_email` - The email address of the EIM user.
+* `user_id` - The ID of the EIM user.
+* `user_name` - The name of the EIM user.
+
+## Import
+
+A user can be imported using its ID. For example:
+
+```console
+
+$ terraform import outscale_user.user1 user_id
+
+```
\ No newline at end of file
diff --git a/docs/resources/user_group.md b/docs/resources/user_group.md
new file mode 100644
index 000000000..15994101f
--- /dev/null
+++ b/docs/resources/user_group.md
@@ -0,0 +1,101 @@
+---
+layout: "outscale"
+page_title: "OUTSCALE: outscale_user_group"
+sidebar_current: "outscale-user-group"
+description: |-
+ [Manages a user group.]
+---
+
+# outscale_user_group Resource
+
+Manages a user group.
+
+For more information on this resource, see the [User Guide](https://docs.outscale.com/en/userguide/About-EIM-Groups.html).
+For more information on this resource actions, see the [API documentation](https://docs.outscale.com/api.html#createusergroup).
+
+## Example Usage
+
+### Create a user group
+
+```hcl
+resource "outscale_user_group" "group-1" {
+ user_group_name = "Group-TF-test-1"
+ path = "/terraform/"
+}
+```
+
+### Link a policy to a user group
+
+```hcl
+resource "outscale_user_group" "group-1" {
+ user_group_name = "Group-TF-test-1"
+ policy {
+ policy_orn = outscale_policy.policy-2.orn
+ default_version_id = "V2"
+ }
+}
+```
+
+### Add a user to a user group
+
+```hcl
+resource "outscale_user_group" "group-1" {
+ user_group_name = "Group-TF-test-1"
+ user {
+ user_name = "user-name-1"
+ path = "/terraform/"
+ }
+ user {
+ user_name = "user-name-2"
+ }
+}
+```
+
+### Create a user group, and add a user and a policy to it
+
+```hcl
+resource "outscale_user_group" "group-1" {
+ user_group_name = "Group-TF-test-1"
+ user {
+ user_name = "user-name-1"
+ path = "/terraform/"
+ }
+ user {
+ user_name = "user-name-2"
+ }
+ policy {
+ policy_orn = outscale_policy.policy-2.orn
+ version_id = "V2"
+ }
+}
+```
+
+
+## Argument Reference
+
+The following arguments are supported:
+
+* `default_version_id` - The ID of a policy version that you want to make the default one (the active one).
+* `path` - (Optional) The path to the group. If not specified, it is set to a slash (`/`).
+* `user_group_name` - (Required) The name of the group.
+
+## Attribute Reference
+
+The following attributes are exported:
+
+* `creation_date` - The date and time (UTC) of creation of the user group.
+* `last_modification_date` - The date and time (UTC) of the last modification of the user group.
+* `name` - The name of the user group.
+* `orn` - The Outscale Resource Name (ORN) of the user group. For more information, see [Resource Identifiers](https://docs.outscale.com/en/userguide/Resource-Identifiers.html).
+* `path` - The path to the user group.
+* `user_group_id` - The ID of the user group.
+
+## Import
+
+A user group can be imported using its group ID. For example:
+
+```console
+
+$ terraform import outscale_user_group.group1 user_group_id
+
+```
\ No newline at end of file
diff --git a/docs/resources/vm.md b/docs/resources/vm.md
index 057a3064a..c5947b240 100644
--- a/docs/resources/vm.md
+++ b/docs/resources/vm.md
@@ -206,7 +206,7 @@ resource "outscale_nic" "nic01" {
resource "outscale_vm" "vm04" {
image_id = var.image_id
- vm_type = "c4.large"
+ vm_type = "tinav5.c1r1p2"
keypair_name = var.keypair_name
security_group_ids = [outscale_security_group.security_group01.security_group_id]
primary_nic {
@@ -247,7 +247,7 @@ resource "outscale_nic" "nic01" {
resource "outscale_vm" "vm04" {
image_id = var.image_id
- vm_type = "c4.large"
+ vm_type = "tinav5.c1r1p2"
keypair_name = var.keypair_name
security_group_ids = [outscale_security_group.security_group01.security_group_id]
nics {
diff --git a/scripts/docs/doc-terraform-template b/scripts/docs/doc-terraform-template
index 68744c55b..dfc05ca49 160000
--- a/scripts/docs/doc-terraform-template
+++ b/scripts/docs/doc-terraform-template
@@ -1 +1 @@
-Subproject commit 68744c55beb423d3a761f2eaacd8deac01550f41
+Subproject commit dfc05ca4935572db5853124452a5ab5deac52f7f