NASA-IMPACT / tf-openscience-blockchain

Terraform module for Open Science blockchain
0 stars 0 forks source link

Provision Blockchain Resources Using AWS CDK instead of terraform #9

Open amarouane-ABDELHAK opened 6 months ago

amarouane-ABDELHAK commented 6 months ago

The goal of this task is to refactor and enhance the existing infrastructure provisioning for blockchain resources by migrating from Terraform to AWS CDK. This shift will help us standardize the IaC process by adopting AWS CDK across all projects.

rajeshpandey2053 commented 5 months ago

Todo:

rajeshpandey2053 commented 5 months ago

Completed:

Issues `CDK deployment getting stuck while ecs_stack_service is in_progress state for a long period of time Fixed

rajeshpandey2053 commented 5 months ago

2024-01-22T00:21:31.528Z - [31merror[39m: [FabricCAClientService.js]: Failed to enroll hecuser, error:%o message=Calling enrollment endpoint failed with error [Error: getaddrinfo ENOTFOUND [ca.m-cgpza7kwybbojhfduornap4psq.n-qeeynndp4fhnfpbt2hqh4n7ba4.managedblockchain.us-east-1.amazonaws.com](http://ca.m-cgpza7kwybbojhfduornap4psq.n-qeeynndp4fhnfpbt2hqh4n7ba4.managedblockchain.us-east-1.amazonaws.com/) Tried Approach:

rajeshpandey2053 commented 4 months ago

There were some issues with the security groups. The inbound rules for connecting to the blockchain network should be 30000 - 34000 as defined in this documentation. This should be defined for the instance that interacts with the blockchain network. https://docs.aws.amazon.com/managed-blockchain/latest/hyperledger-fabric-dev/managed-blockchain-security-sgs.html

After creating a security group for ECS tasks, attach the task security to the VPC endpoints

rajeshpandey2053 commented 4 months ago

Completed and Pushed to this branch. I do not have access to create a PR :(

xhagrg commented 4 months ago

you should have access. share screen shot of what issue you are facing.

rajeshpandey2053 commented 4 months ago

@xhagrg , The ticket has been created in this repo. But the code has been pushed in cdk-blockchain-openscience repo. I was talking about not having permissions to create a PR in the cdk-blockchain-openscience repo

Solved: Seems like there was only 1 development branch in that repo which was default one. Hence, no any option for PR was shown because there was only 1 branch. I assumed I did not have permissions to do it.