bright-sunset-66321
03/20/2025, 4:14 PM@secrets(sources=[{"id": "mysecret", {"options": {"env_var_name": "MY_SECRET"}}])
But this is incorrect python syntax
Cell In[3], line 1
sources=[{"id": "mysecret", {"options": {"env_var_name": "MY_SECRET"}}]
^
SyntaxError: closing parenthesis ']' does not match opening parenthesis '{'
Adding the missing bracket gives the following
sources=[{"id": "mysecret", {"options": {"env_var_name": "MY_SECRET"}}}]
^
SyntaxError: ':' expected after dictionary key
So what is the correct format for doing this in python?bright-sunset-66321
03/20/2025, 4:16 PMsources=[{"id": "mysecret", "options": {"env_var_name": "MY_SECRET"}}]
Doesnt seem to rename any secretsbright-sunset-66321
03/20/2025, 4:23 PMsecret_client = boto3.client(service_name='secretsmanager')
get_secret_value_response = secret_client.get_secret_value(SecretId="my-secret")
secret_string = get_secret_value_response["SecretString"])