mirror of
https://github.com/aljazceru/payments-rest-api.git
synced 2026-01-04 06:14:20 +01:00
cleanup docs
This commit is contained in:
20
README.md
20
README.md
@@ -84,7 +84,7 @@ aws cloudformation describe-stacks --stack-name breez-integration --query Stacks
|
||||
```
|
||||
* Retrieve the API endpoints:
|
||||
```
|
||||
aws cloudformation describe-stacks --stack-name breez-integration --query Stacks[0].Outputs
|
||||
aws cloudformation describe-stacks --stack-name breez-integration --query 'Stacks[0].Outputs'
|
||||
```
|
||||
Output should look like this:
|
||||
```
|
||||
@@ -136,3 +136,21 @@ For example, for the *list_payments* endpoint, run:
|
||||
```
|
||||
curl -X POST "<YOUR-URL-HERE>/list_payments" -H "Content-Type: application/json" -H "x-api-key: <API_SECRET>" -d '{}'
|
||||
```
|
||||
|
||||
### Cleanup
|
||||
To remove the stack you deployed you need to run the command delete-stack. This command starts the process to delete the stack, but it takes a while.
|
||||
```
|
||||
aws cloudformation delete-stack --stack-name breez-integration
|
||||
```
|
||||
You can use the same status command to see if its been successfully deleted:
|
||||
```
|
||||
aws cloudformation describe-stacks --stack-name breez-integration --query Stacks[0].StackStatus
|
||||
```
|
||||
|
||||
You should also cleanup the parameters:
|
||||
```
|
||||
aws ssm delete-parameter --name "/breez-nodeless/api_key"
|
||||
aws ssm delete-parameter --name "/breez-nodeless/seed_phrase"
|
||||
aws ssm delete-parameter --name "/breez-nodeless/api_secret"
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user