-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
30 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,9 @@ on: | |
type: string | ||
s3_integration_bucket: | ||
type: string | ||
connection_port: | ||
type: number | ||
required: true | ||
outputs: | ||
local_stack_host_name: | ||
value: ${{ jobs.StartLocalStack.outputs.local_stack_host_name }} | ||
|
@@ -57,6 +60,16 @@ jobs: | |
role-to-assume: ${{ inputs.terraform_assume_role }} | ||
aws-region: ${{ inputs.region }} | ||
|
||
|
||
- 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: Echo Localstack Config | ||
run: echo repo name ${{inputs.test_repo_name}} repo branch ${{ inputs.test_repo_branch }} region ${{ inputs.region }} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,9 @@ on: | |
type: string | ||
s3_integration_bucket: | ||
type: string | ||
|
||
connection_port: | ||
type: number | ||
required: true | ||
|
||
jobs: | ||
StopLocalStack: | ||
|
@@ -50,6 +52,16 @@ jobs: | |
role-to-assume: ${{ inputs.terraform_assume_role }} | ||
aws-region: ${{ inputs.region }} | ||
|
||
|
||
- 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: Copy state | ||
run: aws s3 cp s3://${{inputs.s3_integration_bucket}}/integration-test/local-stack-terraform-state/${{inputs.github_sha}}/terraform.tfstate . | ||
|
||
|