@@ -19,6 +19,8 @@ export const pipeline_generator = {
1919 testCmd : z . string ( ) . optional ( ) ,
2020 buildCmd : z . string ( ) . optional ( ) ,
2121 awsRoleArn : z . string ( ) . optional ( ) ,
22+ awsSessionName : z . string ( ) . optional ( ) ,
23+ awsRegion : z . string ( ) . optional ( ) ,
2224 gcpServiceAccountEmail : z . string ( ) . optional ( ) ,
2325 stages : z . array ( z . enum ( [ "build" , "test" , "deploy" ] ) ) . optional ( ) ,
2426 } )
@@ -33,6 +35,8 @@ export const pipeline_generator = {
3335 testCmd : options ?. testCmd ,
3436 buildCmd : options ?. buildCmd ,
3537 awsRoleArn : options ?. awsRoleArn ,
38+ awsSessionName : options ?. awsSessionName ,
39+ awsRegion : options ?. awsRegion ,
3640 stages : options ?. stages ,
3741 } ;
3842
@@ -103,6 +107,8 @@ export const pipeline_generator = {
103107 testCmd : options ?. testCmd ,
104108 buildCmd : options ?. buildCmd ,
105109 awsRoleArn : options ?. awsRoleArn ,
110+ awsSessionName : options ?. awsSessionName ,
111+ awsRegion : options ?. awsRegion ,
106112 gcpServiceAccountEmail : options ?. gcpServiceAccountEmail ,
107113 stages : options ?. stages ,
108114 } ;
@@ -177,7 +183,8 @@ jobs:
177183 uses: aws-actions/configure-aws-credentials@v4
178184 with:
179185 role-to-assume: ${ normalized . awsRoleArn ?? "REPLACE_ME" }
180- aws-region: us-east-1
186+ role-session-name: ${ normalized . awsSessionName ?? "autodeploy" }
187+ aws-region: ${ normalized . awsRegion ?? "us-east-1" }
181188 - name: Deploy Application
182189 run: echo "Deploying ${ repo } to AWS..."
183190` ;
0 commit comments