Skip to content

Commit 636d62b

Browse files
author
Yuriy Bezsonov
committed
base + java-on-aws template
1 parent e61d044 commit 636d62b

File tree

3 files changed

+56
-56
lines changed

3 files changed

+56
-56
lines changed

infra/cfn/base-stack.yaml

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,29 @@ Resources:
714714
- IdeInstanceLauncherFunction803C5A2A
715715
- Arn
716716
InstanceName: ide
717-
InstanceTypes: m5.xlarge,m6i.xlarge,t3.xlarge
717+
IamInstanceProfileArn:
718+
Fn::GetAtt:
719+
- IdeInstanceProfile61B92038
720+
- Arn
721+
VolumeSize: "50"
722+
SubnetIds:
723+
Fn::Join:
724+
- ""
725+
- - Ref: VpcPublicSubnet1Subnet8E8DEDC0
726+
- ","
727+
- Ref: VpcPublicSubnet2SubnetA811849C
728+
SecurityGroupIds:
729+
Fn::Join:
730+
- ""
731+
- - Fn::GetAtt:
732+
- IdeSecurityGroup73B02454
733+
- GroupId
734+
- ","
735+
- Fn::GetAtt:
736+
- IdeInternalSecurityGroupB0A5D76B
737+
- GroupId
738+
ImageId:
739+
Ref: SsmParameterValueawsserviceamiamazonlinuxlatestal2023amikernel61x8664C96584B6F00A464EAD1953AFF4B05118Parameter
718740
UserData:
719741
Fn::Base64:
720742
Fn::Join:
@@ -848,29 +870,7 @@ Resources:
848870
"
849871
exit 1
850872
fi
851-
ImageId:
852-
Ref: SsmParameterValueawsserviceamiamazonlinuxlatestal2023amikernel61x8664C96584B6F00A464EAD1953AFF4B05118Parameter
853-
SecurityGroupIds:
854-
Fn::Join:
855-
- ""
856-
- - Fn::GetAtt:
857-
- IdeSecurityGroup73B02454
858-
- GroupId
859-
- ","
860-
- Fn::GetAtt:
861-
- IdeInternalSecurityGroupB0A5D76B
862-
- GroupId
863-
SubnetIds:
864-
Fn::Join:
865-
- ""
866-
- - Ref: VpcPublicSubnet1Subnet8E8DEDC0
867-
- ","
868-
- Ref: VpcPublicSubnet2SubnetA811849C
869-
VolumeSize: "50"
870-
IamInstanceProfileArn:
871-
Fn::GetAtt:
872-
- IdeInstanceProfile61B92038
873-
- Arn
873+
InstanceTypes: m5.xlarge,m6i.xlarge,t3.xlarge
874874
UpdateReplacePolicy: Delete
875875
DeletionPolicy: Delete
876876
IdeEipAssociationDFF81215:
@@ -1249,12 +1249,12 @@ Resources:
12491249
Environment:
12501250
ComputeType: BUILD_GENERAL1_MEDIUM
12511251
EnvironmentVariables:
1252-
- Name: GIT_BRANCH
1253-
Type: PLAINTEXT
1254-
Value: new-ws-infra
12551252
- Name: TEMPLATE_TYPE
12561253
Type: PLAINTEXT
12571254
Value: base
1255+
- Name: GIT_BRANCH
1256+
Type: PLAINTEXT
1257+
Value: new-ws-infra
12581258
Image: aws/codebuild/amazonlinux2-x86_64-standard:5.0
12591259
ImagePullCredentialsType: CODEBUILD
12601260
PrivilegedMode: false
@@ -1460,12 +1460,12 @@ Resources:
14601460
Description: workshop-setup build complete
14611461
EventPattern:
14621462
detail:
1463+
project-name:
1464+
- Ref: CodeBuildProjectA0FF5539
14631465
build-status:
14641466
- SUCCEEDED
14651467
- FAILED
14661468
- STOPPED
1467-
project-name:
1468-
- Ref: CodeBuildProjectA0FF5539
14691469
detail-type:
14701470
- CodeBuild Build State Change
14711471
source:
@@ -1497,13 +1497,13 @@ Resources:
14971497
Fn::GetAtt:
14981498
- CodeBuildStartLambdaFunction8349284F
14991499
- Arn
1500-
ContentHash: "1765726247489"
1500+
ProjectName:
1501+
Ref: CodeBuildProjectA0FF5539
15011502
CodeBuildIamRoleArn:
15021503
Fn::GetAtt:
15031504
- CodeBuildRoleE9A44575
15041505
- Arn
1505-
ProjectName:
1506-
Ref: CodeBuildProjectA0FF5539
1506+
ContentHash: "1765735498510"
15071507
DependsOn:
15081508
- CodeBuildCompleteRuleAllowEventRuleWorkshopStackCodeBuildReportLambdaFunctionD77C60919E0B0C89
15091509
- CodeBuildCompleteRuleEE9277E8

infra/cfn/java-on-aws-stack.yaml

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -733,8 +733,13 @@ Resources:
733733
Fn::GetAtt:
734734
- IdeInstanceLauncherFunction803C5A2A
735735
- Arn
736-
ImageId:
737-
Ref: SsmParameterValueawsserviceamiamazonlinuxlatestal2023amikernel61x8664C96584B6F00A464EAD1953AFF4B05118Parameter
736+
VolumeSize: "50"
737+
SubnetIds:
738+
Fn::Join:
739+
- ""
740+
- - Ref: VpcPublicSubnet1Subnet8E8DEDC0
741+
- ","
742+
- Ref: VpcPublicSubnet2SubnetA811849C
738743
SecurityGroupIds:
739744
Fn::Join:
740745
- ""
@@ -745,19 +750,8 @@ Resources:
745750
- Fn::GetAtt:
746751
- IdeInternalSecurityGroupB0A5D76B
747752
- GroupId
748-
SubnetIds:
749-
Fn::Join:
750-
- ""
751-
- - Ref: VpcPublicSubnet1Subnet8E8DEDC0
752-
- ","
753-
- Ref: VpcPublicSubnet2SubnetA811849C
754-
VolumeSize: "50"
755-
IamInstanceProfileArn:
756-
Fn::GetAtt:
757-
- IdeInstanceProfile61B92038
758-
- Arn
759-
InstanceName: ide
760-
InstanceTypes: m5.xlarge,m6i.xlarge,t3.xlarge
753+
ImageId:
754+
Ref: SsmParameterValueawsserviceamiamazonlinuxlatestal2023amikernel61x8664C96584B6F00A464EAD1953AFF4B05118Parameter
761755
UserData:
762756
Fn::Base64:
763757
Fn::Join:
@@ -891,6 +885,12 @@ Resources:
891885
"
892886
exit 1
893887
fi
888+
InstanceTypes: m5.xlarge,m6i.xlarge,t3.xlarge
889+
InstanceName: ide
890+
IamInstanceProfileArn:
891+
Fn::GetAtt:
892+
- IdeInstanceProfile61B92038
893+
- Arn
894894
UpdateReplacePolicy: Delete
895895
DeletionPolicy: Delete
896896
IdeEipAssociationDFF81215:
@@ -1269,12 +1269,12 @@ Resources:
12691269
Environment:
12701270
ComputeType: BUILD_GENERAL1_MEDIUM
12711271
EnvironmentVariables:
1272-
- Name: TEMPLATE_TYPE
1273-
Type: PLAINTEXT
1274-
Value: java-on-aws
12751272
- Name: GIT_BRANCH
12761273
Type: PLAINTEXT
12771274
Value: new-ws-infra
1275+
- Name: TEMPLATE_TYPE
1276+
Type: PLAINTEXT
1277+
Value: java-on-aws
12781278
Image: aws/codebuild/amazonlinux2-x86_64-standard:5.0
12791279
ImagePullCredentialsType: CODEBUILD
12801280
PrivilegedMode: false
@@ -1480,12 +1480,12 @@ Resources:
14801480
Description: workshop-setup build complete
14811481
EventPattern:
14821482
detail:
1483-
project-name:
1484-
- Ref: CodeBuildProjectA0FF5539
14851483
build-status:
14861484
- SUCCEEDED
14871485
- FAILED
14881486
- STOPPED
1487+
project-name:
1488+
- Ref: CodeBuildProjectA0FF5539
14891489
detail-type:
14901490
- CodeBuild Build State Change
14911491
source:
@@ -1517,13 +1517,13 @@ Resources:
15171517
Fn::GetAtt:
15181518
- CodeBuildStartLambdaFunction8349284F
15191519
- Arn
1520+
ProjectName:
1521+
Ref: CodeBuildProjectA0FF5539
15201522
CodeBuildIamRoleArn:
15211523
Fn::GetAtt:
15221524
- CodeBuildRoleE9A44575
15231525
- Arn
1524-
ProjectName:
1525-
Ref: CodeBuildProjectA0FF5539
1526-
ContentHash: "1765726252761"
1526+
ContentHash: "1765735504010"
15271527
DependsOn:
15281528
- CodeBuildCompleteRuleAllowEventRuleWorkshopStackCodeBuildReportLambdaFunctionD77C60919E0B0C89
15291529
- CodeBuildCompleteRuleEE9277E8

infra/scripts/setup/eks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ fi
124124
log_info "Verifying EKS add-ons..."
125125

126126
# Check AWS Secrets Store CSI Driver
127-
if kubectl get daemonset -n kube-system secrets-store-csi-driver >/dev/null 2>&1; then
127+
if kubectl get daemonset -n aws-secrets-manager secrets-store-csi-driver >/dev/null 2>&1; then
128128
log_success "AWS Secrets Store CSI Driver is installed"
129129
else
130130
log_warning "AWS Secrets Store CSI Driver not found"

0 commit comments

Comments
 (0)