Skip to content

Commit 7b95356

Browse files
authored
docs: fix secretsmanager fields in sample manifests (#5728)
Related: #5724. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the Apache 2.0 License.
1 parent db68543 commit 7b95356

11 files changed

Lines changed: 18 additions & 18 deletions

site/content/blogs/release-v126.en.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,13 @@ secrets:
181181
# To inject a secret from SecretsManager.
182182
# (Recommended) Option 1. Referring to the secret by name.
183183
DB:
184-
secretsmanager: 'demo/test/mysql'
184+
secretsmanager: 'mysql'
185185
# You can refer to a specific key in the JSON blob.
186186
DB_PASSWORD:
187-
secretsmanager: 'demo/test/mysql:password::'
187+
secretsmanager: 'mysql:password::'
188188
# You can substitute predefined environment variables to keep your manifest succinct.
189189
DB_PASSWORD:
190-
secretsmanager: '${COPILOT_APPLICATION_NAME}/${COPILOT_ENVIRONMENT_NAME}/mysql:password::'
190+
secretsmanager: 'mysql:password::'
191191
192192
# Option 2. Alternatively, you can refer to the secret by ARN.
193193
DB: 'arn:aws:secretsmanager:us-west-2:111122223333:secret:demo/test/mysql-Yi6mvL'

site/content/blogs/release-v126.ja.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,13 +189,13 @@ secrets:
189189
# To inject a secret from SecretsManager.
190190
# (Recommended) Option 1. Referring to the secret by name.
191191
DB:
192-
secretsmanager: 'demo/test/mysql'
192+
secretsmanager: 'mysql'
193193
# You can refer to a specific key in the JSON blob.
194194
DB_PASSWORD:
195-
secretsmanager: 'demo/test/mysql:password::'
195+
secretsmanager: 'mysql:password::'
196196
# You can substitute predefined environment variables to keep your manifest succinct.
197197
DB_PASSWORD:
198-
secretsmanager: '${COPILOT_APPLICATION_NAME}/${COPILOT_ENVIRONMENT_NAME}/mysql:password::'
198+
secretsmanager: 'mysql:password::'
199199
200200
# Option 2. Alternatively, you can refer to the secret by ARN.
201201
DB: 'arn:aws:secretsmanager:us-west-2:111122223333:secret:demo/test/mysql-Yi6mvL'

site/content/docs/developing/secrets.ja.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ SSM と同様に、最初に Secrets Manager のシークレットに、`copilot
4343

4444
| Field | Value |
4545
| ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
46-
| Name | `demo/test/mysql` |
46+
| Name | `mysql` |
4747
| ARN | `arn:aws:secretsmanager:us-west-2:111122223333:secret:demo/test/mysql-Yi6mvL` |
4848
| Value | `{"engine": "mysql","username": "user1","password": "i29wwX!%9wFV","host": "my-database-endpoint.us-east-1.rds.amazonaws.com","dbname": "myDatabase","port": "3306"`} |
4949
| Tags | `copilot-application=demo`, `copilot-environment=test` |
@@ -54,13 +54,13 @@ Manifest を次の様に変更します。
5454
secrets:
5555
# (推奨) オプション 1. 名前を使ってシークレットを参照します。
5656
DB:
57-
secretsmanager: 'demo/test/mysql'
57+
secretsmanager: 'mysql'
5858
# JSON blob 内の特定のキーを参照できます。
5959
DB_PASSWORD:
60-
secretsmanager: 'demo/test/mysql:password::'
60+
secretsmanager: 'mysql:password::'
6161
# 事前に定義された環境変数を利用して、Manifest を簡潔に保つ事ができます。
6262
DB_PASSWORD:
63-
secretsmanager: '${COPILOT_APPLICATION_NAME}/${COPILOT_ENVIRONMENT_NAME}/mysql:password::'
63+
secretsmanager: 'mysql:password::'
6464
6565
# オプション 2. 別の方法として、ARN によってシークレットを指定することができます。
6666
DB: "'arn:aws:secretsmanager:us-west-2:111122223333:secret:demo/test/mysql-Yi6mvL'"

site/content/docs/manifest/backend-service.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ List of all available properties for a `'Backend Service'` manifest. To learn ab
7171
secrets:
7272
GITHUB_WEBHOOK_SECRET: GH_WEBHOOK_SECRET
7373
DB_PASSWORD:
74-
secretsmanager: 'demo/test/mysql:password::'
74+
secretsmanager: 'mysql:password::'
7575
```
7676

7777
=== "With a domain"

site/content/docs/manifest/backend-service.ja.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
secrets:
7272
GITHUB_WEBHOOK_SECRET: GH_WEBHOOK_SECRET
7373
DB_PASSWORD:
74-
secretsmanager: 'demo/test/mysql:password::'
74+
secretsmanager: 'mysql:password::'
7575
```
7676

7777
=== "With a domain"

site/content/docs/manifest/lb-web-service.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ List of all available properties for a `'Load Balanced Web Service'` manifest. T
2626
secrets:
2727
GITHUB_TOKEN: GITHUB_TOKEN
2828
DB_SECRET:
29-
secretsmanager: '${COPILOT_APPLICATION_NAME}/${COPILOT_ENVIRONMENT_NAME}/mysql'
29+
secretsmanager: 'mysql'
3030
```
3131

3232
=== "With a domain"

site/content/docs/manifest/lb-web-service.ja.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
secrets:
2727
GITHUB_TOKEN: GITHUB_TOKEN
2828
DB_SECRET:
29-
secretsmanager: '${COPILOT_APPLICATION_NAME}/${COPILOT_ENVIRONMENT_NAME}/mysql'
29+
secretsmanager: 'mysql'
3030
```
3131

3232
=== "With a domain"

site/content/docs/manifest/rd-web-service.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ List of all available properties for a `'Request-Driven Web Service'` manifest.
2828
secrets:
2929
GITHUB_TOKEN: GITHUB_TOKEN
3030
DB_SECRET:
31-
secretsmanager: '${COPILOT_APPLICATION_NAME}/${COPILOT_ENVIRONMENT_NAME}/mysql'
31+
secretsmanager: 'mysql'
3232

3333
environments:
3434
test:

site/content/docs/manifest/rd-web-service.ja.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
secrets:
2929
GITHUB_TOKEN: GITHUB_TOKEN
3030
DB_SECRET:
31-
secretsmanager: '${COPILOT_APPLICATION_NAME}/${COPILOT_ENVIRONMENT_NAME}/mysql'
31+
secretsmanager: 'mysql'
3232

3333
environments:
3434
test:

site/content/docs/manifest/worker-service.en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ List of all available properties for a `'Worker Service'` manifest. To learn abo
3434

3535
secrets:
3636
DB:
37-
secretsmanager: '${COPILOT_APPLICATION_NAME}/${COPILOT_ENVIRONMENT_NAME}/mysql'
37+
secretsmanager: 'mysql'
3838
```
3939

4040
=== "Spot autoscaling"

0 commit comments

Comments
 (0)