Skip to content

Inputs & Outputs

ListedSecret

  • Contains information about a secret in AWS Secrets Manager

  • This dictionary type is outputted when listing all secrets

  • No sensitive secret data is contained

Example

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
- arn: arn:aws:secretsmanager:eu-west-2:381957475495:secret:example-secret-1-R02UeI
  created_at: '08:40:20 09/03/2021'
  last_accessed_at: 00:00:00 09/03/2021
  last_changed_at: 10:25:18 09/03/2021
  name: example-secret-1
  tags:
  - key: environment
    value: uat
  - key: team
    value: engineering

ListedSecret Keys

arn: the Amazon resource name

created_at: the date the secret was created

last_accessed_at: the date the secret was last accessed

last_changed_at: the date the secret was last changed

name: the name of the secret

tags: any tags associated with the secret

Secret

  • Contains the data from an AWS Secrets Manager secret

Example

1
2
3
4
5
6
7
arn: arn:aws:secretsmanager:eu-west-2:381957475495:secret:example-secret-yZLBlZ
created_at: 11:15:35 22/03/2021
name: example-secret
data:
  username: example
  password: example
version_id: 2c6703c0-6ab9-4e8a-9591-5bcbd9469ed0

Secret Keys

arn: the Amazon resource name

created_at: the date the secret was created

name: the name of the secret

data: a dictionary of secret keys & values

version_id: the ID of the secret version