Skip to content

Commit a8b7a0d

Browse files
authored
Merge pull request #44848 from danielw-aws/d-sagemaker_model-vpc_config-block-update
added VPC config block with added arguments in sagemaker_model documentation
2 parents 89c1ffa + 8605c8b commit a8b7a0d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

website/docs/r/sagemaker_model.html.markdown

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@ This resource supports the following arguments:
5252
* `name` - (Optional) The name of the model (must be unique). If omitted, Terraform will assign a random, unique name.
5353
* `primary_container` - (Optional) The primary docker image containing inference code that is used when the model is deployed for predictions. If not specified, the `container` argument is required. Fields are documented below.
5454
* `execution_role_arn` - (Required) A role that SageMaker AI can assume to access model artifacts and docker images for deployment.
55-
* `inference_execution_config` - (Optional) Specifies details of how containers in a multi-container endpoint are called. see [Inference Execution Config](#inference-execution-config).
55+
* `inference_execution_config` - (Optional) Specifies details of how containers in a multi-container endpoint are called. See [Inference Execution Config](#inference-execution-config).
5656
* `container` (Optional) - Specifies containers in the inference pipeline. If not specified, the `primary_container` argument is required. Fields are documented below.
5757
* `enable_network_isolation` (Optional) - Isolates the model container. No inbound or outbound network calls can be made to or from the model container.
58-
* `vpc_config` (Optional) - Specifies the VPC that you want your model to connect to. VpcConfig is used in hosting services and in batch transform.
58+
* `vpc_config` (Optional) - Specifies the VPC that you want your model to connect to. This configuration is used in hosting services and in batch transform. See [VPC Config](#vpc-config).
5959
* `tags` - (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configuration-block) present, tags with matching keys will overwrite those defined at the provider-level.
6060

6161
The `primary_container` and `container` block both support:
@@ -104,6 +104,11 @@ The `primary_container` and `container` block both support:
104104

105105
* `mode` - (Required) How containers in a multi-container are run. The following values are valid `Serial` and `Direct`.
106106

107+
### VPC Config
108+
109+
* `security_group_ids` - (Required) List of security group IDs you want to be applied to your training job or model. Specify the security groups for the VPC that is specified in the Subnets field.
110+
* `subnets` - (Required) List of subnet IDs in the VPC to which you want to connect your training job or model.
111+
107112
## Attribute Reference
108113

109114
This resource exports the following attributes in addition to the arguments above:

0 commit comments

Comments
 (0)