update reference to key pair data block #15
Workflow file for this run
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
name: Observe Agent Integration Tests | |
on: | |
workflow_dispatch: | |
push: | |
#Special permissions required for OIDC authentication | |
permissions: | |
id-token: write | |
contents: read | |
pull-requests: write | |
env: | |
#TF_VAR_aws_region: ${{ secrets.AWS_REGION }} | |
#TF_VAR_aws_role_arn: ${{ secrets.AWS_ROLE_TO_ASSUME }} | |
TF_VAR_name_format: "tf-observe-agent-test-%s" | |
TF_VAR_AWS_MACHINE_FILTER: "AMAZON_LINUX_2023" | |
TF_VAR_PUBLIC_KEY_PATH: "./test_key.pub" | |
TF_VAR_PRIVATE_KEY_PATH: "./test.pem.pub" | |
jobs: | |
observe-agent-integration-tests: | |
name: observe-agent-integration-tests | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: integration | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} | |
role-session-name: ${{ github.sha }} | |
aws-region: ${{ secrets.AWS_REGION }} | |
- name: Setup Terraform | |
uses: hashicorp/setup-terraform@v3 | |
- name: Terraform Init | |
id: init | |
run: terraform init | |
- name: Terraform Validate | |
id: validate | |
run: terraform validate -no-color | |
- name: Terraform Test | |
id: test | |
run: | | |
touch test_key.pub | |
touch test_key.pem | |
ls -l | |
terraform test -verbose | |
# example_job: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout code | |
# uses: actions/checkout@v4 | |
# - name: Run a command | |
# run: echo "This workflow was manually triggered" |