File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -354,25 +354,37 @@ on:
354354jobs :
355355 generate-diagrams :
356356 runs-on : ubuntu-latest
357+ permissions :
358+ id-token : write
359+ contents : write
357360 steps :
358361 - uses : actions/checkout@v4
359362
360363 - uses : hashicorp/setup-terraform@v3
361364
365+ - name : Configure AWS credentials
366+ uses : aws-actions/configure-aws-credentials@v4
367+ timeout-minutes : 2
368+ with :
369+ role-to-assume : arn:aws:iam::1xxxxxxx8090:role/githubactions
370+ role-session-name : ghasession
371+ aws-region : us-east-1
372+
362373 - uses : patrickchugh/terravision-action@v1
363374 with :
364- source : ./infrastructure
365- outfile : docs/architecture
366- format : both
375+ source : .
376+ format : png
367377
368378 - name : Commit Diagrams
369379 run : |
370380 git config user.name "github-actions[bot]"
371381 git config user.email "github-actions[bot]@users.noreply.github.com"
372- git add docs/ architecture.*
382+ git add architecture.dot .*
373383 git commit -m "Update architecture diagrams [skip ci]" || exit 0
374384 git push
385+
375386` ` `
387+ * AWS Example - You will need an IAM role the action can assume and a Trust policy granting github to assume it
376388
377389### GitLab CI / Jenkins / Other
378390
You can’t perform that action at this time.
0 commit comments