diff --git a/resources/environments/resource_aws_environment.go b/resources/environments/resource_aws_environment.go index 3d05adec..26e8e7d4 100644 --- a/resources/environments/resource_aws_environment.go +++ b/resources/environments/resource_aws_environment.go @@ -204,7 +204,7 @@ func toAwsEnvironmentResource(ctx context.Context, env *environmentsmodels.Envir } var sgIDsknox types.Set if model.SecurityAccess != nil && !model.SecurityAccess.SecurityGroupIDsForKnox.IsUnknown() { - sgIDsknox = model.SecurityAccess.DefaultSecurityGroupIDs + sgIDsknox = model.SecurityAccess.SecurityGroupIDsForKnox } model.SecurityAccess = &SecurityAccess{ Cidr: types.StringValue(env.SecurityAccess.Cidr),