Open philipgebus opened 1 week ago
@wellsiau-aws
{
"app_network_access_type": "PublicInternetOnly",
"app_security_group_management": null,
"auth_mode": "IAM",
"default_space_settings": null,
"default_user_settings": {
"code_editor_app_settings": null,
"custom_file_system_configs": null,
"custom_posix_user_config": null,
"default_landing_uri": "studio::",
"execution_role": "arn:aws:iam::###########:role/example",
"jupyter_lab_app_settings": null,
"jupyter_server_app_settings": null,
"kernel_gateway_app_settings": null,
"r_session_app_settings": null,
"r_studio_server_pro_app_settings": null,
"security_groups": null,
"sharing_settings": null,
"space_storage_settings": {
"default_ebs_storage_settings": {
"default_ebs_volume_size_in_gb": 5,
"maximum_ebs_volume_size_in_gb": 100
}
},
"studio_web_portal": "ENABLED"
},
"domain_arn": "arn:aws:sagemaker:us-east-1:###########:domain/d-gkp3bop4nqmv",
"domain_id": "d-gkp3bop4nqmv",
"domain_name": "awscc-test",
"domain_settings": null,
"home_efs_file_system_id": "fs-03a6e13630756c41c",
"id": "d-gkp3bop4nqmv",
"kms_key_id": null,
"security_group_id_for_domain_boundary": null,
"single_sign_on_application_arn": null,
"single_sign_on_managed_application_instance_id": null,
"subnet_ids": [
"subnet-0e3cd1df31dea5e9c"
],
"tags": null,
"url": "https://d-gkp3bop4nqmv.studio.us-east-1.sagemaker.aws",
"vpc_id": "vpc-091e289e155590a6f"
}
{
"app_network_access_type": "PublicInternetOnly",
"app_security_group_management": null,
"auth_mode": "IAM",
"default_space_settings": null,
"default_user_settings": {
"code_editor_app_settings": null,
"custom_file_system_configs": null,
"custom_posix_user_config": null,
"default_landing_uri": "studio::",
"execution_role": "arn:aws:iam::###########:role/example",
"jupyter_lab_app_settings": null,
"jupyter_server_app_settings": null,
"kernel_gateway_app_settings": null,
"r_session_app_settings": null,
"r_studio_server_pro_app_settings": null,
"security_groups": null,
"sharing_settings": null,
"space_storage_settings": null,
"studio_web_portal": "ENABLED"
},
"domain_arn": "arn:aws:sagemaker:us-east-1:###########:domain/d-gkp3bop4nqmv",
"domain_id": "d-gkp3bop4nqmv",
"domain_name": "awscc-test",
"domain_settings": null,
"home_efs_file_system_id": "fs-03a6e13630756c41c",
"id": "d-gkp3bop4nqmv",
"kms_key_id": null,
"security_group_id_for_domain_boundary": null,
"single_sign_on_application_arn": null,
"single_sign_on_managed_application_instance_id": null,
"subnet_ids": [
"subnet-0e3cd1df31dea5e9c"
],
"tags": null,
"url": "https://d-gkp3bop4nqmv.studio.us-east-1.sagemaker.aws",
"vpc_id": "vpc-091e289e155590a6f"
}
{
"app_network_access_type": "PublicInternetOnly",
"app_security_group_management": "\u0000",
"auth_mode": "IAM",
"default_space_settings": "\u0000",
"default_user_settings": {
"code_editor_app_settings": "\u0000",
"custom_file_system_configs": "\u0000",
"custom_posix_user_config": "\u0000",
"default_landing_uri": "studio::",
"execution_role": "arn:aws:iam::###########:role/example",
"jupyter_lab_app_settings": "\u0000",
"jupyter_server_app_settings": "\u0000",
"kernel_gateway_app_settings": "\u0000",
"r_session_app_settings": "\u0000",
"r_studio_server_pro_app_settings": "\u0000",
"security_groups": "\u0000",
"sharing_settings": "\u0000",
"space_storage_settings": {
"default_ebs_storage_settings": {
"default_ebs_volume_size_in_gb": 5,
"maximum_ebs_volume_size_in_gb": 100
}
},
"studio_web_portal": "ENABLED"
},
"domain_arn": "arn:aws:sagemaker:us-east-1:###########:domain/d-gkp3bop4nqmv",
"domain_id": "d-gkp3bop4nqmv",
"domain_name": "awscc-test",
"domain_settings": "\u0000",
"home_efs_file_system_id": "fs-03a6e13630756c41c",
"id": "d-gkp3bop4nqmv",
"kms_key_id": "\u0000",
"security_group_id_for_domain_boundary": "\u0000",
"single_sign_on_application_arn": "\u0000",
"single_sign_on_managed_application_instance_id": "\u0000",
"subnet_ids": [
"subnet-0e3cd1df31dea5e9c"
],
"tags": "\u0000",
"url": "https://d-gkp3bop4nqmv.studio.us-east-1.sagemaker.aws",
"vpc_id": "vpc-091e289e155590a6f"
}
space_storage_settings
"space_storage_settings": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: DefaultEbsStorageSettings
"default_ebs_storage_settings": schema.SingleNestedAttribute{ /*START ATTRIBUTE*/
Attributes: map[string]schema.Attribute{ /*START SCHEMA*/
// Property: DefaultEbsVolumeSizeInGb
"default_ebs_volume_size_in_gb": schema.Int64Attribute{ /*START ATTRIBUTE*/
Description: "Default size of the Amazon EBS volume in Gb",
// Required: true,
Optional: true,
Computed: true,
Validators: []validator.Int64{ /*START VALIDATORS*/
int64validator.Between(5, 16384),
}, /*END VALIDATORS*/
}, /*END ATTRIBUTE*/
// Property: MaximumEbsVolumeSizeInGb
"maximum_ebs_volume_size_in_gb": schema.Int64Attribute{ /*START ATTRIBUTE*/
Description: "Maximum size of the Amazon EBS volume in Gb. Must be greater than or equal to the DefaultEbsVolumeSizeInGb.",
// Required: true,
Optional: true,
Computed: true,
Validators: []validator.Int64{ /*START VALIDATORS*/
int64validator.Between(5, 16384),
}, /*END VALIDATORS*/
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
Description: "Properties related to the Amazon Elastic Block Store volume. Must be provided if storage type is Amazon EBS and must not be provided if storage type is not Amazon EBS",
Optional: true,
Computed: true,
PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/
objectplanmodifier.UseStateForUnknown(),
}, /*END PLAN MODIFIERS*/
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
Description: "Default storage settings for a space.",
Optional: true,
Computed: true,
PlanModifiers: []planmodifier.Object{ /*START PLAN MODIFIERS*/
objectplanmodifier.UseStateForUnknown(),
}, /*END PLAN MODIFIERS*/
}, /*END ATTRIBUTE*/
// Property: StudioWebPortal
"studio_web_portal": schema.StringAttribute{ /*START ATTRIBUTE*/
Description: "Indicates whether the Studio experience is available to users. If not, users cannot access Studio.",
Optional: true,
Computed: true,
Validators: []validator.String{ /*START VALIDATORS*/
stringvalidator.OneOf(
"ENABLED",
"DISABLED",
),
}, /*END VALIDATORS*/
PlanModifiers: []planmodifier.String{ /*START PLAN MODIFIERS*/
stringplanmodifier.UseStateForUnknown(),
}, /*END PLAN MODIFIERS*/
}, /*END ATTRIBUTE*/
}, /*END SCHEMA*/
Description: "The default user settings.",
Required: true,
}, /*END ATTRIBUTE*/
data.aws_iam_policy_document.example: Reading... data.aws_iam_policy_document.example: Read complete after 0s [id=1147345228] aws_iam_role.example: Refreshing state... [id=example] awscc_sagemaker_domain.this: Refreshing state... [id=d-gkp3bop4nqmv]
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed.
Thank you for opening this issue, @philipgebus . Tracking this as a bug similar to https://github.com/hashicorp/terraform-provider-awscc/issues/1216#issuecomment-2172453750
Community Note
Terraform CLI and Terraform AWS Cloud Control Provider Version
Terraform v1.8.4
Affected Resource(s)
Terraform Configuration Files
Output
First run completes successfully:
Consecutive runs with the identical configuration trigger in-place updates for undefined attributes and get stuck:
Expected Behavior
terraform apply
solely updates the _awscc_sagemakerdomain resource if actual configuration changes have been madeterraform apply
on consecutive applies does not get stuck in modifying stateActual Behavior
terraform apply
executes successfullyterraform apply
updates the _awscc_sagemakerdomain resource although no updates have been made and gets stuck in modifying state.Steps to Reproduce
terraform apply
terraform apply
on identical resource configuration