Skip to content

Commit 411592c

Browse files
committed
revamp amb
1 parent 7ce429a commit 411592c

File tree

1 file changed

+28
-19
lines changed

1 file changed

+28
-19
lines changed

src/content/docs/aws/services/managedblockchain.md

Lines changed: 28 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
---
22
title: "Managed Blockchain (AMB)"
3-
linkTitle: "Managed Blockchain (AMB)"
4-
description: >
5-
Get started with Managed Blockchain (AMB) on LocalStack
3+
description: Get started with Managed Blockchain (AMB) on LocalStack
64
tags: ["Ultimate"]
75
---
86

7+
## Introduction
8+
99
Managed Blockchain (AMB) is a managed service that enables the creation and management of blockchain networks, such as Hyperledger Fabric, Bitcoin, Polygon and Ethereum.
1010
Blockchain enables the development of applications in which multiple entities can conduct transactions and exchange data securely and transparently, eliminating the requirement for a central, trusted authority.
1111

1212
LocalStack allows you to use the AMB APIs to develop and deploy decentralized applications in your local environment.
13-
The supported APIs are available on our [API Coverage Page]({{< ref "coverage_managedblockchain" >}}), which provides information on the extent of AMB integration with LocalStack.
13+
The supported APIs are available on our [API Coverage Page](), which provides information on the extent of AMB integration with LocalStack.
1414

1515
## Getting started
1616

@@ -24,8 +24,8 @@ We will demonstrate how to create a blockchain network, a node, and a proposal.
2424
You can create a blockchain network using the [`CreateNetwork`](https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_CreateNetwork.html) API.
2525
Run the following command to create a network named `OurBlockchainNet` which uses the Hyperledger Fabric with the following configuration:
2626

27-
{{< command >}}
28-
$ awslocal managedblockchain create-network \
27+
```bash
28+
awslocal managedblockchain create-network \
2929
--cli-input-json '{
3030
"Name": "OurBlockchainNet",
3131
"Description": "OurBlockchainNetDesc",
@@ -63,13 +63,16 @@ $ awslocal managedblockchain create-network \
6363
}
6464
}
6565
}'
66-
<disable-copy>
66+
```
67+
68+
The output will be similar to the following:
69+
70+
```json
6771
{
6872
"NetworkId": "n-X24AF1AK2GC6MDW11HYW5I5DQC",
6973
"MemberId": "m-6VWBWHP2Y15F7TQ2DS093RTCW2"
7074
}
71-
</disable-copy>
72-
{{< / command >}}
75+
```
7376

7477
Copy the `NetworkId` and `MemberId` values from the output of the above command, as we will need them in the next step.
7578

@@ -78,8 +81,8 @@ Copy the `NetworkId` and `MemberId` values from the output of the above command,
7881
You can create a node using the [`CreateNode`](https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_CreateNode.html) API.
7982
Run the following command to create a node with the following configuration:
8083

81-
{{< command >}}
82-
$ awslocal managedblockchain create-node \
84+
```bash
85+
awslocal managedblockchain create-node \
8386
--node-configuration '{
8487
"InstanceType": "bc.t3.small",
8588
"AvailabilityZone": "us-east-1a",
@@ -100,12 +103,15 @@ $ awslocal managedblockchain create-node \
100103
}' \
101104
--network-id n-X24AF1AK2GC6MDW11HYW5I5DQC \
102105
--member-id m-6VWBWHP2Y15F7TQ2DS093RTCW2
103-
<disable-copy>
106+
```
107+
108+
The output will be similar to the following:
109+
110+
```json
104111
{
105112
"NodeId": "nd-77K8AI0O5BEQD1IW4L8OGKMXV7"
106113
}
107-
</disable-copy>
108-
{{< / command >}}
114+
```
109115

110116
Replace the `NetworkId` and `MemberId` values in the above command with the values you copied in the previous step.
111117

@@ -114,16 +120,19 @@ Replace the `NetworkId` and `MemberId` values in the above command with the valu
114120
You can create a proposal using the [`CreateProposal`](https://docs.aws.amazon.com/managed-blockchain/latest/APIReference/API_CreateProposal.html) API.
115121
Run the following command to create a proposal with the following configuration:
116122

117-
{{< command >}}
118-
$ awslocal managedblockchain create-proposal \
123+
```bash
124+
awslocal managedblockchain create-proposal \
119125
--actions "Invitations=[{Principal=000000000000}]" \
120126
--network-id n-X24AF1AK2GC6MDW11HYW5I5DQC \
121127
--member-id m-6VWBWHP2Y15F7TQ2DS093RTCW2
122-
<disable-copy>
128+
```
129+
130+
The output will be similar to the following:
131+
132+
```json
123133
{
124134
"ProposalId": "p-NK0PSLDPETJQX01Q4OLBRHP8CZ"
125135
}
126-
</disable-copy>
127-
{{< / command >}}
136+
```
128137

129138
Replace the `NetworkId` and `MemberId` values in the above command with the values you copied in the previous step.

0 commit comments

Comments
 (0)