Skip to content

Commit

Permalink
Fix providerlint 'AWSAT002: AMI IDs should not be hardcoded'.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Jun 23, 2024
1 parent c5befbd commit 9aa8c6b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/service/sagemaker/endpoint_configuration_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ func TestAccSageMakerEndpointConfiguration_ProductionVariants_ami(t *testing.T)
Check: resource.ComposeTestCheckFunc(
testAccCheckEndpointConfigurationExists(ctx, resourceName),
resource.TestCheckResourceAttr(resourceName, "production_variants.#", acctest.Ct1),
resource.TestCheckResourceAttr(resourceName, "production_variants.0.inference_ami_version", "al2-ami-sagemaker-inference-gpu-2"),
resource.TestCheckResourceAttr(resourceName, "production_variants.0.inference_ami_version", "al2-ami-sagemaker-inference-gpu-2"), //lintignore:AWSAT002
),
},
{
Expand Down Expand Up @@ -1293,6 +1293,7 @@ resource "aws_sagemaker_endpoint_configuration" "test" {
}

func testAccEndpointConfigurationConfig_ami(rName string) string {
//lintignore:AWSAT002
return acctest.ConfigCompose(testAccEndpointConfigurationConfig_base(rName), fmt.Sprintf(`
resource "aws_sagemaker_endpoint_configuration" "test" {
name = %[1]q
Expand Down

0 comments on commit 9aa8c6b

Please sign in to comment.