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
#### Use AWS Secrets Manager from your own AWS account
149
149
150
-
- AWS account with Secrets Manager service available
151
-
- IAM User or Role is created with appropriate AWS Secrets Manger access permission
150
+
-An AWS account with Secrets Manager service
151
+
-An IAM user with AWS Secrets Manager access permission
152
152
153
-
#### Use AWS Secrets Manager from other AWS account
153
+
#### Use AWS Secrets Manager in CI/CD
154
154
155
155
- AWS account ID where the AWS Secrets Manager service is hosted
156
-
-IAM User or Role with appropriate access permission
156
+
-Authorized CI/CD EC2 instances with AWS Secrets Manager service access IAM role attached
157
157
158
158
### Store secrets in AWS Secrets Manager
159
159
160
-
161
160
#### Secrets format
162
161
163
162
`Secret Name` and `Secret Value` are two key pieces of information for creating a secret.
164
163
165
164
`Secret Value` can be either plaintext or key/value pairs in JSON format.
166
165
167
-
`Secrets Name` must use the following format:
166
+
`Secret Name` must use the following format:
168
167
169
168
```conf
170
169
mftf/<VENDOR>/<YOUR/SECRET/KEY>
171
170
```
172
171
173
-
`Secrets Value` in plaintext format can be any content you want to secure. `Secrets Value` in key/value pairs format, however, the `key` must be same as the `Secret Name` with `mftf/<VENDOR>/` part removed.
174
-
e.g. in above example, `key` should be `<YOUR/SECRET/KEY>`
172
+
`Secret Value` can be stored in two different formats: plaintext or key/value pairs.
173
+
174
+
For plaintext format, `Secret Value` can be any string you want to secure.
175
+
176
+
For key/value pairs format, `Secret Value` is a key/value pair with `key` the same as `Secret Name` without `mftf/<VENDOR>/` prefix, which is `<YOUR/SECRET/KEY>`, and value can be any string you want to secure.
### Optionally set CREDENTIAL_AWS_ACCOUNT_ID environment variable
212
217
213
-
Full AWS KMS ([Key Management Service][]) key ARN ([Amazon Resource Name][]) is required when accessing secrets stored in other AWS account.
214
-
If this is the case, you will also need to set `CREDENTIAL_AWS_ACCOUNT_ID` environment variable so that MFTF can construct the full ARN.
215
-
This is also commonly used in CI system.
218
+
In case AWS credentials cannot resolve to a valid AWS account, full AWS KMS ([Key Management Service][]) key ARN ([Amazon Resource Name][]) is required.
219
+
You will also need to set `CREDENTIAL_AWS_ACCOUNT_ID` environment variable so that MFTF can construct the full ARN. This is mostly used for CI/CD.
0 commit comments