Skip to content

Commit

Permalink
testing dynamic ssh on ec2 linux
Browse files Browse the repository at this point in the history
  • Loading branch information
okankoAMZ committed Dec 5, 2024
1 parent 748073f commit f12d10f
Show file tree
Hide file tree
Showing 2 changed files with 1,108 additions and 1,094 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ec2-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ on:
type: string
s3_integration_bucket:
type: string
connection_port:
type: number
required: true

jobs:
EC2IntegrationTest:
Expand All @@ -65,6 +68,16 @@ jobs:
aws-region: ${{inputs.region}}
role-duration-seconds: ${{ env.TERRAFORM_AWS_ASSUME_ROLE_DURATION }}

- name: Add Runner to Security Group
uses: mnavarrocarter/[email protected]
with:
aws-region: ${{inputs.region}}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-security-group-id: ${{ secrets.AWS_TERRAFORM_SECURITY_GROUP_ID }}
protocol: 'tcp'
port: ${{ inputs.connection_port }}

- name: Cache if success
id: cache_if_success
uses: actions/cache@v3
Expand Down
Loading

0 comments on commit f12d10f

Please sign in to comment.