Skip to content
This repository has been archived by the owner on Dec 6, 2024. It is now read-only.

Commit

Permalink
Template adjustments for new paths
Browse files Browse the repository at this point in the history
  • Loading branch information
gargana committed Sep 27, 2021
1 parent 9521c13 commit 13fdfe8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Parameters:
Default: 'aws-quickstart'
PreworkScriptObject:
Type: String
Default: 'quickstart-examples/samples/eks-cluster-prework/script/pw-script.sh'
Default: 'quickstart-examples/blog-assets/eks-cluster-prework/script/pw-script.sh'
Resources:
EKSStack:
Type: AWS::CloudFormation::Stack
Expand All @@ -31,10 +31,10 @@ Resources:
PreworkStack:
Type: AWS::CloudFormation::Stack
Properties:
TemplateURL: 'https://aws-quickstart.s3.us-east-1.amazonaws.com/quickstart-examples/samples/eks-cluster-prework/templates/prework.template.yaml'
TemplateURL: 'https://aws-quickstart.s3.us-east-1.amazonaws.com/quickstart-examples/blog-assets/eks-cluster-prework/templates/prework.template.yaml'
Parameters:
ClusterName: !Sub "EKSStack.Outputs.EKSClusterName"
PreworkScriptBucket: "aws-quickstart"
PreworkScriptObject: "quickstart-examples/samples/eks-cluster-prework/scripts/pw-script.sh"
PreworkScriptObject: !Ref "PreworkScriptObject"
JobName: !Ref "PreWorkJobName"
KubernetesNameSpace: !Ref "PreworkNamespace"
12 changes: 11 additions & 1 deletion blog-assets/eks-cluster-prework/templates/prework.template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Parameters:
Default: aws-quickstart
PreworkScriptObject:
Type: String
Default: "quickstart-examples/samples/eks-cluster-prework/scripts/pw-script.sh"
Default: "quickstart-examples/blog-assets/eks-cluster-prework/scripts/pw-script.sh"
JobName:
Type: String
Default: ExampleJob
Expand Down Expand Up @@ -52,6 +52,16 @@ Resources:
- s3:GetObject
Resource:
- !Sub "arn:aws:s3:::${PreworkScriptBucket}/${PreworkScriptObject}"
PeworkNameSpace:
Type: "AWSQS::Kubernetes::Resource"
Properties:
ClusterName: !Ref ClusterName
Manifest: !Sub |
kind: Namespace
apiVersion: v1
metadata:
name: ${KubernetesNameSpace}
Namespace: default
KubernetesRole:
Type: AWSQS::Kubernetes::Resource
Properties:
Expand Down

0 comments on commit 13fdfe8

Please sign in to comment.