Browse through the questions and answers listed below or filter and sort to narrow down your results.
0
answers
0
votes
6
views
asked 2 days ago
4
answers
0
votes
4
views
asked 18 days ago
1
answers
0
votes
4
views
asked 2 months ago
2
answers
1
votes
4
views
asked 4 months ago
How to get the read-replica RDS host info (multi-az scenario)?
Hi,
I've added a new secrets for my Aurora RDS. In the secret, I see "host" entry which points to the writer node. How do I get the host information for the read-replica node? I **could** add it manually, but I don't want to :)
Thanks!!
Accepted AnswerAWS Secrets Manager
1
answers
0
votes
4
views
asked 2 years ago
Secrets Manager and CF- can not create secret because it already exists
I have a CF template with a simple secret inside, like this:
Credentials:
Type: 'AWS::SecretsManager::Secret'
Properties:
Name: !Sub ${ProjectKey}.${StageName}.${ComponentId}.credentials
Description: client credentials
SecretString: !Sub '{"client_id":"${ClientId}","client_secret":"${ClientSecret}"}'
The stack is created successfully and the secret is correctly generated.
However when I **delete the stack and recreate it** again I get the following error message:
**The operation failed because the secret pk.stage.compid.credentials already exists. (Service: AWSSecretsManager; Status Code: 400; Error Code: ResourceExistsException; Request ID: ###)**
I guess this is because the secret is not really deleted but only marked for deletion for x days.
It is possible to delete a secret immediately via CLI, **but how can this be done within the CF Template?**
I need to delete and recreate the stacks because it is part of a continous integration/delivery pipeline which is automatically triggered on source code commits.
Accepted AnswerAWS Secrets Manager
3
answers
0
votes
53
views
asked 3 years ago