Skip to content

Commit

Permalink
Create sanitech_continuous_learning.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
KOSASIH committed Apr 19, 2024
1 parent 3686258 commit 4a6f69b
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions func/sanitech_continuous_learning.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
resource "aws_sagemaker_endpoint_configuration" "example" {
name = "example-endpoint-config"

production_variants {
variant_name = "AllTraffic"

model_name = aws_sagemaker_model.example.id
initial_instance_count = 1
instance_type = "ml.m4.xlarge"
initial_variant_weight = 1
}
}

resource "aws_sagemaker_model" "example" {
name = "example-model"

primary_container {
image = aws_ecr_repository.example.repository_url

model_data_url = aws_s3_bucket_object.model_data.id
}
}

resource "aws_s3_bucket_object" "model_data" {
bucket = aws_s3_bucket.example.id
key = "model.tar.gz"
source = "model.tar.gz"
}

resource "aws_s3_bucket" "example" {
bucket = "example-bucket"
}

resource "aws_ecr_repository" "example" {
name = "example-repository"
}

0 comments on commit 4a6f69b

Please sign in to comment.