Skip to content

Commit

Permalink
use t3 instance for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
DrFaust92 committed Oct 20, 2020
1 parent 4c3aec5 commit 9adfea2
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions aws/resource_aws_sagemaker_notebook_instance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func TestAccAWSSagemakerNotebookInstance_basic(t *testing.T) {
Check: resource.ComposeTestCheckFunc(
testAccCheckAWSSagemakerNotebookInstanceExists(resourceName, &notebook),
resource.TestCheckResourceAttr(resourceName, "name", rName),
resource.TestCheckResourceAttr(resourceName, "instance_type", "ml.t2.medium"),
resource.TestCheckResourceAttr(resourceName, "instance_type", "ml.t3.medium"),
resource.TestCheckResourceAttrPair(resourceName, "role_arn", "aws_iam_role.test", "arn"),
resource.TestCheckResourceAttr(resourceName, "direct_internet_access", "Enabled"),
resource.TestCheckResourceAttr(resourceName, "root_access", "Enabled"),
Expand Down Expand Up @@ -126,7 +126,7 @@ func TestAccAWSSagemakerNotebookInstance_update(t *testing.T) {
Config: testAccAWSSagemakerNotebookInstanceBasicConfig(rName),
Check: resource.ComposeTestCheckFunc(
testAccCheckAWSSagemakerNotebookInstanceExists(resourceName, &notebook),
resource.TestCheckResourceAttr(resourceName, "instance_type", "ml.t2.medium"),
resource.TestCheckResourceAttr(resourceName, "instance_type", "ml.t3.medium"),
),
},

Expand Down Expand Up @@ -525,7 +525,7 @@ func testAccAWSSagemakerNotebookInstanceBasicConfig(rName string) string {
resource "aws_sagemaker_notebook_instance" "test" {
name = %[1]q
role_arn = aws_iam_role.test.arn
instance_type = "ml.t2.medium"
instance_type = "ml.t3.medium"
}
`, rName)
}
Expand All @@ -547,7 +547,7 @@ resource "aws_sagemaker_notebook_instance_lifecycle_configuration" "test" {
}
resource "aws_sagemaker_notebook_instance" "test" {
instance_type = "ml.t2.medium"
instance_type = "ml.t3.medium"
lifecycle_config_name = aws_sagemaker_notebook_instance_lifecycle_configuration.test.name
name = %[1]q
role_arn = aws_iam_role.test.arn
Expand All @@ -560,7 +560,7 @@ func testAccAWSSagemakerNotebookInstanceConfigTags1(rName, tagKey1, tagValue1 st
resource "aws_sagemaker_notebook_instance" "test" {
name = %[1]q
role_arn = aws_iam_role.test.arn
instance_type = "ml.t2.medium"
instance_type = "ml.t3.medium"
tags = {
%[2]q = %[3]q
Expand All @@ -574,7 +574,7 @@ func testAccAWSSagemakerNotebookInstanceConfigTags2(rName, tagKey1, tagValue1, t
resource "aws_sagemaker_notebook_instance" "test" {
name = %[1]q
role_arn = aws_iam_role.test.arn
instance_type = "ml.t2.medium"
instance_type = "ml.t3.medium"
tags = {
%[2]q = %[3]q
Expand All @@ -589,7 +589,7 @@ func testAccAWSSagemakerNotebookInstanceConfigRootAccess(rName string, rootAcces
resource "aws_sagemaker_notebook_instance" "test" {
name = %[1]q
role_arn = aws_iam_role.test.arn
instance_type = "ml.t2.medium"
instance_type = "ml.t3.medium"
root_access = %[2]q
}
`, rName, rootAccess)
Expand All @@ -601,7 +601,7 @@ func testAccAWSSagemakerNotebookInstanceConfigDirectInternetAccess(rName string,
resource "aws_sagemaker_notebook_instance" "test" {
name = %[1]q
role_arn = aws_iam_role.test.arn
instance_type = "ml.t2.medium"
instance_type = "ml.t3.medium"
security_groups = [aws_security_group.test.id]
subnet_id = aws_subnet.test.id
direct_internet_access = %[2]q
Expand Down Expand Up @@ -643,7 +643,7 @@ func testAccAWSSagemakerNotebookInstanceConfigVolume(rName string) string {
resource "aws_sagemaker_notebook_instance" "test" {
name = %[1]q
role_arn = aws_iam_role.test.arn
instance_type = "ml.t2.medium"
instance_type = "ml.t3.medium"
volume_size = 8
}
`, rName)
Expand All @@ -654,7 +654,7 @@ func testAccAWSSagemakerNotebookInstanceConfigDefaultCodeRepository(rName string
resource "aws_sagemaker_notebook_instance" "test" {
name = %[1]q
role_arn = aws_iam_role.test.arn
instance_type = "ml.t2.medium"
instance_type = "ml.t3.medium"
default_code_repository = %[2]q
}
`, rName, defaultCodeRepository)
Expand Down Expand Up @@ -687,7 +687,7 @@ POLICY
resource "aws_sagemaker_notebook_instance" "test" {
name = %[1]q
role_arn = aws_iam_role.test.arn
instance_type = "ml.t2.medium"
instance_type = "ml.t3.medium"
kms_key_id = aws_kms_key.test.id
}
`, rName)
Expand Down

0 comments on commit 9adfea2

Please sign in to comment.