Skip to content

Commit 50fec7d

Browse files
fix(srv): update Jobs x Secrets doc wording (#3937)
1 parent 7a5319b commit 50fec7d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

serverless/jobs/how-to/reference-secret-in-job.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,13 @@ A [job run](/serverless/jobs/concepts/#job-run) accesses each secret at startup,
3939

4040
5. Select the desired reference method:
4141

42-
- **File**: copies the encrypted value of your secret to a file stored at the indicated location within your container. This method is recommended for large or complex data. For example, if your secret is a certificate, you can store it as a file in the `/my-certificates` folder in your container.
42+
- **File**: copies the encrypted value of your secret to a file stored at the indicated location within your job. This method is recommended for large or complex data. For example, if your secret is a certificate, you can store it as a file in the `/my-certificates` folder in your job.
4343

44-
- **Environment variable**: passes the encrypted value of your secret to your job as a variable. This method is recommended for small pieces of information, such as passwords, or API secret keys. For example, if you name this variable `MY_SECRET`, calling `$MY_SECRET` in your container will return the value of the selected secret in a secure way.
44+
- **Environment variable**: passes the encrypted value of your secret to your job as a variable. This method is recommended for small pieces of information, such as passwords, or API secret keys. For example, if you name this variable `MY_SECRET`, calling `$MY_SECRET` in your job will return the value of the selected secret in a secure way.
4545

4646
6. Click **Add reference** to add the secret to your Serverless Job. Optionally, tick the **Add another reference** to add a new secret right away, then repeat steps 4 to 6.
4747

48-
The secret is now referenced in your Serverless Job, and can be used within the container.
48+
The secret is now referenced in your Serverless Job, and can be used within the job.
4949

5050
## Update a secret reference from a job
5151

@@ -60,7 +60,7 @@ The secret is now referenced in your Serverless Job, and can be used within the
6060
5. Either update the location of the file, or the name of the environment variable, then click **Update reference** to confirm your changes.
6161

6262
<Message type="note">
63-
You cannot change the reference method of an existing secret. You have to delete the secret reference within the job first, then create it again with the desired reference method.
63+
You cannot change the reference method of an existing secret. To modify it, first delete the secret reference within the job, then create a new one with the desired reference method.
6464
</Message>
6565

6666
## Delete a secret reference from a job

0 commit comments

Comments
 (0)