Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to update to a newer terraform version if only the GitHub Action is allowed to execute terraform #335

Closed
1 task done
robmoss2k opened this issue Apr 15, 2024 · 8 comments
Labels

Comments

@robmoss2k
Copy link

robmoss2k commented Apr 15, 2024

Problem description

In the documentation, it specifies the following first two points for terraform-version:

  1. The version set in the cloud workspace if the module uses a remote backend or cloud configuration, and the remote workspace exists.
  2. A required_version constraint in the Terraform configuration. If the constraint is range, the latest matching version is used.

We aren't allowed to execute terraform locally, as there are loads of validation steps to prevent people from breaking things that run in the GitHub Actions. Therefore, if my last terraform apply was on version 1.7.5 and I've validated I can switch to 1.8.0, the only way I can do that is to change my required_version to ==1.8.0. But terraform-version ignores this when installing terraform, installing version 1.7.5, and then it barfs because terraform 1.7.5 won't apply when required_version is set to ==1.8.0.

Suggested fix: required_version overrides the version in the state file if it's newer.

Terraform version

1.8.0

Backend

s3

Workflow YAML

---
name: Destroy resources

"on":
  schedule:
    - cron: "0 8 * * MON"
  push:
    branches:
      - main

jobs:
  terraform_validate:
    runs-on: ubuntu-latest
    name: Validate Terraform
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: Validate Terraform
        uses: dflook/terraform-validate@v1
  terraform_fmt:
    needs: terraform_validate
    runs-on: ubuntu-latest
    name: Check Terraform formatting
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: Check Terraform formatting
        uses: dflook/terraform-fmt-check@v1
  terraform_destroy:
    needs: terraform_fmt
    runs-on: ubuntu-latest
    env:
      AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}"
      AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
    name: Destroy Terraform-managed resources
    steps:
      - name: Checkout
        uses: actions/checkout@v4
      - name: Destroy resources
        uses: dflook/terraform-destroy@v1
        with:
          variables: github_token = "${{ secrets.TOKEN }}"

Workflow log

2024-04-15T15:02:57.3610013Z ##[debug]Starting: Destroy Terraform-managed resources
2024-04-15T15:02:57.3635456Z ##[debug]Cleaning runner temp folder: /home/runner/work/_temp
2024-04-15T15:02:57.3907732Z ##[debug]Starting: Set up job
2024-04-15T15:02:57.3908333Z Current runner version: '2.315.0'
2024-04-15T15:02:57.3929635Z ##[group]Operating System
2024-04-15T15:02:57.3930742Z Ubuntu
2024-04-15T15:02:57.3931107Z 22.04.4
2024-04-15T15:02:57.3931450Z LTS
2024-04-15T15:02:57.3931910Z ##[endgroup]
2024-04-15T15:02:57.3932295Z ##[group]Runner Image
2024-04-15T15:02:57.3932821Z Image: ubuntu-22.04
2024-04-15T15:02:57.3933230Z Version: 20240407.1.0
2024-04-15T15:02:57.3934246Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20240407.1/images/ubuntu/Ubuntu2204-Readme.md
2024-04-15T15:02:57.3935792Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20240407.1
2024-04-15T15:02:57.3936631Z ##[endgroup]
2024-04-15T15:02:57.3937039Z ##[group]Runner Image Provisioner
2024-04-15T15:02:57.3937837Z 2.0.361.1
2024-04-15T15:02:57.3938200Z ##[endgroup]
2024-04-15T15:02:57.3939224Z ##[group]GITHUB_TOKEN Permissions
2024-04-15T15:02:57.3941179Z Contents: read
2024-04-15T15:02:57.3941735Z Metadata: read
2024-04-15T15:02:57.3942137Z Packages: read
2024-04-15T15:02:57.3942519Z ##[endgroup]
2024-04-15T15:02:57.3944799Z Secret source: Actions
2024-04-15T15:02:57.3945509Z ##[debug]Primary repository: robmoss2k/test-ec2-instance
2024-04-15T15:02:57.3946299Z Prepare workflow directory
2024-04-15T15:02:57.4012836Z ##[debug]Creating pipeline directory: '/home/runner/work/test-ec2-instance'
2024-04-15T15:02:57.4016633Z ##[debug]Creating workspace directory: '/home/runner/work/test-ec2-instance/test-ec2-instance'
2024-04-15T15:02:57.4018465Z ##[debug]Update context data
2024-04-15T15:02:57.4022259Z ##[debug]Evaluating job-level environment variables
2024-04-15T15:02:57.4713733Z ##[debug]Evaluating: secrets.AWS_ACCESS_KEY_ID
2024-04-15T15:02:57.4719759Z ##[debug]Evaluating Index:
2024-04-15T15:02:57.4722184Z ##[debug]..Evaluating secrets:
2024-04-15T15:02:57.4737008Z ##[debug]..=> Object
2024-04-15T15:02:57.4752672Z ##[debug]..Evaluating String:
2024-04-15T15:02:57.4753657Z ##[debug]..=> 'AWS_ACCESS_KEY_ID'
2024-04-15T15:02:57.4758166Z ##[debug]=> '***'
2024-04-15T15:02:57.4761124Z ##[debug]Result: '***'
2024-04-15T15:02:57.4781281Z ##[debug]Evaluating: secrets.AWS_SECRET_ACCESS_KEY
2024-04-15T15:02:57.4781961Z ##[debug]Evaluating Index:
2024-04-15T15:02:57.4782456Z ##[debug]..Evaluating secrets:
2024-04-15T15:02:57.4783144Z ##[debug]..=> Object
2024-04-15T15:02:57.4783617Z ##[debug]..Evaluating String:
2024-04-15T15:02:57.4784240Z ##[debug]..=> 'AWS_SECRET_ACCESS_KEY'
2024-04-15T15:02:57.4785102Z ##[debug]=> '***'
2024-04-15T15:02:57.4785738Z ##[debug]Result: '***'
2024-04-15T15:02:57.4800407Z ##[debug]Evaluating job container
2024-04-15T15:02:57.4803361Z ##[debug]Evaluating job service containers
2024-04-15T15:02:57.4805662Z ##[debug]Evaluating job defaults
2024-04-15T15:02:57.4878436Z Prepare all required actions
2024-04-15T15:02:57.5044868Z Getting action download info
2024-04-15T15:02:57.6965816Z Download action repository 'actions/checkout@v4' (SHA:b4ffde65f46336ab88eb53be808477a3936bae11)
2024-04-15T15:02:57.6995161Z ##[debug]Copied action archive '/opt/actionarchivecache/actions_checkout/b4ffde65f46336ab88eb53be808477a3936bae11.tar.gz' to '/home/runner/work/_actions/_temp_03865c9f-ae48-4f36-8cec-21fd49563dcf/094bf4dd-66b6-4969-bfed-c60e6fc43677.tar.gz'
2024-04-15T15:02:57.7973523Z ##[debug]Unwrap 'actions-checkout-b4ffde6' to '/home/runner/work/_actions/actions/checkout/v4'
2024-04-15T15:02:57.8141626Z ##[debug]Archive '/home/runner/work/_actions/_temp_03865c9f-ae48-4f36-8cec-21fd49563dcf/094bf4dd-66b6-4969-bfed-c60e6fc43677.tar.gz' has been unzipped into '/home/runner/work/_actions/actions/checkout/v4'.
2024-04-15T15:02:57.8269030Z Download action repository 'dflook/terraform-destroy@v1' (SHA:7f500c95250b8744af0b6c632d54b38d91056062)
2024-04-15T15:02:58.1513114Z ##[debug]Download 'https://api.github.com/repos/dflook/terraform-destroy/tarball/7f500c95250b8744af0b6c632d54b38d91056062' to '/home/runner/work/_actions/_temp_ba368fc3-1f3f-4371-9ac9-9e899ce0e450/f227ad97-4750-4e51-bdaf-0069506ebf8f.tar.gz'
2024-04-15T15:02:58.1631847Z ##[debug]Unwrap 'dflook-terraform-destroy-7f500c9' to '/home/runner/work/_actions/dflook/terraform-destroy/v1'
2024-04-15T15:02:58.1640695Z ##[debug]Archive '/home/runner/work/_actions/_temp_ba368fc3-1f3f-4371-9ac9-9e899ce0e450/f227ad97-4750-4e51-bdaf-0069506ebf8f.tar.gz' has been unzipped into '/home/runner/work/_actions/dflook/terraform-destroy/v1'.
2024-04-15T15:02:58.1693143Z ##[debug]action.yml for action: '/home/runner/work/_actions/actions/checkout/v4/action.yml'.
2024-04-15T15:02:58.2533636Z ##[debug]action.yml for action: '/home/runner/work/_actions/dflook/terraform-destroy/v1/action.yml'.
2024-04-15T15:02:58.2582209Z ##[debug]Container image for action: 'danielflook/terraform-github-actions@sha256:7be9bab5458a1d2b235d28f35718383221867b3b7e91a0d335d24dcf7d0b7ce1'.
2024-04-15T15:02:58.2674144Z ##[debug]Set step '__actions_checkout' display name to: 'Checkout'
2024-04-15T15:02:58.2676649Z ##[debug]Set step '__dflook_terraform-destroy' display name to: 'Destroy resources'
2024-04-15T15:02:58.2678198Z Complete job name: Destroy Terraform-managed resources
2024-04-15T15:02:58.2697979Z ##[debug]Collect running processes for tracking orphan processes.
2024-04-15T15:02:58.2906701Z ##[debug]Finishing: Set up job
2024-04-15T15:02:58.3103959Z ##[debug]Evaluating condition for step: 'Pull danielflook/terraform-github-actions@sha256:7be9bab5458a1d2b235d28f35718383221867b3b7e91a0d335d24dcf7d0b7ce1'
2024-04-15T15:02:58.3132855Z ##[debug]Evaluating: success()
2024-04-15T15:02:58.3134410Z ##[debug]Evaluating success:
2024-04-15T15:02:58.3144489Z ##[debug]=> true
2024-04-15T15:02:58.3147126Z ##[debug]Result: true
2024-04-15T15:02:58.3164139Z ##[debug]Starting: Pull danielflook/terraform-github-actions@sha256:7be9bab5458a1d2b235d28f35718383221867b3b7e91a0d335d24dcf7d0b7ce1
2024-04-15T15:02:58.3227120Z ##[group]Pull down action image 'danielflook/terraform-github-actions@sha256:7be9bab5458a1d2b235d28f35718383221867b3b7e91a0d335d24dcf7d0b7ce1'
2024-04-15T15:02:58.3336238Z ##[command]/usr/bin/docker pull danielflook/terraform-github-actions@sha256:7be9bab5458a1d2b235d28f35718383221867b3b7e91a0d335d24dcf7d0b7ce1
2024-04-15T15:02:58.8678622Z docker.io/danielflook/terraform-github-actions@sha256:7be9bab5458a1d2b235d28f35718383221867b3b7e91a0d335d24dcf7d0b7ce1: Pulling from danielflook/terraform-github-actions
2024-04-15T15:02:58.9344300Z 5d0aeceef7ee: Pulling fs layer
2024-04-15T15:02:58.9345371Z 4a1eb5d0dc24: Pulling fs layer
2024-04-15T15:02:58.9346309Z b74a63caf8e6: Pulling fs layer
2024-04-15T15:02:58.9347260Z 73c3df26dd6e: Pulling fs layer
2024-04-15T15:02:58.9348087Z 19461494b2f2: Pulling fs layer
2024-04-15T15:02:58.9348892Z 73bea234d5d2: Pulling fs layer
2024-04-15T15:02:58.9349794Z a9cdd051868c: Pulling fs layer
2024-04-15T15:02:58.9350589Z 3369c5f63743: Pulling fs layer
2024-04-15T15:02:58.9351402Z 399b10243056: Pulling fs layer
2024-04-15T15:02:58.9352361Z 0fed3b1b2944: Pulling fs layer
2024-04-15T15:02:58.9353194Z b1e6da540992: Pulling fs layer
2024-04-15T15:02:58.9353948Z cf5677a2124c: Pulling fs layer
2024-04-15T15:02:58.9355262Z 4f4fb700ef54: Pulling fs layer
2024-04-15T15:02:58.9356302Z bba57b63f4c4: Pulling fs layer
2024-04-15T15:02:58.9357463Z 73c1996e5a38: Pulling fs layer
2024-04-15T15:02:58.9358680Z 7bc3b06ad0b0: Pulling fs layer
2024-04-15T15:02:58.9359698Z d26decd08c35: Pulling fs layer
2024-04-15T15:02:58.9360859Z f4148fd26bdb: Pulling fs layer
2024-04-15T15:02:58.9361863Z 1eb43504620c: Pulling fs layer
2024-04-15T15:02:58.9362979Z 505451b2f71c: Pulling fs layer
2024-04-15T15:02:58.9364072Z c43ce0aec2c7: Pulling fs layer
2024-04-15T15:02:58.9365063Z 4eeee70cbe3c: Pulling fs layer
2024-04-15T15:02:58.9366115Z ee73a74c0bc6: Pulling fs layer
2024-04-15T15:02:58.9367138Z 061817fd933e: Pulling fs layer
2024-04-15T15:02:58.9368113Z 8abfacdef22b: Pulling fs layer
2024-04-15T15:02:58.9369262Z cbdad60f0a45: Pulling fs layer
2024-04-15T15:02:58.9371474Z 73c3df26dd6e: Waiting
2024-04-15T15:02:58.9372394Z 19461494b2f2: Waiting
2024-04-15T15:02:58.9373169Z 73bea234d5d2: Waiting
2024-04-15T15:02:58.9373919Z a9cdd051868c: Waiting
2024-04-15T15:02:58.9374809Z 3369c5f63743: Waiting
2024-04-15T15:02:58.9375576Z 399b10243056: Waiting
2024-04-15T15:02:58.9376265Z 0fed3b1b2944: Waiting
2024-04-15T15:02:58.9377097Z b1e6da540992: Waiting
2024-04-15T15:02:58.9377783Z cf5677a2124c: Waiting
2024-04-15T15:02:58.9378480Z 4f4fb700ef54: Waiting
2024-04-15T15:02:58.9379259Z bba57b63f4c4: Waiting
2024-04-15T15:02:58.9379886Z 73c1996e5a38: Waiting
2024-04-15T15:02:58.9380549Z 7bc3b06ad0b0: Waiting
2024-04-15T15:02:58.9381336Z d26decd08c35: Waiting
2024-04-15T15:02:58.9382003Z f4148fd26bdb: Waiting
2024-04-15T15:02:58.9382831Z 4eeee70cbe3c: Waiting
2024-04-15T15:02:58.9383501Z 1eb43504620c: Waiting
2024-04-15T15:02:58.9384113Z 505451b2f71c: Waiting
2024-04-15T15:02:58.9384911Z ee73a74c0bc6: Waiting
2024-04-15T15:02:58.9385584Z c43ce0aec2c7: Waiting
2024-04-15T15:02:58.9386288Z cbdad60f0a45: Waiting
2024-04-15T15:02:58.9387043Z 061817fd933e: Waiting
2024-04-15T15:02:58.9387712Z 8abfacdef22b: Waiting
2024-04-15T15:02:59.0831299Z b74a63caf8e6: Verifying Checksum
2024-04-15T15:02:59.0839072Z b74a63caf8e6: Download complete
2024-04-15T15:02:59.3072874Z 73c3df26dd6e: Verifying Checksum
2024-04-15T15:02:59.3074412Z 73c3df26dd6e: Download complete
2024-04-15T15:02:59.4332312Z 5d0aeceef7ee: Verifying Checksum
2024-04-15T15:02:59.4333502Z 5d0aeceef7ee: Download complete
2024-04-15T15:02:59.4647772Z 19461494b2f2: Verifying Checksum
2024-04-15T15:02:59.4648730Z 19461494b2f2: Download complete
2024-04-15T15:02:59.6735719Z 73bea234d5d2: Verifying Checksum
2024-04-15T15:02:59.6742360Z 73bea234d5d2: Download complete
2024-04-15T15:02:59.7038689Z a9cdd051868c: Verifying Checksum
2024-04-15T15:02:59.7039524Z a9cdd051868c: Download complete
2024-04-15T15:02:59.8961766Z 3369c5f63743: Verifying Checksum
2024-04-15T15:02:59.8967819Z 3369c5f63743: Download complete
2024-04-15T15:02:59.9386630Z 399b10243056: Verifying Checksum
2024-04-15T15:02:59.9387828Z 399b10243056: Download complete
2024-04-15T15:03:00.1265284Z 0fed3b1b2944: Verifying Checksum
2024-04-15T15:03:00.1267317Z 0fed3b1b2944: Download complete
2024-04-15T15:03:00.1392748Z b1e6da540992: Verifying Checksum
2024-04-15T15:03:00.1394131Z b1e6da540992: Download complete
2024-04-15T15:03:00.1751044Z 4a1eb5d0dc24: Verifying Checksum
2024-04-15T15:03:00.1752429Z 4a1eb5d0dc24: Download complete
2024-04-15T15:03:00.3430438Z 4f4fb700ef54: Verifying Checksum
2024-04-15T15:03:00.3438770Z 4f4fb700ef54: Download complete
2024-04-15T15:03:00.5001620Z 73c1996e5a38: Verifying Checksum
2024-04-15T15:03:00.5005198Z 73c1996e5a38: Download complete
2024-04-15T15:03:00.6762435Z 7bc3b06ad0b0: Download complete
2024-04-15T15:03:00.8950636Z d26decd08c35: Verifying Checksum
2024-04-15T15:03:00.8952247Z d26decd08c35: Download complete
2024-04-15T15:03:01.0797495Z f4148fd26bdb: Verifying Checksum
2024-04-15T15:03:01.0799218Z f4148fd26bdb: Download complete
2024-04-15T15:03:01.1389645Z cf5677a2124c: Verifying Checksum
2024-04-15T15:03:01.1390821Z cf5677a2124c: Download complete
2024-04-15T15:03:01.2262702Z 1eb43504620c: Verifying Checksum
2024-04-15T15:03:01.2264141Z 1eb43504620c: Download complete
2024-04-15T15:03:01.2944031Z 505451b2f71c: Verifying Checksum
2024-04-15T15:03:01.2945404Z 505451b2f71c: Download complete
2024-04-15T15:03:01.3556052Z bba57b63f4c4: Verifying Checksum
2024-04-15T15:03:01.3557409Z bba57b63f4c4: Download complete
2024-04-15T15:03:01.3823017Z c43ce0aec2c7: Verifying Checksum
2024-04-15T15:03:01.3828935Z c43ce0aec2c7: Download complete
2024-04-15T15:03:01.4428468Z 4eeee70cbe3c: Verifying Checksum
2024-04-15T15:03:01.4429998Z 4eeee70cbe3c: Download complete
2024-04-15T15:03:01.5142864Z ee73a74c0bc6: Verifying Checksum
2024-04-15T15:03:01.5144252Z ee73a74c0bc6: Download complete
2024-04-15T15:03:01.5351482Z 061817fd933e: Verifying Checksum
2024-04-15T15:03:01.5352650Z 061817fd933e: Download complete
2024-04-15T15:03:01.5574775Z 5d0aeceef7ee: Pull complete
2024-04-15T15:03:01.6073969Z 8abfacdef22b: Verifying Checksum
2024-04-15T15:03:01.6079285Z 8abfacdef22b: Download complete
2024-04-15T15:03:01.6726714Z cbdad60f0a45: Verifying Checksum
2024-04-15T15:03:01.6732083Z cbdad60f0a45: Download complete
2024-04-15T15:03:05.1994513Z 4a1eb5d0dc24: Pull complete
2024-04-15T15:03:05.2148579Z b74a63caf8e6: Pull complete
2024-04-15T15:03:05.2562107Z 73c3df26dd6e: Pull complete
2024-04-15T15:03:05.2689584Z 19461494b2f2: Pull complete
2024-04-15T15:03:05.2790625Z 73bea234d5d2: Pull complete
2024-04-15T15:03:05.2879093Z a9cdd051868c: Pull complete
2024-04-15T15:03:05.3313709Z 3369c5f63743: Pull complete
2024-04-15T15:03:05.3445181Z 399b10243056: Pull complete
2024-04-15T15:03:05.5657724Z 0fed3b1b2944: Pull complete
2024-04-15T15:03:05.6952727Z b1e6da540992: Pull complete
2024-04-15T15:03:07.6076340Z cf5677a2124c: Pull complete
2024-04-15T15:03:07.6607862Z 4f4fb700ef54: Pull complete
2024-04-15T15:03:07.6761628Z bba57b63f4c4: Pull complete
2024-04-15T15:03:07.6926680Z 73c1996e5a38: Pull complete
2024-04-15T15:03:07.7014820Z 7bc3b06ad0b0: Pull complete
2024-04-15T15:03:07.7115896Z d26decd08c35: Pull complete
2024-04-15T15:03:07.7204618Z f4148fd26bdb: Pull complete
2024-04-15T15:03:07.7294630Z 1eb43504620c: Pull complete
2024-04-15T15:03:07.7434613Z 505451b2f71c: Pull complete
2024-04-15T15:03:07.7514936Z c43ce0aec2c7: Pull complete
2024-04-15T15:03:07.7606797Z 4eeee70cbe3c: Pull complete
2024-04-15T15:03:07.7701281Z ee73a74c0bc6: Pull complete
2024-04-15T15:03:07.7792230Z 061817fd933e: Pull complete
2024-04-15T15:03:07.7877486Z 8abfacdef22b: Pull complete
2024-04-15T15:03:07.8024502Z cbdad60f0a45: Pull complete
2024-04-15T15:03:07.8069403Z Digest: sha256:7be9bab5458a1d2b235d28f35718383221867b3b7e91a0d335d24dcf7d0b7ce1
2024-04-15T15:03:07.8075347Z Status: Downloaded newer image for danielflook/terraform-github-actions@sha256:7be9bab5458a1d2b235d28f35718383221867b3b7e91a0d335d24dcf7d0b7ce1
2024-04-15T15:03:07.8088336Z docker.io/danielflook/terraform-github-actions@sha256:7be9bab5458a1d2b235d28f35718383221867b3b7e91a0d335d24dcf7d0b7ce1
2024-04-15T15:03:07.8111063Z ##[endgroup]
2024-04-15T15:03:07.8121164Z ##[debug]Finishing: Pull danielflook/terraform-github-actions@sha256:7be9bab5458a1d2b235d28f35718383221867b3b7e91a0d335d24dcf7d0b7ce1
2024-04-15T15:03:07.8139385Z ##[debug]Evaluating condition for step: 'Checkout'
2024-04-15T15:03:07.8144316Z ##[debug]Evaluating: success()
2024-04-15T15:03:07.8145079Z ##[debug]Evaluating success:
2024-04-15T15:03:07.8145900Z ##[debug]=> true
2024-04-15T15:03:07.8146592Z ##[debug]Result: true
2024-04-15T15:03:07.8147585Z ##[debug]Starting: Checkout
2024-04-15T15:03:07.8257594Z ##[debug]Register post job cleanup for action: actions/checkout@v4
2024-04-15T15:03:07.8357940Z ##[debug]Loading inputs
2024-04-15T15:03:07.8363295Z ##[debug]Evaluating: github.repository
2024-04-15T15:03:07.8363935Z ##[debug]Evaluating Index:
2024-04-15T15:03:07.8364362Z ##[debug]..Evaluating github:
2024-04-15T15:03:07.8364821Z ##[debug]..=> Object
2024-04-15T15:03:07.8365339Z ##[debug]..Evaluating String:
2024-04-15T15:03:07.8365777Z ##[debug]..=> 'repository'
2024-04-15T15:03:07.8366410Z ##[debug]=> 'robmoss2k/test-ec2-instance'
2024-04-15T15:03:07.8366932Z ##[debug]Result: 'robmoss2k/test-ec2-instance'
2024-04-15T15:03:07.8370040Z ##[debug]Evaluating: github.token
2024-04-15T15:03:07.8370520Z ##[debug]Evaluating Index:
2024-04-15T15:03:07.8371049Z ##[debug]..Evaluating github:
2024-04-15T15:03:07.8371500Z ##[debug]..=> Object
2024-04-15T15:03:07.8371960Z ##[debug]..Evaluating String:
2024-04-15T15:03:07.8372385Z ##[debug]..=> 'token'
2024-04-15T15:03:07.8373174Z ##[debug]=> '***'
2024-04-15T15:03:07.8373811Z ##[debug]Result: '***'
2024-04-15T15:03:07.8387338Z ##[debug]Loading env
2024-04-15T15:03:07.8477528Z ##[group]Run actions/checkout@v4
2024-04-15T15:03:07.8478100Z with:
2024-04-15T15:03:07.8478500Z   repository: robmoss2k/test-ec2-instance
2024-04-15T15:03:07.8479177Z   token: ***
2024-04-15T15:03:07.8479685Z   ssh-strict: true
2024-04-15T15:03:07.8480347Z   persist-credentials: true
2024-04-15T15:03:07.8480758Z   clean: true
2024-04-15T15:03:07.8481209Z   sparse-checkout-cone-mode: true
2024-04-15T15:03:07.8481635Z   fetch-depth: 1
2024-04-15T15:03:07.8481961Z   fetch-tags: false
2024-04-15T15:03:07.8482403Z   show-progress: true
2024-04-15T15:03:07.8482760Z   lfs: false
2024-04-15T15:03:07.8483168Z   submodules: false
2024-04-15T15:03:07.8483529Z   set-safe-directory: true
2024-04-15T15:03:07.8483927Z env:
2024-04-15T15:03:07.8484399Z   AWS_ACCESS_KEY_ID: ***
2024-04-15T15:03:07.8484957Z   AWS_SECRET_ACCESS_KEY: ***
2024-04-15T15:03:07.8485332Z ##[endgroup]
2024-04-15T15:03:08.0755570Z ##[debug]GITHUB_WORKSPACE = '/home/runner/work/test-ec2-instance/test-ec2-instance'
2024-04-15T15:03:08.0758967Z ##[debug]qualified repository = 'robmoss2k/test-ec2-instance'
2024-04-15T15:03:08.0760253Z ##[debug]ref = 'refs/heads/main'
2024-04-15T15:03:08.0761541Z ##[debug]commit = 'f8848f42bc3384697fd69387dd94101aadbfb21c'
2024-04-15T15:03:08.0762684Z ##[debug]clean = true
2024-04-15T15:03:08.0763674Z ##[debug]filter = undefined
2024-04-15T15:03:08.0764633Z ##[debug]fetch depth = 1
2024-04-15T15:03:08.0765585Z ##[debug]fetch tags = false
2024-04-15T15:03:08.0766528Z ##[debug]show progress = true
2024-04-15T15:03:08.0767584Z ##[debug]lfs = false
2024-04-15T15:03:08.0768525Z ##[debug]submodules = false
2024-04-15T15:03:08.0769469Z ##[debug]recursive submodules = false
2024-04-15T15:03:08.0824430Z ##[debug]GitHub Host URL = 
2024-04-15T15:03:08.0826978Z ::add-matcher::/home/runner/work/_actions/actions/checkout/v4/dist/problem-matcher.json
2024-04-15T15:03:08.1002739Z ##[debug]Added matchers: 'checkout-git'. Problem matchers scan action output for known warning or error strings and report these inline.
2024-04-15T15:03:08.1015427Z Syncing repository: robmoss2k/test-ec2-instance
2024-04-15T15:03:08.1019019Z ::group::Getting Git version info
2024-04-15T15:03:08.1021922Z ##[group]Getting Git version info
2024-04-15T15:03:08.1023229Z Working directory is '/home/runner/work/test-ec2-instance/test-ec2-instance'
2024-04-15T15:03:08.1105585Z ##[debug]Getting git version
2024-04-15T15:03:08.1106211Z [command]/usr/bin/git version
2024-04-15T15:03:08.1187058Z git version 2.43.2
2024-04-15T15:03:08.1221391Z ##[debug]0
2024-04-15T15:03:08.1222971Z ##[debug]git version 2.43.2
2024-04-15T15:03:08.1223666Z ##[debug]
2024-04-15T15:03:08.1225122Z ##[debug]Set git useragent to: git/2.43.2 (github-actions-checkout)
2024-04-15T15:03:08.1226776Z ::endgroup::
2024-04-15T15:03:08.1227407Z ##[endgroup]
2024-04-15T15:03:08.1243691Z ::add-mask::***
2024-04-15T15:03:08.1265719Z Temporarily overriding HOME='/home/runner/work/_temp/97f16907-69d7-4696-8acb-36bd1026d659' before making global git config changes
2024-04-15T15:03:08.1267622Z Adding repository directory to the temporary git global config as a safe directory
2024-04-15T15:03:08.1269457Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/test-ec2-instance/test-ec2-instance
2024-04-15T15:03:08.1314171Z ##[debug]0
2024-04-15T15:03:08.1315317Z ##[debug]
2024-04-15T15:03:08.1316620Z Deleting the contents of '/home/runner/work/test-ec2-instance/test-ec2-instance'
2024-04-15T15:03:08.1331098Z ::group::Initializing the repository
2024-04-15T15:03:08.1331995Z ##[group]Initializing the repository
2024-04-15T15:03:08.1344957Z [command]/usr/bin/git init /home/runner/work/test-ec2-instance/test-ec2-instance
2024-04-15T15:03:08.1422002Z hint: Using 'master' as the name for the initial branch. This default branch name
2024-04-15T15:03:08.1427230Z hint: is subject to change. To configure the initial branch name to use in all
2024-04-15T15:03:08.1431870Z hint: of your new repositories, which will suppress this warning, call:
2024-04-15T15:03:08.1435955Z hint: 
2024-04-15T15:03:08.1440156Z hint: 	git config --global init.defaultBranch <name>
2024-04-15T15:03:08.1444094Z hint: 
2024-04-15T15:03:08.1448068Z hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
2024-04-15T15:03:08.1453321Z hint: 'development'. The just-created branch can be renamed via this command:
2024-04-15T15:03:08.1454913Z hint: 
2024-04-15T15:03:08.1455987Z hint: 	git branch -m <name>
2024-04-15T15:03:08.1468843Z Initialized empty Git repository in /home/runner/work/test-ec2-instance/test-ec2-instance/.git/
2024-04-15T15:03:08.1488070Z ##[debug]0
2024-04-15T15:03:08.1490004Z ##[debug]Initialized empty Git repository in /home/runner/work/test-ec2-instance/test-ec2-instance/.git/
2024-04-15T15:03:08.1491186Z ##[debug]
2024-04-15T15:03:08.1492393Z [command]/usr/bin/git remote add origin https://github.com/robmoss2k/test-ec2-instance
2024-04-15T15:03:08.1525517Z ##[debug]0
2024-04-15T15:03:08.1526649Z ##[debug]
2024-04-15T15:03:08.1531620Z ::endgroup::
2024-04-15T15:03:08.1532254Z ##[endgroup]
2024-04-15T15:03:08.1533261Z ::group::Disabling automatic garbage collection
2024-04-15T15:03:08.1534244Z ##[group]Disabling automatic garbage collection
2024-04-15T15:03:08.1535271Z [command]/usr/bin/git config --local gc.auto 0
2024-04-15T15:03:08.1575285Z ##[debug]0
2024-04-15T15:03:08.1576193Z ##[debug]
2024-04-15T15:03:08.1577164Z ::endgroup::
2024-04-15T15:03:08.1577684Z ##[endgroup]
2024-04-15T15:03:08.1578697Z ::group::Setting up auth
2024-04-15T15:03:08.1579346Z ##[group]Setting up auth
2024-04-15T15:03:08.1580475Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2024-04-15T15:03:08.1608063Z ##[debug]1
2024-04-15T15:03:08.1608947Z ##[debug]
2024-04-15T15:03:08.1611320Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-04-15T15:03:08.1956463Z ##[debug]0
2024-04-15T15:03:08.1958149Z ##[debug]
2024-04-15T15:03:08.1964572Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2024-04-15T15:03:08.1993066Z ##[debug]1
2024-04-15T15:03:08.1994381Z ##[debug]
2024-04-15T15:03:08.1998658Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-04-15T15:03:08.2245278Z ##[debug]0
2024-04-15T15:03:08.2246770Z ##[debug]
2024-04-15T15:03:08.2256166Z [command]/usr/bin/git config --local http.https://github.com/.extraheader AUTHORIZATION: basic ***
2024-04-15T15:03:08.2286160Z ##[debug]0
2024-04-15T15:03:08.2288366Z ##[debug]
2024-04-15T15:03:08.2318135Z ::endgroup::
2024-04-15T15:03:08.2318943Z ##[endgroup]
2024-04-15T15:03:08.2319871Z ::group::Fetching the repository
2024-04-15T15:03:08.2320657Z ##[group]Fetching the repository
2024-04-15T15:03:08.2340746Z [command]/usr/bin/git -c protocol.version=2 fetch --no-tags --prune --no-recurse-submodules --depth=1 origin +f8848f42bc3384697fd69387dd94101aadbfb21c:refs/remotes/origin/main
2024-04-15T15:03:08.6302121Z From https://github.com/robmoss2k/test-ec2-instance
2024-04-15T15:03:08.6304296Z  * [new ref]         f8848f42bc3384697fd69387dd94101aadbfb21c -> origin/main
2024-04-15T15:03:08.6338034Z ##[debug]0
2024-04-15T15:03:08.6339681Z ##[debug]
2024-04-15T15:03:08.6341217Z ::endgroup::
2024-04-15T15:03:08.6341749Z ##[endgroup]
2024-04-15T15:03:08.6343197Z ::group::Determining the checkout info
2024-04-15T15:03:08.6343977Z ##[group]Determining the checkout info
2024-04-15T15:03:08.6345423Z ::endgroup::
2024-04-15T15:03:08.6345925Z ##[endgroup]
2024-04-15T15:03:08.6347205Z ::group::Checking out the ref
2024-04-15T15:03:08.6347849Z ##[group]Checking out the ref
2024-04-15T15:03:08.6349303Z [command]/usr/bin/git checkout --progress --force -B main refs/remotes/origin/main
2024-04-15T15:03:08.6460707Z Switched to a new branch 'main'
2024-04-15T15:03:08.6463789Z branch 'main' set up to track 'origin/main'.
2024-04-15T15:03:08.6466436Z ##[debug]0
2024-04-15T15:03:08.6468126Z ##[debug]branch 'main' set up to track 'origin/main'.
2024-04-15T15:03:08.6468922Z ##[debug]
2024-04-15T15:03:08.6470290Z ::endgroup::
2024-04-15T15:03:08.6470827Z ##[endgroup]
2024-04-15T15:03:08.6505532Z ##[debug]0
2024-04-15T15:03:08.6510691Z ##[debug]commit f8848f42bc3384697fd69387dd94101aadbfb21c
2024-04-15T15:03:08.6511910Z ##[debug]Author: robmoss2k <15984835+robmoss2k@users.noreply.github.com>
2024-04-15T15:03:08.6512906Z ##[debug]Date:   Mon Apr 15 11:39:21 2024 +0100
2024-04-15T15:03:08.6513669Z ##[debug]
2024-04-15T15:03:08.6514359Z ##[debug]    Update providers
2024-04-15T15:03:08.6514983Z ##[debug]
2024-04-15T15:03:08.6524146Z [command]/usr/bin/git log -1 --format='%H'
2024-04-15T15:03:08.6563599Z 'f8848f42bc3384697fd69387dd94101aadbfb21c'
2024-04-15T15:03:08.6569214Z ##[debug]0
2024-04-15T15:03:08.6571301Z ##[debug]'f8848f42bc3384697fd69387dd94101aadbfb21c'
2024-04-15T15:03:08.6571995Z ##[debug]
2024-04-15T15:03:08.6575758Z ##[debug]Unsetting HOME override
2024-04-15T15:03:08.6588342Z ::remove-matcher owner=checkout-git::
2024-04-15T15:03:08.6612406Z ##[debug]Removed matchers: 'checkout-git'
2024-04-15T15:03:08.6801681Z ##[debug]Node Action run completed with exit code 0
2024-04-15T15:03:08.6916762Z ##[debug]Save intra-action state isPost = true
2024-04-15T15:03:08.6917580Z ##[debug]Save intra-action state setSafeDirectory = true
2024-04-15T15:03:08.6918378Z ##[debug]Save intra-action state repositoryPath = /home/runner/work/test-ec2-instance/test-ec2-instance
2024-04-15T15:03:08.6924019Z ##[debug]Finishing: Checkout
2024-04-15T15:03:08.6934514Z ##[debug]Evaluating condition for step: 'Destroy resources'
2024-04-15T15:03:08.6936672Z ##[debug]Evaluating: success()
2024-04-15T15:03:08.6937283Z ##[debug]Evaluating success:
2024-04-15T15:03:08.6938020Z ##[debug]=> true
2024-04-15T15:03:08.6938644Z ##[debug]Result: true
2024-04-15T15:03:08.6939612Z ##[debug]Starting: Destroy resources
2024-04-15T15:03:08.6971075Z ##[debug]Loading inputs
2024-04-15T15:03:08.6979578Z ##[debug]Evaluating: format('github_token = "{0}"', secrets.TOKEN)
2024-04-15T15:03:08.6980152Z ##[debug]Evaluating format:
2024-04-15T15:03:08.6994762Z ##[debug]..Evaluating String:
2024-04-15T15:03:08.6995256Z ##[debug]..=> 'github_token = "{0}"'
2024-04-15T15:03:08.7019177Z ##[debug]..Evaluating Index:
2024-04-15T15:03:08.7019656Z ##[debug]....Evaluating secrets:
2024-04-15T15:03:08.7020110Z ##[debug]....=> Object
2024-04-15T15:03:08.7020554Z ##[debug]....Evaluating String:
2024-04-15T15:03:08.7020986Z ##[debug]....=> 'TOKEN'
2024-04-15T15:03:08.7021835Z ##[debug]..=> '***'
2024-04-15T15:03:08.7023448Z ##[debug]=> 'github_token = "***"'
2024-04-15T15:03:08.7024152Z ##[debug]Result: 'github_token = "***"'
2024-04-15T15:03:08.7034694Z ##[debug]Loading env
2024-04-15T15:03:08.7043875Z ##[group]Run dflook/terraform-destroy@v1
2024-04-15T15:03:08.7044333Z with:
2024-04-15T15:03:08.7044915Z   variables: github_token = "***"
2024-04-15T15:03:08.7045374Z   path: .
2024-04-15T15:03:08.7045703Z   workspace: default
2024-04-15T15:03:08.7046081Z   parallelism: 0
2024-04-15T15:03:08.7046471Z env:
2024-04-15T15:03:08.7046857Z   AWS_ACCESS_KEY_ID: ***
2024-04-15T15:03:08.7047383Z   AWS_SECRET_ACCESS_KEY: ***
2024-04-15T15:03:08.7047827Z ##[endgroup]
2024-04-15T15:03:08.7261244Z ##[command]/usr/bin/docker run --name danielflookterraformgithubactionssha2567be9bab5458a1d2b235d28f35718383221867b3b7e91a0d335d24dcf7d0b7ce1_5daf27 --label 023a7d --workdir /github/workspace --rm -e "AWS_ACCESS_KEY_ID" -e "AWS_SECRET_ACCESS_KEY" -e "INPUT_VARIABLES" -e "INPUT_PATH" -e "INPUT_WORKSPACE" -e "INPUT_BACKEND_CONFIG" -e "INPUT_BACKEND_CONFIG_FILE" -e "INPUT_VAR" -e "INPUT_VAR_FILE" -e "INPUT_PARALLELISM" -e "HOME" -e "GITHUB_JOB" -e "GITHUB_REF" -e "GITHUB_SHA" -e "GITHUB_REPOSITORY" -e "GITHUB_REPOSITORY_OWNER" -e "GITHUB_REPOSITORY_OWNER_ID" -e "GITHUB_RUN_ID" -e "GITHUB_RUN_NUMBER" -e "GITHUB_RETENTION_DAYS" -e "GITHUB_RUN_ATTEMPT" -e "GITHUB_REPOSITORY_ID" -e "GITHUB_ACTOR_ID" -e "GITHUB_ACTOR" -e "GITHUB_TRIGGERING_ACTOR" -e "GITHUB_WORKFLOW" -e "GITHUB_HEAD_REF" -e "GITHUB_BASE_REF" -e "GITHUB_EVENT_NAME" -e "GITHUB_SERVER_URL" -e "GITHUB_API_URL" -e "GITHUB_GRAPHQL_URL" -e "GITHUB_REF_NAME" -e "GITHUB_REF_PROTECTED" -e "GITHUB_REF_TYPE" -e "GITHUB_WORKFLOW_REF" -e "GITHUB_WORKFLOW_SHA" -e "GITHUB_WORKSPACE" -e "GITHUB_ACTION" -e "GITHUB_EVENT_PATH" -e "GITHUB_ACTION_REPOSITORY" -e "GITHUB_ACTION_REF" -e "GITHUB_PATH" -e "GITHUB_ENV" -e "GITHUB_STEP_SUMMARY" -e "GITHUB_STATE" -e "GITHUB_OUTPUT" -e "RUNNER_DEBUG" -e "RUNNER_OS" -e "RUNNER_ARCH" -e "RUNNER_NAME" -e "RUNNER_ENVIRONMENT" -e "RUNNER_TOOL_CACHE" -e "RUNNER_TEMP" -e "RUNNER_WORKSPACE" -e "ACTIONS_RUNTIME_URL" -e "ACTIONS_RUNTIME_TOKEN" -e "ACTIONS_CACHE_URL" -e "ACTIONS_RESULTS_URL" -e GITHUB_ACTIONS=true -e CI=true --entrypoint "/entrypoints/destroy.sh" -v "/var/run/docker.sock":"/var/run/docker.sock" -v "/home/runner/work/_temp/_github_home":"/github/home" -v "/home/runner/work/_temp/_github_workflow":"/github/workflow" -v "/home/runner/work/_temp/_runner_file_commands":"/github/file_commands" -v "/home/runner/work/test-ec2-instance/test-ec2-instance":"/github/workspace" danielflook/terraform-github-actions@sha256:7be9bab5458a1d2b235d28f35718383221867b3b7e91a0d335d24dcf7d0b7ce1
2024-04-15T15:03:09.0363316Z ##[debug]pwd:/github/workspace
2024-04-15T15:03:09.0377897Z ##[debug]printenv:GITHUB_WORKSPACE=/github/workspace
2024-04-15T15:03:09.0379543Z ##[debug]printenv:INPUT_BACKEND_CONFIG_FILE=
2024-04-15T15:03:09.0380947Z ##[debug]printenv:CHECKPOINT_DISABLE=true
2024-04-15T15:03:09.0386227Z ##[debug]printenv:HOSTNAME=2706f65ad5e2
2024-04-15T15:03:09.0387686Z ##[debug]printenv:TF_IN_AUTOMATION=true
2024-04-15T15:03:09.0389769Z ##[debug]printenv:GITHUB_PATH=/github/file_commands/add_path_59daf6e3-c166-4f39-bb9a-d4cb1610e3ce
2024-04-15T15:03:09.0391568Z ##[debug]printenv:GITHUB_ACTION=__dflook_terraform-destroy
2024-04-15T15:03:09.0392758Z ##[debug]printenv:INPUT_VAR_FILE=
2024-04-15T15:03:09.0393925Z ##[debug]printenv:GITHUB_RUN_NUMBER=75
2024-04-15T15:03:09.0395076Z ##[debug]printenv:RUNNER_NAME=GitHub Actions 38
2024-04-15T15:03:09.0396404Z ##[debug]printenv:GITHUB_REPOSITORY_OWNER_ID=15984835
2024-04-15T15:03:09.0397526Z ##[debug]printenv:RUNNER_DEBUG=1
2024-04-15T15:03:09.0398738Z ##[debug]printenv:GITHUB_TRIGGERING_ACTOR=robmoss2k
2024-04-15T15:03:09.0399924Z ##[debug]printenv:GITHUB_REF_TYPE=branch
2024-04-15T15:03:09.0401392Z ##[debug]printenv:WORKSPACE_TMP_DIR=.dflook-terraform-github-actions/emfocoot
2024-04-15T15:03:09.0403617Z ##[debug]printenv:ACTIONS_CACHE_URL=https://acghubeus1.actions.githubusercontent.com/TZxqzvxPiFGgy7fgzbhIgpaBgav4SbBZES4tbyWIvSCFEqp7nW/
2024-04-15T15:03:09.0411050Z ##[debug]printenv:***
2024-04-15T15:03:09.0412236Z ##[debug]printenv:GITHUB_REPOSITORY_ID=699913591
2024-04-15T15:03:09.0413382Z ##[debug]printenv:GITHUB_ACTIONS=true
2024-04-15T15:03:09.0414588Z ##[debug]printenv:INPUT_PATH=.
2024-04-15T15:03:09.0415851Z ##[debug]printenv:GITHUB_SHA=f8848f42bc3384697fd69387dd94101aadbfb21c
2024-04-15T15:03:09.0418007Z ##[debug]printenv:GITHUB_WORKFLOW_REF=robmoss2k/test-ec2-instance/.github/workflows/terraform.yml@refs/heads/main
2024-04-15T15:03:09.0419617Z ##[debug]printenv:INPUT_VAR=
2024-04-15T15:03:09.0420953Z ##[debug]printenv:RUNNER_ENVIRONMENT=github-hosted
2024-04-15T15:03:09.0422410Z ##[debug]printenv:TF_PLUGIN_CACHE_DIR=/usr/local/share/terraform/plugin-cache
2024-04-15T15:03:09.0423913Z ##[debug]printenv:GITHUB_REF=refs/heads/main
2024-04-15T15:03:09.0425630Z ##[debug]printenv:INPUT_BACKEND_CONFIG=
2024-04-15T15:03:09.0426991Z ##[debug]printenv:RUNNER_OS=Linux
2024-04-15T15:03:09.0428613Z ##[debug]printenv:GITHUB_REF_PROTECTED=false
2024-04-15T15:03:09.0429797Z ##[debug]printenv:HOME=/github/home
2024-04-15T15:03:09.0431113Z ##[debug]printenv:GITHUB_API_URL=https://api.github.com
2024-04-15T15:03:09.0432283Z ##[debug]printenv:RUNNER_ARCH=X64
2024-04-15T15:03:09.0433505Z ##[debug]printenv:RUNNER_TEMP=/home/runner/work/_temp
2024-04-15T15:03:09.0435616Z ##[debug]printenv:ACTIONS_RUNTIME_URL=https://pipelinesghubeus5.actions.githubusercontent.com/TZxqzvxPiFGgy7fgzbhIgpaBgav4SbBZES4tbyWIvSCFEqp7nW/
2024-04-15T15:03:09.0437767Z ##[debug]printenv:INPUT_PARALLELISM=0
2024-04-15T15:03:09.0439567Z ##[debug]printenv:GITHUB_STATE=/github/file_commands/save_state_59daf6e3-c166-4f39-bb9a-d4cb1610e3ce
2024-04-15T15:03:09.0441875Z ##[debug]printenv:AWS_SECRET_ACCESS_KEY=***
2024-04-15T15:03:09.0443607Z ##[debug]printenv:GITHUB_ENV=/github/file_commands/set_env_59daf6e3-c166-4f39-bb9a-d4cb1610e3ce
2024-04-15T15:03:09.0445324Z ##[debug]printenv:GITHUB_EVENT_PATH=/github/workflow/event.json
2024-04-15T15:03:09.0446737Z ##[debug]printenv:GITHUB_EVENT_NAME=push
2024-04-15T15:03:09.0447872Z ##[debug]printenv:GITHUB_RUN_ID=8687706916
2024-04-15T15:03:09.0449600Z ##[debug]printenv:INPUT_VARIABLES=github_token = "***"
2024-04-15T15:03:09.0451673Z ##[debug]printenv:GITHUB_STEP_SUMMARY=/github/file_commands/step_summary_59daf6e3-c166-4f39-bb9a-d4cb1610e3ce
2024-04-15T15:03:09.0453468Z ##[debug]printenv:GITHUB_ACTOR=robmoss2k
2024-04-15T15:03:09.0454550Z ##[debug]printenv:GITHUB_RUN_ATTEMPT=3
2024-04-15T15:03:09.0456119Z ##[debug]printenv:TFMASK_RESOURCES_REGEX=(?i)^(random_id|kubernetes_secret|acme_certificate).*$
2024-04-15T15:03:09.0458360Z ##[debug]printenv:ACTIONS_RESULTS_URL=https://results-receiver.actions.githubusercontent.com/
2024-04-15T15:03:09.0460185Z ##[debug]printenv:GITHUB_GRAPHQL_URL=https://api.github.com/graphql
2024-04-15T15:03:09.0461632Z ##[debug]printenv:STEP_TMP_DIR=/tmp
2024-04-15T15:03:09.0549031Z ##[debug]printenv:ACTIONS_RUNTIME_TOKEN=***
2024-04-15T15:03:09.0551130Z ##[debug]printenv:GITHUB_SERVER_URL=https://github.com
2024-04-15T15:03:09.0552529Z ##[debug]printenv:SHLVL=0
2024-04-15T15:03:09.0554022Z ##[debug]printenv:AWS_ACCESS_KEY_ID=***
2024-04-15T15:03:09.0555348Z ##[debug]printenv:GITHUB_ACTOR_ID=15984835
2024-04-15T15:03:09.0556758Z ##[debug]printenv:RUNNER_TOOL_CACHE=/opt/hostedtoolcache
2024-04-15T15:03:09.0558524Z ##[debug]printenv:GITHUB_WORKFLOW_SHA=f8848f42bc3384697fd69387dd94101aadbfb21c
2024-04-15T15:03:09.0560040Z ##[debug]printenv:GITHUB_REF_NAME=main
2024-04-15T15:03:09.0561389Z ##[debug]printenv:TF_INPUT=false
2024-04-15T15:03:09.0562521Z ##[debug]printenv:GITHUB_JOB=terraform_destroy
2024-04-15T15:03:09.0563946Z ##[debug]printenv:INPUT_WORKSPACE=default
2024-04-15T15:03:09.0565513Z ##[debug]printenv:GITHUB_REPOSITORY=robmoss2k/test-ec2-instance
2024-04-15T15:03:09.0566986Z ##[debug]printenv:GITHUB_RETENTION_DAYS=90
2024-04-15T15:03:09.0568560Z ##[debug]printenv:RUNNER_WORKSPACE=/home/runner/work/test-ec2-instance
2024-04-15T15:03:09.0571033Z ##[debug]printenv:GITHUB_ACTION_REPOSITORY=dflook/terraform-destroy
2024-04-15T15:03:09.0572873Z ##[debug]printenv:PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
2024-04-15T15:03:09.0574594Z ##[debug]printenv:GITHUB_BASE_REF=
2024-04-15T15:03:09.0575796Z ##[debug]printenv:CI=true
2024-04-15T15:03:09.0576867Z ##[debug]printenv:GITHUB_REPOSITORY_OWNER=robmoss2k
2024-04-15T15:03:09.0578266Z ##[debug]printenv:GITHUB_HEAD_REF=
2024-04-15T15:03:09.0579345Z ##[debug]printenv:GITHUB_ACTION_REF=v1
2024-04-15T15:03:09.0580954Z ##[debug]printenv:JOB_TMP_DIR=/github/home/.dflook-terraform-github-actions
2024-04-15T15:03:09.0582533Z ##[debug]printenv:GITHUB_WORKFLOW=Destroy resources
2024-04-15T15:03:09.0584371Z ##[debug]printenv:GITHUB_OUTPUT=/github/file_commands/set_output_59daf6e3-c166-4f39-bb9a-d4cb1610e3ce
2024-04-15T15:03:09.0585946Z ##[debug]printenv:_=/usr/bin/printenv
2024-04-15T15:03:09.0587226Z ##[debug]tree:/github/home
2024-04-15T15:03:09.0588298Z ##[debug]tree: 4.0K used in 0 directories, 0 files
2024-04-15T15:03:09.0589644Z ##[debug]/github/workflow/event.json:{
2024-04-15T15:03:09.0591300Z ##[debug]/github/workflow/event.json:  "after": "f8848f42bc3384697fd69387dd94101aadbfb21c",
2024-04-15T15:03:09.0592904Z ##[debug]/github/workflow/event.json:  "base_ref": null,
2024-04-15T15:03:09.0594721Z ##[debug]/github/workflow/event.json:  "before": "1d45c36dfe45e7a6f3dcfe481b4ab1178e4c7647",
2024-04-15T15:03:09.0596413Z ##[debug]/github/workflow/event.json:  "commits": [
2024-04-15T15:03:09.0597779Z ##[debug]/github/workflow/event.json:    {
2024-04-15T15:03:09.0599022Z ##[debug]/github/workflow/event.json:      "author": {
2024-04-15T15:03:09.0600904Z ##[debug]/github/workflow/event.json:        "email": "15984835+robmoss2k@users.noreply.github.com",
2024-04-15T15:03:09.0602996Z ##[debug]/github/workflow/event.json:        "name": "robmoss2k",
2024-04-15T15:03:09.0604656Z ##[debug]/github/workflow/event.json:        "username": "robmoss2k"
2024-04-15T15:03:09.0606183Z ##[debug]/github/workflow/event.json:      },
2024-04-15T15:03:09.0607668Z ##[debug]/github/workflow/event.json:      "committer": {
2024-04-15T15:03:09.0609310Z ##[debug]/github/workflow/event.json:        "email": "15984835+robmoss2k@users.noreply.github.com",
2024-04-15T15:03:09.0611709Z ##[debug]/github/workflow/event.json:        "name": "robmoss2k",
2024-04-15T15:03:09.0613368Z ##[debug]/github/workflow/event.json:        "username": "robmoss2k"
2024-04-15T15:03:09.0614764Z ##[debug]/github/workflow/event.json:      },
2024-04-15T15:03:09.0616213Z ##[debug]/github/workflow/event.json:      "distinct": true,
2024-04-15T15:03:09.0617903Z ##[debug]/github/workflow/event.json:      "id": "f8848f42bc3384697fd69387dd94101aadbfb21c",
2024-04-15T15:03:09.0619831Z ##[debug]/github/workflow/event.json:      "message": "Update providers",
2024-04-15T15:03:09.0621680Z ##[debug]/github/workflow/event.json:      "timestamp": "2024-04-15T11:39:21+01:00",
2024-04-15T15:03:09.0623695Z ##[debug]/github/workflow/event.json:      "tree_id": "5eae013ab15bf1aa2ec02a31262d3affd5aaa39a",
2024-04-15T15:03:09.0626467Z ##[debug]/github/workflow/event.json:      "url": "https://github.com/robmoss2k/test-ec2-instance/commit/f8848f42bc3384697fd69387dd94101aadbfb21c"
2024-04-15T15:03:09.0628600Z ##[debug]/github/workflow/event.json:    }
2024-04-15T15:03:09.0629775Z ##[debug]/github/workflow/event.json:  ],
2024-04-15T15:03:09.0631922Z ##[debug]/github/workflow/event.json:  "compare": "https://github.com/robmoss2k/test-ec2-instance/compare/1d45c36dfe45...f8848f42bc33",
2024-04-15T15:03:09.0634092Z ##[debug]/github/workflow/event.json:  "created": false,
2024-04-15T15:03:09.0635412Z ##[debug]/github/workflow/event.json:  "deleted": false,
2024-04-15T15:03:09.0636929Z ##[debug]/github/workflow/event.json:  "forced": false,
2024-04-15T15:03:09.0638401Z ##[debug]/github/workflow/event.json:  "head_commit": {
2024-04-15T15:03:09.0639929Z ##[debug]/github/workflow/event.json:    "author": {
2024-04-15T15:03:09.0641606Z ##[debug]/github/workflow/event.json:      "email": "15984835+robmoss2k@users.noreply.github.com",
2024-04-15T15:03:09.0643583Z ##[debug]/github/workflow/event.json:      "name": "robmoss2k",
2024-04-15T15:03:09.0645064Z ##[debug]/github/workflow/event.json:      "username": "robmoss2k"
2024-04-15T15:03:09.0646549Z ##[debug]/github/workflow/event.json:    },
2024-04-15T15:03:09.0647854Z ##[debug]/github/workflow/event.json:    "committer": {
2024-04-15T15:03:09.0650020Z ##[debug]/github/workflow/event.json:      "email": "15984835+robmoss2k@users.noreply.github.com",
2024-04-15T15:03:09.0651775Z ##[debug]/github/workflow/event.json:      "name": "robmoss2k",
2024-04-15T15:03:09.0653384Z ##[debug]/github/workflow/event.json:      "username": "robmoss2k"
2024-04-15T15:03:09.0654825Z ##[debug]/github/workflow/event.json:    },
2024-04-15T15:03:09.0656103Z ##[debug]/github/workflow/event.json:    "distinct": true,
2024-04-15T15:03:09.0657799Z ##[debug]/github/workflow/event.json:    "id": "f8848f42bc3384697fd69387dd94101aadbfb21c",
2024-04-15T15:03:09.0659644Z ##[debug]/github/workflow/event.json:    "message": "Update providers",
2024-04-15T15:03:09.0661622Z ##[debug]/github/workflow/event.json:    "timestamp": "2024-04-15T11:39:21+01:00",
2024-04-15T15:03:09.0663564Z ##[debug]/github/workflow/event.json:    "tree_id": "5eae013ab15bf1aa2ec02a31262d3affd5aaa39a",
2024-04-15T15:03:09.0666234Z ##[debug]/github/workflow/event.json:    "url": "https://github.com/robmoss2k/test-ec2-instance/commit/f8848f42bc3384697fd69387dd94101aadbfb21c"
2024-04-15T15:03:09.0668243Z ##[debug]/github/workflow/event.json:  },
2024-04-15T15:03:09.0669699Z ##[debug]/github/workflow/event.json:  "pusher": {
2024-04-15T15:03:09.0671313Z ##[debug]/github/workflow/event.json:    "email": "15984835+robmoss2k@users.noreply.github.com",
2024-04-15T15:03:09.0673581Z ##[debug]/github/workflow/event.json:    "name": "robmoss2k"
2024-04-15T15:03:09.0674994Z ##[debug]/github/workflow/event.json:  },
2024-04-15T15:03:09.0676267Z ##[debug]/github/workflow/event.json:  "ref": "refs/heads/main",
2024-04-15T15:03:09.0677864Z ##[debug]/github/workflow/event.json:  "repository": {
2024-04-15T15:03:09.0679349Z ##[debug]/github/workflow/event.json:    "allow_forking": true,
2024-04-15T15:03:09.0681762Z ##[debug]/github/workflow/event.json:    "archive_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/{archive_format}{/ref}",
2024-04-15T15:03:09.0683843Z ##[debug]/github/workflow/event.json:    "archived": false,
2024-04-15T15:03:09.0686110Z ##[debug]/github/workflow/event.json:    "assignees_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/assignees{/user}",
2024-04-15T15:03:09.0688807Z ##[debug]/github/workflow/event.json:    "blobs_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/git/blobs{/sha}",
2024-04-15T15:03:09.0692046Z ##[debug]/github/workflow/event.json:    "branches_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/branches{/branch}",
2024-04-15T15:03:09.0694771Z ##[debug]/github/workflow/event.json:    "clone_url": "https://github.com/robmoss2k/test-ec2-instance.git",
2024-04-15T15:03:09.0697719Z ##[debug]/github/workflow/event.json:    "collaborators_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/collaborators{/collaborator}",
2024-04-15T15:03:09.0700812Z ##[debug]/github/workflow/event.json:    "comments_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/comments{/number}",
2024-04-15T15:03:09.0703550Z ##[debug]/github/workflow/event.json:    "commits_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/commits{/sha}",
2024-04-15T15:03:09.0706453Z ##[debug]/github/workflow/event.json:    "compare_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/compare/{base}...{head}",
2024-04-15T15:03:09.0709163Z ##[debug]/github/workflow/event.json:    "contents_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/contents/{+path}",
2024-04-15T15:03:09.0712028Z ##[debug]/github/workflow/event.json:    "contributors_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/contributors",
2024-04-15T15:03:09.0714120Z ##[debug]/github/workflow/event.json:    "created_at": 1696346867,
2024-04-15T15:03:09.0715836Z ##[debug]/github/workflow/event.json:    "default_branch": "main",
2024-04-15T15:03:09.0718070Z ##[debug]/github/workflow/event.json:    "deployments_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/deployments",
2024-04-15T15:03:09.0720451Z ##[debug]/github/workflow/event.json:    "description": "Test EC2 Instance",
2024-04-15T15:03:09.0722581Z ##[debug]/github/workflow/event.json:    "disabled": false,
2024-04-15T15:03:09.0724586Z ##[debug]/github/workflow/event.json:    "downloads_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/downloads",
2024-04-15T15:03:09.0727261Z ##[debug]/github/workflow/event.json:    "events_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/events",
2024-04-15T15:03:09.0729174Z ##[debug]/github/workflow/event.json:    "fork": false,
2024-04-15T15:03:09.0731065Z ##[debug]/github/workflow/event.json:    "forks": 0,
2024-04-15T15:03:09.0732392Z ##[debug]/github/workflow/event.json:    "forks_count": 0,
2024-04-15T15:03:09.0734456Z ##[debug]/github/workflow/event.json:    "forks_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/forks",
2024-04-15T15:03:09.0736649Z ##[debug]/github/workflow/event.json:    "full_name": "robmoss2k/test-ec2-instance",
2024-04-15T15:03:09.0739078Z ##[debug]/github/workflow/event.json:    "git_commits_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/git/commits{/sha}",
2024-04-15T15:03:09.0741768Z ##[debug]/github/workflow/event.json:    "git_refs_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/git/refs{/sha}",
2024-04-15T15:03:09.0757865Z ##[debug]/github/workflow/event.json:    "git_tags_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/git/tags{/sha}",
2024-04-15T15:03:09.0760615Z ##[debug]/github/workflow/event.json:    "git_url": "git://github.com/robmoss2k/test-ec2-instance.git",
2024-04-15T15:03:09.0762483Z ##[debug]/github/workflow/event.json:    "has_discussions": false,
2024-04-15T15:03:09.0764067Z ##[debug]/github/workflow/event.json:    "has_downloads": true,
2024-04-15T15:03:09.0765677Z ##[debug]/github/workflow/event.json:    "has_issues": true,
2024-04-15T15:03:09.0767108Z ##[debug]/github/workflow/event.json:    "has_pages": false,
2024-04-15T15:03:09.0768809Z ##[debug]/github/workflow/event.json:    "has_projects": true,
2024-04-15T15:03:09.0770632Z ##[debug]/github/workflow/event.json:    "has_wiki": true,
2024-04-15T15:03:09.0772238Z ##[debug]/github/workflow/event.json:    "homepage": "",
2024-04-15T15:03:09.0774410Z ##[debug]/github/workflow/event.json:    "hooks_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/hooks",
2024-04-15T15:03:09.0776729Z ##[debug]/github/workflow/event.json:    "html_url": "https://github.com/robmoss2k/test-ec2-instance",
2024-04-15T15:03:09.0778599Z ##[debug]/github/workflow/event.json:    "id": 699913591,
2024-04-15T15:03:09.0780015Z ##[debug]/github/workflow/event.json:    "is_template": false,
2024-04-15T15:03:09.0782662Z ##[debug]/github/workflow/event.json:    "issue_comment_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/issues/comments{/number}",
2024-04-15T15:03:09.0785593Z ##[debug]/github/workflow/event.json:    "issue_events_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/issues/events{/number}",
2024-04-15T15:03:09.0788481Z ##[debug]/github/workflow/event.json:    "issues_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/issues{/number}",
2024-04-15T15:03:09.0791084Z ##[debug]/github/workflow/event.json:    "keys_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/keys{/key_id}",
2024-04-15T15:03:09.0793868Z ##[debug]/github/workflow/event.json:    "labels_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/labels{/name}",
2024-04-15T15:03:09.0795877Z ##[debug]/github/workflow/event.json:    "language": "HCL",
2024-04-15T15:03:09.0798062Z ##[debug]/github/workflow/event.json:    "languages_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/languages",
2024-04-15T15:03:09.0800179Z ##[debug]/github/workflow/event.json:    "license": {
2024-04-15T15:03:09.0801735Z ##[debug]/github/workflow/event.json:      "key": "apache-2.0",
2024-04-15T15:03:09.0803360Z ##[debug]/github/workflow/event.json:      "name": "Apache License 2.0",
2024-04-15T15:03:09.0804941Z ##[debug]/github/workflow/event.json:      "node_id": "MDc6TGljZW5zZTI=",
2024-04-15T15:03:09.0806682Z ##[debug]/github/workflow/event.json:      "spdx_id": "Apache-2.0",
2024-04-15T15:03:09.0808520Z ##[debug]/github/workflow/event.json:      "url": "https://api.github.com/licenses/apache-2.0"
2024-04-15T15:03:09.0810667Z ##[debug]/github/workflow/event.json:    },
2024-04-15T15:03:09.0812045Z ##[debug]/github/workflow/event.json:    "master_branch": "main",
2024-04-15T15:03:09.0814206Z ##[debug]/github/workflow/event.json:    "merges_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/merges",
2024-04-15T15:03:09.0816788Z ##[debug]/github/workflow/event.json:    "milestones_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/milestones{/number}",
2024-04-15T15:03:09.0819068Z ##[debug]/github/workflow/event.json:    "mirror_url": null,
2024-04-15T15:03:09.0820806Z ##[debug]/github/workflow/event.json:    "name": "test-ec2-instance",
2024-04-15T15:03:09.0822362Z ##[debug]/github/workflow/event.json:    "node_id": "R_kgDOKbfVdw",
2024-04-15T15:03:09.0824918Z ##[debug]/github/workflow/event.json:    "notifications_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/notifications{?since,all,participating}",
2024-04-15T15:03:09.0827162Z ##[debug]/github/workflow/event.json:    "open_issues": 0,
2024-04-15T15:03:09.0828816Z ##[debug]/github/workflow/event.json:    "open_issues_count": 0,
2024-04-15T15:03:09.0830587Z ##[debug]/github/workflow/event.json:    "owner": {
2024-04-15T15:03:09.0832570Z ##[debug]/github/workflow/event.json:      "avatar_url": "https://avatars.githubusercontent.com/u/15984835?v=4",
2024-04-15T15:03:09.0834641Z ##[debug]/github/workflow/event.json:      "email": "15984835+robmoss2k@users.noreply.github.com",
2024-04-15T15:03:09.0836928Z ##[debug]/github/workflow/event.json:      "events_url": "https://api.github.com/users/robmoss2k/events{/privacy}",
2024-04-15T15:03:09.0839164Z ##[debug]/github/workflow/event.json:      "followers_url": "https://api.github.com/users/robmoss2k/followers",
2024-04-15T15:03:09.0841600Z ##[debug]/github/workflow/event.json:      "following_url": "https://api.github.com/users/robmoss2k/following{/other_user}",
2024-04-15T15:03:09.0844091Z ##[debug]/github/workflow/event.json:      "gists_url": "https://api.github.com/users/robmoss2k/gists{/gist_id}",
2024-04-15T15:03:09.0845952Z ##[debug]/github/workflow/event.json:      "gravatar_id": "",
2024-04-15T15:03:09.0847692Z ##[debug]/github/workflow/event.json:      "html_url": "https://github.com/robmoss2k",
2024-04-15T15:03:09.0849399Z ##[debug]/github/workflow/event.json:      "id": 15984835,
2024-04-15T15:03:09.0851857Z ##[debug]/github/workflow/event.json:      "login": "robmoss2k",
2024-04-15T15:03:09.0853449Z ##[debug]/github/workflow/event.json:      "name": "robmoss2k",
2024-04-15T15:03:09.0855208Z ##[debug]/github/workflow/event.json:      "node_id": "MDQ6VXNlcjE1OTg0ODM1",
2024-04-15T15:03:09.0857192Z ##[debug]/github/workflow/event.json:      "organizations_url": "https://api.github.com/users/robmoss2k/orgs",
2024-04-15T15:03:09.0859797Z ##[debug]/github/workflow/event.json:      "received_events_url": "https://api.github.com/users/robmoss2k/received_events",
2024-04-15T15:03:09.0862027Z ##[debug]/github/workflow/event.json:      "repos_url": "https://api.github.com/users/robmoss2k/repos",
2024-04-15T15:03:09.0863924Z ##[debug]/github/workflow/event.json:      "site_admin": false,
2024-04-15T15:03:09.0866058Z ##[debug]/github/workflow/event.json:      "starred_url": "https://api.github.com/users/robmoss2k/starred{/owner}{/repo}",
2024-04-15T15:03:09.0868341Z ##[debug]/github/workflow/event.json:      "subscriptions_url": "https://api.github.com/users/robmoss2k/subscriptions",
2024-04-15T15:03:09.0870349Z ##[debug]/github/workflow/event.json:      "type": "User",
2024-04-15T15:03:09.0872050Z ##[debug]/github/workflow/event.json:      "url": "https://api.github.com/users/robmoss2k"
2024-04-15T15:03:09.0873800Z ##[debug]/github/workflow/event.json:    },
2024-04-15T15:03:09.0875125Z ##[debug]/github/workflow/event.json:    "private": true,
2024-04-15T15:03:09.0877469Z ##[debug]/github/workflow/event.json:    "pulls_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/pulls{/number}",
2024-04-15T15:03:09.0879470Z ##[debug]/github/workflow/event.json:    "pushed_at": 1713177563,
2024-04-15T15:03:09.0881837Z ##[debug]/github/workflow/event.json:    "releases_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/releases{/id}",
2024-04-15T15:03:09.0883783Z ##[debug]/github/workflow/event.json:    "size": 71,
2024-04-15T15:03:09.0885638Z ##[debug]/github/workflow/event.json:    "ssh_url": "git@github.com:robmoss2k/test-ec2-instance.git",
2024-04-15T15:03:09.0887591Z ##[debug]/github/workflow/event.json:    "stargazers": 0,
2024-04-15T15:03:09.0889067Z ##[debug]/github/workflow/event.json:    "stargazers_count": 0,
2024-04-15T15:03:09.0891788Z ##[debug]/github/workflow/event.json:    "stargazers_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/stargazers",
2024-04-15T15:03:09.0898638Z ##[debug]/github/workflow/event.json:    "statuses_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/statuses/{sha}",
2024-04-15T15:03:09.0901229Z ##[debug]/github/workflow/event.json:    "subscribers_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/subscribers",
2024-04-15T15:03:09.0903854Z ##[debug]/github/workflow/event.json:    "subscription_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/subscription",
2024-04-15T15:03:09.0906614Z ##[debug]/github/workflow/event.json:    "svn_url": "https://github.com/robmoss2k/test-ec2-instance",
2024-04-15T15:03:09.0908975Z ##[debug]/github/workflow/event.json:    "tags_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/tags",
2024-04-15T15:03:09.0911676Z ##[debug]/github/workflow/event.json:    "teams_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/teams",
2024-04-15T15:03:09.0913501Z ##[debug]/github/workflow/event.json:    "topics": [],
2024-04-15T15:03:09.0915658Z ##[debug]/github/workflow/event.json:    "trees_url": "https://api.github.com/repos/robmoss2k/test-ec2-instance/git/trees{/sha}",
2024-04-15T15:03:09.0918137Z ##[debug]/github/workflow/event.json:    "updated_at": "2023-10-03T15:34:01Z",
2024-04-15T15:03:09.0920097Z ##[debug]/github/workflow/event.json:    "url": "https://github.com/robmoss2k/test-ec2-instance",
2024-04-15T15:03:09.0922075Z ##[debug]/github/workflow/event.json:    "visibility": "private",
2024-04-15T15:03:09.0923514Z ##[debug]/github/workflow/event.json:    "watchers": 0,
2024-04-15T15:03:09.0925094Z ##[debug]/github/workflow/event.json:    "watchers_count": 0,
2024-04-15T15:03:09.0926932Z ##[debug]/github/workflow/event.json:    "web_commit_signoff_required": false
2024-04-15T15:03:09.0928577Z ##[debug]/github/workflow/event.json:  },
2024-04-15T15:03:09.0930105Z ##[debug]/github/workflow/event.json:  "sender": {
2024-04-15T15:03:09.0932003Z ##[debug]/github/workflow/event.json:    "avatar_url": "https://avatars.githubusercontent.com/u/15984835?v=4",
2024-04-15T15:03:09.0934153Z ##[debug]/github/workflow/event.json:    "events_url": "https://api.github.com/users/robmoss2k/events{/privacy}",
2024-04-15T15:03:09.0936466Z ##[debug]/github/workflow/event.json:    "followers_url": "https://api.github.com/users/robmoss2k/followers",
2024-04-15T15:03:09.0938945Z ##[debug]/github/workflow/event.json:    "following_url": "https://api.github.com/users/robmoss2k/following{/other_user}",
2024-04-15T15:03:09.0941204Z ##[debug]/github/workflow/event.json:    "gists_url": "https://api.github.com/users/robmoss2k/gists{/gist_id}",
2024-04-15T15:03:09.0943086Z ##[debug]/github/workflow/event.json:    "gravatar_id": "",
2024-04-15T15:03:09.0944747Z ##[debug]/github/workflow/event.json:    "html_url": "https://github.com/robmoss2k",
2024-04-15T15:03:09.0946446Z ##[debug]/github/workflow/event.json:    "id": 15984835,
2024-04-15T15:03:09.0947847Z ##[debug]/github/workflow/event.json:    "login": "robmoss2k",
2024-04-15T15:03:09.0949602Z ##[debug]/github/workflow/event.json:    "node_id": "MDQ6VXNlcjE1OTg0ODM1",
2024-04-15T15:03:09.0951523Z ##[debug]/github/workflow/event.json:    "organizations_url": "https://api.github.com/users/robmoss2k/orgs",
2024-04-15T15:03:09.0953969Z ##[debug]/github/workflow/event.json:    "received_events_url": "https://api.github.com/users/robmoss2k/received_events",
2024-04-15T15:03:09.0956122Z ##[debug]/github/workflow/event.json:    "repos_url": "https://api.github.com/users/robmoss2k/repos",
2024-04-15T15:03:09.0958015Z ##[debug]/github/workflow/event.json:    "site_admin": false,
2024-04-15T15:03:09.0960102Z ##[debug]/github/workflow/event.json:    "starred_url": "https://api.github.com/users/robmoss2k/starred{/owner}{/repo}",
2024-04-15T15:03:09.0962486Z ##[debug]/github/workflow/event.json:    "subscriptions_url": "https://api.github.com/users/robmoss2k/subscriptions",
2024-04-15T15:03:09.0964507Z ##[debug]/github/workflow/event.json:    "type": "User",
2024-04-15T15:03:09.0966128Z ##[debug]/github/workflow/event.json:    "url": "https://api.github.com/users/robmoss2k"
2024-04-15T15:03:09.0967811Z ##[debug]/github/workflow/event.json:  }
2024-04-15T15:03:09.0968989Z ##[debug]/github/workflow/event.json:}
2024-04-15T15:03:09.2161961Z ::group::Installing Terraform
2024-04-15T15:03:09.2162817Z ##[group]Installing Terraform
2024-04-15T15:03:10.1261904Z ##[debug]Unexpected token Token('STRING_LIT', '"ARN"') at line 891, column 5.
2024-04-15T15:03:10.1264022Z ##[debug]Expected one of: 
2024-04-15T15:03:10.1265502Z ##[debug]	* MINUS
2024-04-15T15:03:10.1268016Z ##[debug]	* __ANON_7
2024-04-15T15:03:10.1269249Z ##[debug]	* QMARK
2024-04-15T15:03:10.1270396Z ##[debug]	* PLUS
2024-04-15T15:03:10.1271540Z ##[debug]	* MORETHAN
2024-04-15T15:03:10.1272529Z ##[debug]	* LESSTHAN
2024-04-15T15:03:10.1273540Z ##[debug]	* __ANON_5
2024-04-15T15:03:10.1274453Z ##[debug]	* STAR
2024-04-15T15:03:10.1275541Z ##[debug]	* SLASH
2024-04-15T15:03:10.1276637Z ##[debug]	* __ANON_8
2024-04-15T15:03:10.1277635Z ##[debug]	* __ANON_0
2024-04-15T15:03:10.1278923Z ##[debug]	* __ANON_6
2024-04-15T15:03:10.1279842Z ##[debug]	* __ANON_2
2024-04-15T15:03:10.1281037Z ##[debug]	* RBRACE
2024-04-15T15:03:10.1281965Z ##[debug]	* __ANON_9
2024-04-15T15:03:10.1283057Z ##[debug]	* __ANON_4
2024-04-15T15:03:10.1284007Z ##[debug]	* PERCENT
2024-04-15T15:03:10.1285245Z ##[debug]	* __ANON_1
2024-04-15T15:03:10.1286190Z ##[debug]	* COMMA
2024-04-15T15:03:10.6844487Z ##[debug]Unexpected token Token('STRING_LIT', '"ARN"') at line 891, column 5.
2024-04-15T15:03:10.6846113Z ##[debug]Expected one of: 
2024-04-15T15:03:10.6847082Z ##[debug]	* __ANON_6
2024-04-15T15:03:10.6848077Z ##[debug]	* SLASH
2024-04-15T15:03:10.6848928Z ##[debug]	* MORETHAN
2024-04-15T15:03:10.6850561Z ##[debug]	* __ANON_9
2024-04-15T15:03:10.6851638Z ##[debug]	* MINUS
2024-04-15T15:03:10.6852475Z ##[debug]	* __ANON_5
2024-04-15T15:03:10.6853416Z ##[debug]	* STAR
2024-04-15T15:03:10.6854270Z ##[debug]	* __ANON_4
2024-04-15T15:03:10.6855239Z ##[debug]	* __ANON_8
2024-04-15T15:03:10.6856064Z ##[debug]	* QMARK
2024-04-15T15:03:10.6856996Z ##[debug]	* COMMA
2024-04-15T15:03:10.6857824Z ##[debug]	* __ANON_7
2024-04-15T15:03:10.6858759Z ##[debug]	* PERCENT
2024-04-15T15:03:10.6859599Z ##[debug]	* __ANON_1
2024-04-15T15:03:10.6860566Z ##[debug]	* __ANON_0
2024-04-15T15:03:10.6861392Z ##[debug]	* PLUS
2024-04-15T15:03:10.6862307Z ##[debug]	* LESSTHAN
2024-04-15T15:03:10.6863142Z ##[debug]	* __ANON_2
2024-04-15T15:03:10.6864124Z ##[debug]	* RBRACE
2024-04-15T15:03:11.1613314Z ##[debug]required_version constraint is malformed
2024-04-15T15:03:11.1630264Z ##[debug]backend_type='s3'
2024-04-15T15:03:11.1679908Z gpg: Signature made Tue Apr 19 07:40:22 2022 UTC
2024-04-15T15:03:11.1680923Z gpg:                using RSA key 374EC75B485913604A831CC7C820C6D5CD27AB87
2024-04-15T15:03:11.1703005Z gpg: Good signature from "HashiCorp Security (hashicorp.com/security) <security@hashicorp.com>" [ultimate]
2024-04-15T15:03:11.1719647Z ##[debug]Downloading archive from https://releases.hashicorp.com/terraform/0.9.7/terraform_0.9.7_linux_amd64.zip
2024-04-15T15:03:11.5983321Z terraform_0.9.7_linux_amd64.zip: OK
2024-04-15T15:03:13.0743532Z ##[debug]result.args[:2]=['/tmp/terraform_0.9.7/terraform', 'init']
2024-04-15T15:03:13.0744877Z ##[debug]result.returncode=0
2024-04-15T15:03:13.0746324Z ##[debug]�[0m�[1mInitializing the backend...�[0m
2024-04-15T15:03:13.0747493Z ##[debug]�[0m�[32m
2024-04-15T15:03:13.0748588Z ##[debug]
2024-04-15T15:03:13.0749906Z ##[debug]Successfully configured the backend "s3"! Terraform will automatically
2024-04-15T15:03:13.0751923Z ##[debug]use this backend unless the backend configuration changes.�[0m
2024-04-15T15:03:13.0753229Z ##[debug]
2024-04-15T15:03:13.0754639Z ##[debug]�[0m�[1m�[32mTerraform has been successfully initialized!�[0m�[32m
2024-04-15T15:03:13.0756012Z ##[debug]
2024-04-15T15:03:13.0757228Z ##[debug]You may now begin working with Terraform. Try running "terraform plan" to see
2024-04-15T15:03:13.0759098Z ##[debug]any changes that are required for your infrastructure. All Terraform commands
2024-04-15T15:03:13.0760699Z ##[debug]should now work.
2024-04-15T15:03:13.0761884Z ##[debug]
2024-04-15T15:03:13.0763154Z ##[debug]If you ever set or change modules or backend configuration for Terraform,
2024-04-15T15:03:13.0764935Z ##[debug]rerun this command to reinitialize your environment. If you forget, other
2024-04-15T15:03:13.0766652Z ##[debug]commands will detect it and remind you to do so if necessary.�[0m
2024-04-15T15:03:15.3030548Z ##[debug]result.args=[PosixPath('/tmp/terraform_0.9.7/terraform'), 'state', 'pull']
2024-04-15T15:03:15.3032761Z ##[debug]result.returncode=1
2024-04-15T15:03:15.3034267Z ##[debug]result.stdout.decode()=''
2024-04-15T15:03:15.3037386Z ##[debug]result.stderr.decode()='\x1b[31mFailed to load state: Terraform 0.9.7 does not support state version 4, please update.\x1b[0m\x1b[0m\n'
2024-04-15T15:03:15.3084166Z gpg: Signature made Tue Apr 19 07:30:27 2022 UTC
2024-04-15T15:03:15.3085374Z gpg:                using RSA key 374EC75B485913604A831CC7C820C6D5CD27AB87
2024-04-15T15:03:15.3098984Z gpg: Good signature from "HashiCorp Security (hashicorp.com/security) <security@hashicorp.com>" [ultimate]
2024-04-15T15:03:15.3872228Z terraform_0.12.0_linux_amd64.zip: OK
2024-04-15T15:03:17.5553703Z ##[debug]result.args[:2]=['/tmp/terraform_0.12.0/terraform', 'init']
2024-04-15T15:03:17.5555153Z ##[debug]result.returncode=1
2024-04-15T15:03:17.5556278Z ##[debug]
2024-04-15T15:03:17.5557448Z ##[debug]�[0m�[1mInitializing the backend...�[0m
2024-04-15T15:03:17.5558696Z ##[debug]�[0m�[32m
2024-04-15T15:03:17.5559949Z ##[debug]Successfully configured the backend "s3"! Terraform will automatically
2024-04-15T15:03:17.5561680Z ##[debug]use this backend unless the backend configuration changes.�[0m
2024-04-15T15:03:17.5564621Z ##[debug]�[31mError refreshing state: state snapshot was created by Terraform v1.6.5, which is newer than current v0.12.0; upgrade to Terraform v1.6.5 or greater to work with this state�[0m�[0m
2024-04-15T15:03:17.5606454Z gpg: Signature made Wed Nov 29 10:01:01 2023 UTC
2024-04-15T15:03:17.5607365Z gpg:                using RSA key 374EC75B485913604A831CC7C820C6D5CD27AB87
2024-04-15T15:03:17.5617247Z gpg: Good signature from "HashiCorp Security (hashicorp.com/security) <security@hashicorp.com>" [ultimate]
2024-04-15T15:03:17.5633224Z ##[debug]Downloading archive from https://releases.hashicorp.com/terraform/1.6.5/terraform_1.6.5_linux_amd64.zip
2024-04-15T15:03:17.9559881Z terraform_1.6.5_linux_amd64.zip: OK
2024-04-15T15:03:18.3557283Z Using the same Terraform version that wrote the existing remote state file
2024-04-15T15:03:18.3558591Z Switched to Terraform v1.6.5
2024-04-15T15:03:18.3894275Z ##[debug]ls -la /usr/local/bin/terraform:lrwxrwxrwx 1 root root 30 Apr 15 15:03 /usr/local/bin/terraform -> /tmp/terraform_1.6.5/terraform
2024-04-15T15:03:18.4678683Z Terraform v1.6.5
2024-04-15T15:03:18.4679417Z on linux_amd64
2024-04-15T15:03:18.4680340Z + provider registry.terraform.io/hashicorp/aws v5.45.0
2024-04-15T15:03:18.4681371Z + provider registry.terraform.io/hashicorp/http v3.4.2
2024-04-15T15:03:18.4682347Z + provider registry.terraform.io/hashicorp/tls v4.0.5
2024-04-15T15:03:18.4691933Z ##[debug] Terraform version major 1 minor 6 patch 5
2024-04-15T15:03:19.1363666Z ##[debug]Unexpected token Token('STRING_LIT', '"ARN"') at line 891, column 5.
2024-04-15T15:03:19.1365058Z ##[debug]Expected one of: 
2024-04-15T15:03:19.1366150Z ##[debug]	* PERCENT
2024-04-15T15:03:19.1367040Z ##[debug]	* MINUS
2024-04-15T15:03:19.1367938Z ##[debug]	* __ANON_8
2024-04-15T15:03:19.1368753Z ##[debug]	* __ANON_9
2024-04-15T15:03:19.1370058Z ##[debug]	* __ANON_4
2024-04-15T15:03:19.1371123Z ##[debug]	* QMARK
2024-04-15T15:03:19.1371922Z ##[debug]	* COMMA
2024-04-15T15:03:19.1372921Z ##[debug]	* LESSTHAN
2024-04-15T15:03:19.1373823Z ##[debug]	* __ANON_1
2024-04-15T15:03:19.1374817Z ##[debug]	* __ANON_7
2024-04-15T15:03:19.1375951Z ##[debug]	* PLUS
2024-04-15T15:03:19.1376903Z ##[debug]	* __ANON_2
2024-04-15T15:03:19.1377782Z ##[debug]	* __ANON_0
2024-04-15T15:03:19.1378713Z ##[debug]	* __ANON_6
2024-04-15T15:03:19.1379560Z ##[debug]	* MORETHAN
2024-04-15T15:03:19.1380528Z ##[debug]	* RBRACE
2024-04-15T15:03:19.1381427Z ##[debug]	* __ANON_5
2024-04-15T15:03:19.1382409Z ##[debug]	* SLASH
2024-04-15T15:03:19.1383239Z ##[debug]	* STAR
2024-04-15T15:03:19.6711681Z ##[debug]Unexpected token Token('STRING_LIT', '"ARN"') at line 891, column 5.
2024-04-15T15:03:19.6713424Z ##[debug]Expected one of: 
2024-04-15T15:03:19.6715106Z ##[debug]	* __ANON_4
2024-04-15T15:03:19.6716002Z ##[debug]	* __ANON_9
2024-04-15T15:03:19.6717039Z ##[debug]	* __ANON_1
2024-04-15T15:03:19.6717875Z ##[debug]	* __ANON_2
2024-04-15T15:03:19.6718823Z ##[debug]	* QMARK
2024-04-15T15:03:19.6719654Z ##[debug]	* STAR
2024-04-15T15:03:19.6720651Z ##[debug]	* __ANON_7
2024-04-15T15:03:19.6721477Z ##[debug]	* __ANON_8
2024-04-15T15:03:19.6722418Z ##[debug]	* __ANON_6
2024-04-15T15:03:19.6723241Z ##[debug]	* MORETHAN
2024-04-15T15:03:19.6724246Z ##[debug]	* __ANON_0
2024-04-15T15:03:19.6725127Z ##[debug]	* LESSTHAN
2024-04-15T15:03:19.6726097Z ##[debug]	* COMMA
2024-04-15T15:03:19.6727105Z ##[debug]	* __ANON_5
2024-04-15T15:03:19.6727941Z ##[debug]	* RBRACE
2024-04-15T15:03:19.6728922Z ##[debug]	* PLUS
2024-04-15T15:03:19.6730142Z ##[debug]	* SLASH
2024-04-15T15:03:19.6731202Z ##[debug]	* PERCENT
2024-04-15T15:03:19.6732081Z ##[debug]	* MINUS
2024-04-15T15:03:20.1678129Z Detected s3 backend
2024-04-15T15:03:20.1685585Z ::endgroup::
2024-04-15T15:03:20.1686190Z ##[endgroup]
2024-04-15T15:03:20.1687149Z ::group::Initializing Terraform
2024-04-15T15:03:20.1688022Z ##[group]Initializing Terraform
2024-04-15T15:03:20.1695290Z ##[debug] TF_WORKSPACE=default terraform init -input=false $INIT_ARGS
2024-04-15T15:03:20.2035692Z 
2024-04-15T15:03:20.2037100Z �[0m�[1mInitializing the backend...�[0m
2024-04-15T15:03:21.0883861Z �[0m�[32m
2024-04-15T15:03:21.0884769Z Successfully configured the backend "s3"! Terraform will automatically
2024-04-15T15:03:21.0886029Z use this backend unless the backend configuration changes.�[0m
2024-04-15T15:03:21.7875049Z �[31m�[31m╷�[0m�[0m
2024-04-15T15:03:21.7876803Z �[31m│�[0m �[0m�[1m�[31mError: �[0m�[0m�[1mUnsupported Terraform Core version�[0m
2024-04-15T15:03:21.7878143Z �[31m│�[0m �[0m
2024-04-15T15:03:21.7878889Z �[31m│�[0m �[0m�[0m  on versions.tf line 16, in terraform:
2024-04-15T15:03:21.7879972Z �[31m│�[0m �[0m  16:   �[4mrequired_version = ">= v1.8.0"�[0m�[0m
2024-04-15T15:03:21.7880990Z �[31m│�[0m �[0m
2024-04-15T15:03:21.7882119Z �[31m│�[0m �[0mThis configuration does not support Terraform version 1.6.5. To proceed,
2024-04-15T15:03:21.7883690Z �[31m│�[0m �[0meither choose another supported Terraform version or update this version
2024-04-15T15:03:21.7885326Z �[31m│�[0m �[0mconstraint. Version constraints are normally set for good reason, so
2024-04-15T15:03:21.7886869Z �[31m│�[0m �[0mupdating the constraint may lead to other errors or unexpected behavior.
2024-04-15T15:03:21.7888009Z �[31m╵�[0m�[0m
2024-04-15T15:03:21.7888737Z �[0m�[0m
2024-04-15T15:03:21.7978451Z ##[debug]tree:/github/home
2024-04-15T15:03:21.7980340Z ##[debug]tree:|-- [1001      55M]  .dflook-terraform-github-actions/
2024-04-15T15:03:21.7982571Z ##[debug]tree:|   `-- [1001      55M]  terraform-bin-dir/
2024-04-15T15:03:21.7984203Z ##[debug]tree:|       |-- [1001      31M]  terraform_0.9.7_linux_amd64.zip
2024-04-15T15:03:21.7986829Z ##[debug]tree:|       `-- [1001      24M]  terraform_1.6.5_linux_amd64.zip
2024-04-15T15:03:21.7988423Z ##[debug]tree:`-- [1001     8.0K]  .terraform.d/
2024-04-15T15:03:21.7989800Z ##[debug]tree:    `-- [1001     4.0K]  plugin-cache/
2024-04-15T15:03:21.7990923Z ##[debug]tree:
2024-04-15T15:03:21.7991996Z ##[debug]tree:  55M used in 4 directories, 2 files
2024-04-15T15:03:22.4091585Z ##[debug]Docker Action run completed with exit code 1
2024-04-15T15:03:22.4098197Z ##[debug]Finishing: Destroy resources
2024-04-15T15:03:22.4108503Z ##[debug]Evaluating condition for step: 'Post Checkout'
2024-04-15T15:03:22.4111033Z ##[debug]Evaluating: always()
2024-04-15T15:03:22.4111775Z ##[debug]Evaluating always:
2024-04-15T15:03:22.4112817Z ##[debug]=> true
2024-04-15T15:03:22.4113599Z ##[debug]Result: true
2024-04-15T15:03:22.4114410Z ##[debug]Starting: Post Checkout
2024-04-15T15:03:22.4151420Z ##[debug]Loading inputs
2024-04-15T15:03:22.4152625Z ##[debug]Evaluating: github.repository
2024-04-15T15:03:22.4153102Z ##[debug]Evaluating Index:
2024-04-15T15:03:22.4153516Z ##[debug]..Evaluating github:
2024-04-15T15:03:22.4154264Z ##[debug]..=> Object
2024-04-15T15:03:22.4154914Z ##[debug]..Evaluating String:
2024-04-15T15:03:22.4155656Z ##[debug]..=> 'repository'
2024-04-15T15:03:22.4156318Z ##[debug]=> 'robmoss2k/test-ec2-instance'
2024-04-15T15:03:22.4157055Z ##[debug]Result: 'robmoss2k/test-ec2-instance'
2024-04-15T15:03:22.4160110Z ##[debug]Evaluating: github.token
2024-04-15T15:03:22.4161000Z ##[debug]Evaluating Index:
2024-04-15T15:03:22.4161680Z ##[debug]..Evaluating github:
2024-04-15T15:03:22.4162682Z ##[debug]..=> Object
2024-04-15T15:03:22.4163469Z ##[debug]..Evaluating String:
2024-04-15T15:03:22.4164171Z ##[debug]..=> 'token'
2024-04-15T15:03:22.4165350Z ##[debug]=> '***'
2024-04-15T15:03:22.4166348Z ##[debug]Result: '***'
2024-04-15T15:03:22.4187192Z ##[debug]Loading env
2024-04-15T15:03:22.4198488Z Post job cleanup.
2024-04-15T15:03:22.5164448Z ##[debug]Getting git version
2024-04-15T15:03:22.5173023Z [command]/usr/bin/git version
2024-04-15T15:03:22.5236828Z git version 2.43.2
2024-04-15T15:03:22.5269890Z ##[debug]0
2024-04-15T15:03:22.5274611Z ##[debug]git version 2.43.2
2024-04-15T15:03:22.5275210Z ##[debug]
2024-04-15T15:03:22.5282112Z ##[debug]Set git useragent to: git/2.43.2 (github-actions-checkout)
2024-04-15T15:03:22.5291227Z ::add-mask::***
2024-04-15T15:03:22.5308993Z Temporarily overriding HOME='/home/runner/work/_temp/9d9af7f4-8e76-4be5-aaac-287747821910' before making global git config changes
2024-04-15T15:03:22.5314826Z Adding repository directory to the temporary git global config as a safe directory
2024-04-15T15:03:22.5325617Z [command]/usr/bin/git config --global --add safe.directory /home/runner/work/test-ec2-instance/test-ec2-instance
2024-04-15T15:03:22.5381989Z ##[debug]0
2024-04-15T15:03:22.5383146Z ##[debug]
2024-04-15T15:03:22.5384582Z [command]/usr/bin/git config --local --name-only --get-regexp core\.sshCommand
2024-04-15T15:03:22.5429710Z ##[debug]1
2024-04-15T15:03:22.5431073Z ##[debug]
2024-04-15T15:03:22.5433171Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'core\.sshCommand' && git config --local --unset-all 'core.sshCommand' || :"
2024-04-15T15:03:22.5695435Z ##[debug]0
2024-04-15T15:03:22.5696909Z ##[debug]
2024-04-15T15:03:22.5703994Z [command]/usr/bin/git config --local --name-only --get-regexp http\.https\:\/\/github\.com\/\.extraheader
2024-04-15T15:03:22.5726548Z http.https://github.com/.extraheader
2024-04-15T15:03:22.5735100Z ##[debug]0
2024-04-15T15:03:22.5736935Z ##[debug]http.https://github.com/.extraheader
2024-04-15T15:03:22.5737688Z ##[debug]
2024-04-15T15:03:22.5741644Z [command]/usr/bin/git config --local --unset-all http.https://github.com/.extraheader
2024-04-15T15:03:22.5771498Z ##[debug]0
2024-04-15T15:03:22.5772875Z ##[debug]
2024-04-15T15:03:22.5779135Z [command]/usr/bin/git submodule foreach --recursive sh -c "git config --local --name-only --get-regexp 'http\.https\:\/\/github\.com\/\.extraheader' && git config --local --unset-all 'http.https://github.com/.extraheader' || :"
2024-04-15T15:03:22.6020874Z ##[debug]0
2024-04-15T15:03:22.6022487Z ##[debug]
2024-04-15T15:03:22.6023824Z ##[debug]Unsetting HOME override
2024-04-15T15:03:22.6328848Z ##[debug]Node Action run completed with exit code 0
2024-04-15T15:03:22.6334383Z ##[debug]Finishing: Post Checkout
2024-04-15T15:03:22.6584469Z ##[debug]Starting: Complete job
2024-04-15T15:03:22.6586607Z Cleaning up orphan processes
2024-04-15T15:03:22.7005314Z ##[debug]Finishing: Complete job
2024-04-15T15:03:22.7123712Z ##[debug]Finishing: Destroy Terraform-managed resources

Has debug logging been enabled?

  • Yes, the ACTIONS_STEP_DEBUG secret was set to true when capturing the workflow log above.
@dflook
Copy link
Owner

dflook commented Apr 15, 2024

Hello, thanks for creating an issue.

The version in the required_version constraint should take priority over the version found in the state file. It looks like this isn't working properly. Can you share the contents of versions.tf?

Number 1 in the version discovery list relates to Terraform Cloud/Enterprise workspaces, where the remote workspace version always takes priority.

This log shows the version coming from a local terraform.tfstate, the lowest priority version source. Are you using the s3 backend, or the local backend? Does a terraform.tfstate file exist in the repo?

@robmoss2k
Copy link
Author

robmoss2k commented Apr 15, 2024

I think number 1 is inspecting my S3 remote state? Here is versions.tf:

provider "aws" {
  region  = var.region
  profile = "robmoss"
  default_tags {
    tags = {
      Owner        = var.owner
      purpose      = var.purpose
      Name         = "${var.owner}: ${var.purpose}"
      map-migrated = "d-server-001j25bgmzlvy7"
    }
  }
}

provider "tls" {}

provider "http" {}

There is no terraform.tfstate file in the repo.

@robmoss2k
Copy link
Author

I updated the original issue to contain debug-enabled logs.

@robmoss2k
Copy link
Author

robmoss2k commented Apr 15, 2024

Hold on a minute. I've uploaded the log from the wrong run. Updating again - sorry!

Edited: updated with the stuff from the correct repo. From the logs, my assumption was wrong and my PR is useless.

@robmoss2k
Copy link
Author

OK, here it is. I have this:

required_version = ">= v1.8.0"

According to the documentation, I should have this:

required_version = ">= 1.8.0"

However, terraform doesn't throw an error when you include the v, so terraform is behaving in a way that dflook/terraform-version doesn't expect.

@dflook
Copy link
Owner

dflook commented Apr 15, 2024

That's a good find, I didn't know Terraform allowed that.

@robmoss2k
Copy link
Author

robmoss2k commented Apr 15, 2024

I didn't know Terraform wasn't supposed to allow anything else!

@dflook
Copy link
Owner

dflook commented May 28, 2024

Version 1.42.1 has been released that allows a v in the version number

@dflook dflook closed this as completed May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants