I am learning about
How to Deploy Hyperledger Fabric on AWS with Blockchain Templates. from this tutorial https://medium.com/faun/how-to-deploy-hyperledger-fabric-on-aws-with-blockchain-templates-12ff1b219d98
I have tried to follow every single steps but realized there are something missing from his steps and I tried putting in the missing pieces but somehow still getting error while creating.
I tried to google around but doesn't seem to be able to find much much.
Wondering if there's anyone able to give me suggestions / advice.
I will try writing out steps of what I have done.
I created a new by launching VPC wizard with
VPC with a single public subnetI named this
I created a new EC2 and chose the first AMI
Amazon Linux 2 AMI (HVM), SSD Volume Type, I configured the network to use the VPC I created in previous step, then left the other instance details as default. As for security group, I created a new security group named
Hyperledgewith inbound rules of HTTP + HTTPS to be accessible anywhere. As for outbound, it's open to all traffic. As for PEM, I created new PEM named
I created one elastic ip with the setting of
us-west-2for network border group. I created both ec2 + vpc in Oregon (us-west-2). Then I associated this elastic ip to the ec2 I created previously.
I created another security group named
blockchainbookwith SSH + 8080 as inbound rules and all traffic for outbound. This security group is with the new VPC(blockchainVPC)
I created a new policy under IAM named
EC2BC, I added full access to
Elastic Container Registryand
Elastic Container Serviceand
S3with resources as
I created a new role named
aws serviceand common use case of
EC2I attached the policy I created above (EC2BC) into this role.
I went back to the EC2 created in step 2, then attached the
EC2Blockchainrole to it.
I went to this page from aws https://aws.amazon.com/blockchain/templates/getting-started/ and chose
Launch in US West (Oregon) region (us-west-2)to launch hyperledger fabric which brings me to cloudformation with the a template url of hyperledger fabric. As for stack name I entered
BlockchainStack. VPC Connection, I chose
BlockChainVPCwhich I created in step 1. Subnet, I chose the subnet that was created with the
BlockchainVPC. EC2 Key pair I chose the one I created with ec2 in step 2. Security group, I choose the
blockchainbookI created in step 4. As for EC2 Instance Profile ARN, I chose the
Role ARNfrom the role I created in step 6.
Finally I started to create the stack and see that it's in progress because of the state
CREATE_IN_PROGRESS, after a few minutes I see an error of
Embedded stack arn:aws:cloudformation:us-west-2:234234234:stack/BlockchainStack-FabricEC2CommonStack-1OF23423423/234234234-234234234-234 was not successfully created: The following resource(s) failed to create: [EC2InstanceForDev].
After the error I tried recreating the stack again all settings are the sam except the EC2 Instance Profile ARN, this time I chose
Instance Profile ARNs from the role I created in step 6. But error is still the same, no luck.
I also thought it might be the role permission I set or the security group I had wrong so I even tried to attach the admin policy into the role and all traffic to both inbound + outbound for the security group but still no luck.
Does anyone has suggession / advice for this?
Thanks in advance for any help.