Skip to content

Commit 78c9ce8

Browse files
committed
Set allowed egress via Github workflow
1 parent a54b3cb commit 78c9ce8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/data-replication-pipeline.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ on:
3131
description: ARN of the DB snapshot to use (optional)
3232
required: false
3333
type: string
34+
egress_cidr:
35+
description: CIDR block to allow egress traffic (optional)
36+
required: false
37+
type: string
3438

3539
env:
3640
aws_role: ${{ inputs.environment == 'production'
@@ -193,6 +197,7 @@ jobs:
193197
terraform init -backend-config="env/${{ inputs.environment }}-backend.hcl" -upgrade
194198
terraform plan -var="image_digest=${{ env.DOCKER_DIGEST }}" -var="db_secret_arn=${{ env.DB_SECRET_ARN }}" \
195199
-var="imported_snapshot=${{ env.SNAPSHOT_ARN }}" -var-file="env/${{ inputs.environment }}.tfvars" \
200+
-var="allowed_egress_cidr_block=${{ inputs.egress_cidr }}" \
196201
-out ${{ runner.temp }}/tfplan | tee ${{ runner.temp }}/tf_stdout
197202
- name: Upload artifact
198203
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)