From bf7675410430c5af93313f3b0601048b688cbf67 Mon Sep 17 00:00:00 2001 From: Mokhtar Naamani Date: Tue, 12 Sep 2023 09:58:20 +0400 Subject: [PATCH 1/2] aws ec2 instances: update sec policy to make tcp ports 8081 and 4000 reachable Make the ports reachable as they will be behind external load balancer. --- devops/aws/cloudformation/single-instance.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/devops/aws/cloudformation/single-instance.yml b/devops/aws/cloudformation/single-instance.yml index 228cd16720..c9ab159775 100644 --- a/devops/aws/cloudformation/single-instance.yml +++ b/devops/aws/cloudformation/single-instance.yml @@ -44,6 +44,14 @@ Resources: FromPort: 30333 ToPort: 30333 CidrIp: 0.0.0.0/0 + - IpProtocol: tcp + FromPort: 8081 + ToPort: 8081 + CidrIp: 0.0.0.0/0 + - IpProtocol: tcp + FromPort: 4000 + ToPort: 4000 + CidrIp: 0.0.0.0/0 Tags: - Key: Name Value: !Sub '${AWS::StackName}_substrate_node' From aecf76b38ed234e9d9f11988e32327581c322cdf Mon Sep 17 00:00:00 2001 From: Mokhtar Naamani Date: Thu, 11 Apr 2024 12:32:10 +0400 Subject: [PATCH 2/2] fix syntax error in bash script --- scripts/compute-runtime-blob-hash.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/compute-runtime-blob-hash.sh b/scripts/compute-runtime-blob-hash.sh index be47c1bfd1..8e3bf69fb4 100755 --- a/scripts/compute-runtime-blob-hash.sh +++ b/scripts/compute-runtime-blob-hash.sh @@ -6,7 +6,7 @@ set -e # for deterministic builds. # Assumes b2sum is already instally on the host machine. -SCRIPT_PATH=`$(dirname "${BASH_SOURCE[0]}")` +SCRIPT_PATH=`dirname "${BASH_SOURCE[0]}"` cd $SCRIPT_PATH CODE_SHASUM=`./runtime-code-shasum.sh`