You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnvalidation.StringMatch(regexp.MustCompile(`^`+strings.Join(regions, "|")+`/[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$`), "must be in the form region/UUID")
Description: "The secret unique identifier, it could be formatted as UUID or region/UUID. The secret must be in the same region as the job definition.",
103
-
Required: true,
110
+
Type: schema.TypeString,
111
+
Description: "The secret unique identifier, it must be in the form region/UUID. The region must be the same as the job definition.",
112
+
Required: true,
113
+
ValidateFunc: locality.ValidateRegionalUUID(),
104
114
},
105
115
"secret_reference_id": {
106
116
Type: schema.TypeString,
@@ -136,7 +146,6 @@ func ResourceJobDefinitionCreate(ctx context.Context, d *schema.ResourceData, m
assert.ErrorContains(t, err, fmt.Sprintf("the secret id %s does not appear to be in the same region as the job definition id %s", jobSecrets[2].SecretID, jobID))
417
+
assert.ErrorContains(t, err, fmt.Sprintf("the secret id %s does not appear to be in the same region as the job definition id %s", jobSecrets[1].SecretID, jobID))
0 commit comments