@@ -417,7 +417,7 @@ Resources:
417417 PolicyName : IdeIdeLambdaRoleDefaultPolicy6F800745
418418 Roles :
419419 - Ref : IdeIdeLambdaRoleCC8748CC
420- IdeIdeBootstrapWaitConditionHandleEA0A1D15 :
420+ IdeBootstrapWaitConditionHandleD7141CA8 :
421421 Type : AWS::CloudFormation::WaitConditionHandle
422422 IdePrefixListLookupFunction9E5A63DE :
423423 Type : AWS::Lambda::Function
@@ -714,30 +714,19 @@ Resources:
714714 Fn::GetAtt :
715715 - IdeInstanceLauncherFunction803C5A2A
716716 - Arn
717- InstanceName : ide
718- IamInstanceProfileArn :
719- Fn::GetAtt :
720- - IdeIdeInstanceProfile8BD997EA
721- - Arn
722- VolumeSize : " 50"
723717 SubnetIds :
724718 Fn::Join :
725719 - " "
726720 - - Ref : VpcWorkshopVpcPublicSubnet1SubnetBCB45C45
727721 - " ,"
728722 - Ref : VpcWorkshopVpcPublicSubnet2SubnetF8F9426F
729- SecurityGroupIds :
730- Fn::Join :
731- - " "
732- - - Fn::GetAtt :
733- - IdeIdeSecurityGroup5C503C8A
734- - GroupId
735- - " ,"
736- - Fn::GetAtt :
737- - IdeIdeInternalSecurityGroupD5D3B421
738- - GroupId
739- ImageId :
740- Ref : SsmParameterValueawsserviceamiamazonlinuxlatestal2023amikernel61x8664C96584B6F00A464EAD1953AFF4B05118Parameter
723+ VolumeSize : " 50"
724+ IamInstanceProfileArn :
725+ Fn::GetAtt :
726+ - IdeIdeInstanceProfile8BD997EA
727+ - Arn
728+ InstanceName : ide
729+ InstanceTypes : m5.xlarge,m6i.xlarge,t3.xlarge
741730 UserData :
742731 Fn::Base64 :
743732 Fn::Join :
@@ -758,9 +747,13 @@ Resources:
758747 "
759748 AWS_REGION="
760749 - Ref : AWS::Region
761- - |
750+ - |-
762751 "
763752 TEMPLATE_TYPE="base"
753+ WAIT_CONDITION_HANDLE_URL="
754+ - Ref : IdeBootstrapWaitConditionHandleD7141CA8
755+ - |-
756+ "
764757
765758 # Setup logging
766759 LOG_GROUP_NAME="ide-bootstrap-$(date +%Y%m%d-%H%M%S)"
@@ -843,20 +836,43 @@ Resources:
843836
844837 echo "Executing full bootstrap script..."
845838 # Run bootstrap script as root from the cloned directory
846- if bash -c "cd /home/ec2-user/java-on-aws && infra/scripts/ide/bootstrap.sh '$GIT_BRANCH' '$STACK_NAME' '$TEMPLATE_TYPE'"; then
839+ if bash -c "cd /home/ec2-user/java-on-aws && WAIT_CONDITION_HANDLE_URL='
840+ - Ref : IdeBootstrapWaitConditionHandleD7141CA8
841+ - |-
842+ ' infra/scripts/ide/bootstrap.sh '$GIT_BRANCH' '$STACK_NAME' '$TEMPLATE_TYPE'"; then
847843 echo "Bootstrap completed successfully"
848- /opt/aws/bin/cfn-signal -e 0 --stack "$STACK_NAME" --resource IdeBootstrapWaitCondition --region "$AWS_REGION"
844+ /opt/aws/bin/cfn-signal -e 0 '
845+ - Ref : IdeBootstrapWaitConditionHandleD7141CA8
846+ - |-
847+ '
849848 else
850849 echo "FATAL: Bootstrap script failed"
851- /opt/aws/bin/cfn-signal -e 1 --stack "$STACK_NAME" --resource IdeBootstrapWaitCondition --region "$AWS_REGION"
850+ /opt/aws/bin/cfn-signal -e 1 '
851+ - Ref : IdeBootstrapWaitConditionHandleD7141CA8
852+ - |-
853+ '
852854 exit 1
853855 fi
854856 else
855857 echo "FATAL: Could not clone repository"
856- /opt/aws/bin/cfn-signal -e 1 --stack "$STACK_NAME" --resource IdeBootstrapWaitCondition --region "$AWS_REGION"
858+ /opt/aws/bin/cfn-signal -e 1 '
859+ - Ref : IdeBootstrapWaitConditionHandleD7141CA8
860+ - |
861+ '
857862 exit 1
858863 fi
859- InstanceTypes : m5.xlarge,m6i.xlarge,t3.xlarge
864+ ImageId :
865+ Ref : SsmParameterValueawsserviceamiamazonlinuxlatestal2023amikernel61x8664C96584B6F00A464EAD1953AFF4B05118Parameter
866+ SecurityGroupIds :
867+ Fn::Join :
868+ - " "
869+ - - Fn::GetAtt :
870+ - IdeIdeSecurityGroup5C503C8A
871+ - GroupId
872+ - " ,"
873+ - Fn::GetAtt :
874+ - IdeIdeInternalSecurityGroupD5D3B421
875+ - GroupId
860876 UpdateReplacePolicy : Delete
861877 DeletionPolicy : Delete
862878 IdeIdeEipAssociation6C6C215D :
@@ -938,12 +954,12 @@ Resources:
938954 - IdeIdeEipAssociation6C6C215D
939955 UpdateReplacePolicy : Delete
940956 DeletionPolicy : Delete
941- IdeIdeBootstrapWaitCondition94599134 :
957+ IdeBootstrapWaitConditionE4059F8E :
942958 Type : AWS::CloudFormation::WaitCondition
943959 Properties :
944960 Count : 1
945961 Handle :
946- Ref : IdeIdeBootstrapWaitConditionHandleEA0A1D15
962+ Ref : IdeBootstrapWaitConditionHandleD7141CA8
947963 Timeout : " 1800"
948964 DependsOn :
949965 - IdeIdeEC2InstanceResource17A0C9F7
@@ -1119,7 +1135,7 @@ Resources:
11191135 ImagePullCredentialsType : CODEBUILD
11201136 PrivilegedMode : false
11211137 Type : LINUX_CONTAINER
1122- Name : base -setup
1138+ Name : workshop -setup
11231139 ServiceRole :
11241140 Fn::GetAtt :
11251141 - CodeBuildCodeBuildRoleBA9C6D5C
@@ -1238,7 +1254,7 @@ Resources:
12381254 responseData = {'Error': tb_err}
12391255
12401256 cfnresponse.send(event, context, status, responseData, physical_id)
1241- FunctionName : ide -codebuild-start
1257+ FunctionName : setup -codebuild-start
12421258 Handler : index.lambda_handler
12431259 Role :
12441260 Fn::GetAtt :
@@ -1304,7 +1320,7 @@ Resources:
13041320 'error': str(e)
13051321 })
13061322 }
1307- FunctionName : ide -codebuild-report
1323+ FunctionName : setup -codebuild-report
13081324 Handler : index.lambda_handler
13091325 Role :
13101326 Fn::GetAtt :
@@ -1318,7 +1334,7 @@ Resources:
13181334 CodeBuildBuildCompleteRule06AAF17D :
13191335 Type : AWS::Events::Rule
13201336 Properties :
1321- Description : base -setup build complete
1337+ Description : workshop -setup build complete
13221338 EventPattern :
13231339 detail :
13241340 project-name :
@@ -1360,11 +1376,11 @@ Resources:
13601376 - Arn
13611377 ProjectName :
13621378 Ref : CodeBuildProjectA0FF5539
1379+ ContentHash : " 1765692209597"
13631380 CodeBuildIamRoleArn :
13641381 Fn::GetAtt :
13651382 - CodeBuildCodeBuildRoleBA9C6D5C
13661383 - Arn
1367- ContentHash : " 1765690723450"
13681384 DependsOn :
13691385 - CodeBuildBuildCompleteRuleAllowEventRuleWorkshopStackCodeBuildReportLambdaFunctionD77C6091DA4A4BD8
13701386 - CodeBuildBuildCompleteRule06AAF17D
0 commit comments