Skip to content

Commit

Permalink
Updated the tags for the resources.
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekthangamuthu committed May 28, 2024
1 parent b7d1a3f commit c4eb3ad
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 46 deletions.
34 changes: 11 additions & 23 deletions docs/resources/sagemaker_image_version.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,18 @@ Resource Type definition for AWS::SageMaker::ImageVersion

To create a SageMaker Image version resource.
```terraform
locals {
resource "awscc_sagemaker_image_version" "example" {
image_name = var.image_name
base_image = "012345678912.dkr.ecr.us-west-2.amazonaws.com/image:latest"
depends_on = [
awscc_sagemaker_image.example
]
}
resource "awscc_sagemaker_image" "example" {
image_name = var.image_name
image_role_arn = awscc_iam_role.example.arn
tags = [
{
key = "Name"
value = "Sample IAM Role"
},
{
key = "Environment"
value = "Development"
},
{
key = "Modified By"
value = "AWSCC"
Expand All @@ -33,20 +35,6 @@ locals {
variable "image_name" {
type = string
}
resource "awscc_sagemaker_image" "example" {
image_name = var.image_name
image_role_arn = awscc_iam_role.example.arn
tags = local.tags
}
resource "awscc_sagemaker_image_version" "test" {
image_name = var.image_name
base_image = "012345678912.dkr.ecr.us-west-2.amazonaws.com/image:latest"
depends_on = [
awscc_sagemaker_image.example
]
}
```

<!-- schema generated by tfplugindocs -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
locals {
resource "awscc_sagemaker_image_version" "example" {
image_name = var.image_name
base_image = "012345678912.dkr.ecr.us-west-2.amazonaws.com/image:latest"
depends_on = [
awscc_sagemaker_image.example
]
}

resource "awscc_sagemaker_image" "example" {
image_name = var.image_name
image_role_arn = awscc_iam_role.example.arn
tags = [
{
key = "Name"
value = "Sample IAM Role"
},
{
key = "Environment"
value = "Development"
},
{
key = "Modified By"
value = "AWSCC"
Expand All @@ -17,18 +19,4 @@ locals {

variable "image_name" {
type = string
}

resource "awscc_sagemaker_image" "example" {
image_name = var.image_name
image_role_arn = awscc_iam_role.example.arn
tags = local.tags
}

resource "awscc_sagemaker_image_version" "test" {
image_name = var.image_name
base_image = "012345678912.dkr.ecr.us-west-2.amazonaws.com/image:latest"
depends_on = [
awscc_sagemaker_image.example
]
}

0 comments on commit c4eb3ad

Please sign in to comment.