HEX
Server: LiteSpeed
System: Linux s1080.usc1.mysecurecloudhost.com 4.18.0-513.24.1.lve.2.el8.x86_64 #1 SMP Fri May 24 12:42:50 UTC 2024 x86_64
User: justofft (2594)
PHP: 7.3.33
Disabled: NONE
Upload Files
File: //usr/lib/python3.6/site-packages/awscli/examples/secretsmanager/create-secret.rst
**To create a basic secret**

The following example shows how to create a secret. The credentials stored in the encrypted secret value are retrieved from a file on disk named ``mycreds.json``. ::

	aws secretsmanager create-secret --name MyTestDatabaseSecret \
	    --description "My test database secret created with the CLI" \
	    --secret-string file://mycreds.json 

The output shows the following: ::

	{
	  "ARN": "arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestDatabaseSecret-a1b2c3",
	  "Name": "MyTestDatabaseSecret",
	  "VersionId": "EXAMPLE1-90ab-cdef-fedc-ba987EXAMPLE"
	}