2.2.7.3. Creating a stack again with the service name of a deleted stack¶
This chapter explains what to note when you create a stack again with the ServiceName of a deleted stack.
- 作成日:
2026/12/1
- 更新日:
2026/12/1
2.2.7.3.1. The keys of the earlier stack are reused¶
mijin Catapult(v.2) saves the keys and settings created on the first node (API node 1) in AWS Systems Manager Parameter Store under
/<ServiceName>/shares/, and the other nodes read them from there.These values are kept when the stack is deleted.
When a stack is created again with the same ServiceName, a new blockchain is created with the remaining values (the nemesis block accounts, the node keys and so on) as they are.
The following message is then written to
/var/log/cfn-init.log on the node.the SSM parameters under /MIJIN-CATAPULT/shares/ (ssm_ps_name, the ServiceName of the stack) hold data of an earlier chain without fork_heights.json; it is reused (keys, generation hash) for a new chain.
In the following cases, specify another ServiceName or delete the remaining values in Parameter Store before creating the stack again.
You want keys and accounts different from the earlier stack
The number of nodes differs from the earlier stack
2.2.7.3.2. Deleting the values in Parameter Store¶
Warning
The values in Parameter Store include the private keys of the accounts created in the nemesis block.
Before deleting them, make sure that the blockchain of the deleted stack will not be used again.
If needed, keep a copy of the values before deleting them.
In the AWS Management Console, search for
/<ServiceName>/shares/ in Systems Manager > Parameter Store and delete the values.With the AWS CLI, delete them as follows. Replace
MIJIN-CATAPULT and the region with yours.aws --region us-east-1 ssm get-parameters-by-path --path /MIJIN-CATAPULT/shares/ --recursive \
--query 'Parameters[].Name' --output text | tr '\t' '\n' \
| xargs -n 10 aws --region us-east-1 ssm delete-parameters --names
