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

terraform cloud API token is not set #2233

Open
kurtis-casperson opened this issue Mar 1, 2024 · 0 comments
Open

terraform cloud API token is not set #2233

kurtis-casperson opened this issue Mar 1, 2024 · 0 comments
Labels
kind/bug Something isn't working

Comments

@kurtis-casperson
Copy link

Bug report info

act version:            0.2.60
GOOS:                   darwin
GOARCH:                 arm64
NumCPU:                 10
Docker host:            DOCKER_HOST environment variable is not set
Sockets found:
	/var/run/docker.sock
	$HOME/.docker/run/docker.sock
Config files:
	/Users/kurtisc/Library/Application Support/act/actrc:
		-P ubuntu-latest=catthehacker/ubuntu:act-latest
		-P ubuntu-22.04=catthehacker/ubuntu:act-22.04
		-P ubuntu-20.04=catthehacker/ubuntu:act-20.04
		-P ubuntu-18.04=catthehacker/ubuntu:act-18.04
Build info:
	Go version:            go1.22.0
	Module path:           command-line-arguments
	Main version:
	Main path:
	Main checksum:
	Build settings:
		-buildmode:           exe
		-compiler:            gc
		-ldflags:             -X main.version=0.2.60
		DefaultGODEBUG:       httplaxcontentlength=1,httpmuxgo121=1,panicnil=1,tls10server=1,tlsrsakex=1,tlsunsafeekm=1
		CGO_ENABLED:          1
		CGO_CFLAGS:
		CGO_CPPFLAGS:
		CGO_CXXFLAGS:
		CGO_LDFLAGS:
		GOARCH:               arm64
		GOOS:                 darwin
Docker Engine:
	Engine version:        25.0.3
	Engine runtime:        runc
	Cgroup version:        2
	Cgroup driver:         cgroupfs
	Storage driver:        overlay2
	Registry URI:          https://index.docker.io/v1/
	OS:                    Docker Desktop
	OS type:               linux
	OS version:
	OS arch:               aarch64
	OS kernel:             6.6.12-linuxkit
	OS CPU:                10
	OS memory:             7841 MB
	Security options:
		name=seccomp,profile=unconfined
		name=cgroupns

Command used with act

act push

Describe issue

I am receiving the error :
terraform cloud API token is not set

The push command does work with Github actions, so I know the API token is set.

This is my first time using act or Docker, so my bad if I have overlooked something easy.

Link to GitHub repository

https://github.com/kurtis-casperson/aws-cloud-resume

Workflow content

name: 'Terraform Plan'

on: push
env:
  TF_CLOUD_ORGANIZATION: 'kcasperson'
  TF_API_TOKEN: '${{ secrets.TF_API_TOKEN }}'
  TF_WORKSPACE: 'cloud-resume-workspace'

jobs:
  terraform:
    if: github.repository != 'hashicorp-education/learn-terraform-github-actions'
    name: 'Terraform Plan'
    runs-on: ubuntu-latest
    permissions:
      contents: read
      pull-requests: write
    steps:
      - name: Checkout
        uses: actions/checkout@v3
      - name: Upload Configuration
        uses: hashicorp/tfc-workflows-github/actions/[email protected]
        id: plan-upload
        with:
          workspace: ${{ env.TF_WORKSPACE }}
          directory: ${{ env.CONFIG_DIRECTORY }}
          speculative: true

Relevant log output

[Terraform Plan/Terraform Plan  ]   🐳  docker run image=hashicorp/tfci:v1.0.0 platform= entrypoint=[] cmd=["tfci" "-hostname=" "-token=" "-organization=" "upload" "-workspace=cloud-resume-workspace" "-directory=" "-speculative=true"] network="container:act-Terraform-Plan-Terraform-Plan-62ff29d57a7bf624a59dc60e75768b64313ecf2226633ad2eb8d3d58f4fa74f3"
[Terraform Plan/Terraform Plan  ] [DEBUG] Starting container: 741dde36caea3004c6833dcfbc7f99824eccfae689c39ccb4974ca7131dfc6ab
[Terraform Plan/Terraform Plan  ] [DEBUG] Started container: 741dde36caea3004c6833dcfbc7f99824eccfae689c39ccb4974ca7131dfc6ab
| terraform cloud API token is not set
[Terraform Plan/Terraform Plan  ] [DEBUG] Return status: 1
[Terraform Plan/Terraform Plan  ] [DEBUG] Removed container: 741dde36caea3004c6833dcfbc7f99824eccfae689c39ccb4974ca7131dfc6ab
[Terraform Plan/Terraform Plan  ]   ❌  Failure - Main Upload Configuration
[Terraform Plan/Terraform Plan  ] exit with `FAILURE`: 1
[Terraform Plan/Terraform Plan  ] [DEBUG] skipping post step for 'Checkout': no action model available
[Terraform Plan/Terraform Plan  ] 🏁  Job failed
[Terraform Plan/Terraform Plan  ] [DEBUG] Loading revision from git directory
[Terraform Plan/Terraform Plan  ] [DEBUG] Found revision: 1753bcdc0deea5e449b3c38df0a3249de144011b
[Terraform Plan/Terraform Plan  ] [DEBUG] HEAD points to '1753bcdc0deea5e449b3c38df0a3249de144011b'
[Terraform Plan/Terraform Plan  ] [DEBUG] using github ref: refs/heads/main
[Terraform Plan/Terraform Plan  ] [DEBUG] Found revision: 1753bcdc0deea5e449b3c38df0a3249de144011b
[Terraform Apply/Terraform Apply] [DEBUG] Pulling from hashicorp/tfci :: v1.0.0
[Terraform Apply/Terraform Apply] [DEBUG] Digest: sha256:a0aa9258f77dc46b3eae696fc50e9fe38873ace5dab540f16e99c787e27ec956 ::
[Terraform Apply/Terraform Apply] [DEBUG] Status: Image is up to date for hashicorp/tfci:v1.0.0 ::
[Terraform Apply/Terraform Apply]   🐳  docker create image=hashicorp/tfci:v1.0.0 platform= entrypoint=[] cmd=["tfci" "-hostname=" "-token=" "-organization=" "upload" "-workspace=cloud-resume-workspace" "-directory=./" "-speculative=false"] network="container:act-Terraform-Apply-Terraform-Apply-b8e8bb1c2cf136f065e3156a88b8e36578b6fa0a1f132441a541b7df56731de6"
[Terraform Apply/Terraform Apply] [DEBUG] Common container.Config ==> &{Hostname: Domainname: User: AttachStdin:false AttachStdout:false AttachStderr:false ExposedPorts:map[] Tty:true OpenStdin:false StdinOnce:false Env:[GITHUB_REPOSITORY=kurtis-casperson/aws-cloud-resume INPUT_SPECULATIVE=false GITHUB_EVENT_PATH=/var/run/act/workflow/event.json GITHUB_STATE=/var/run/act/workflow/statecmd.txt ACTIONS_CACHE_URL=http://10.0.0.225:62648/ GITHUB_JOB=terraform RUNNER_TRACKING_ID= ImageOS=ubuntu20 token= ACT=true GITHUB_ACTIONS=true GITHUB_WORKSPACE=/Users/kurtisc/software-development-mastermind/terraform-config GITHUB_REF_NAME=main GITHUB_REF_TYPE=branch GITHUB_PATH=/var/run/act/workflow/pathcmd.txt GITHUB_ACTION=apply-upload GITHUB_ACTOR=nektos/act INPUT_DIRECTORY=./ CONFIG_DIRECTORY=./ GITHUB_GRAPHQL_URL=https://api.github.com/graphql organization= TF_CLOUD_ORGANIZATION=kcasperson GITHUB_ACTION_REF=v1.0.0 INPUT_WORKSPACE=cloud-resume-workspace GITHUB_STEP_SUMMARY=/var/run/act/workflow/SUMMARY.md INPUT_HOSTNAME= hostname= TF_VAR_api_token=5Oeb9b7x1ZQzOg.atlasv1.7CTxlyDL1obxM752zXOpUUSciOecFFqT4EPaJmpUwOxRiInzagziLDwlkhLx3GOcewc GITHUB_RUN_ID=1 GITHUB_RETENTION_DAYS=0 GITHUB_OUTPUT=/var/run/act/workflow/outputcmd.txt directory=./ workspace=cloud-resume-workspace GITHUB_BASE_REF= GITHUB_SERVER_URL=https://github.com speculative=false GITHUB_ACTION_REPOSITORY=hashicorp/tfc-workflows-github GITHUB_SHA=1753bcdc0deea5e449b3c38df0a3249de144011b GITHUB_API_URL=https://api.github.com INPUT_ORGANIZATION= TF_WORKSPACE=cloud-resume-workspace GITHUB_EVENT_NAME=push GITHUB_REF=refs/heads/main GITHUB_ENV=/var/run/act/workflow/envs.txt CI=true GITHUB_RUN_NUMBER=1 INPUT_TOKEN= GITHUB_REPOSITORY_OWNER=kurtis-casperson RUNNER_PERFLOG=/dev/null GITHUB_HEAD_REF= GITHUB_WORKFLOW=Terraform Apply GITHUB_ACTION_PATH= TF_API_TOKEN= RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=ARM64 RUNNER_TEMP=/tmp] Cmd:[] Healthcheck:<nil> ArgsEscaped:false Image:hashicorp/tfci:v1.0.0 Volumes:map[] WorkingDir:/Users/kurtisc/software-development-mastermind/terraform-config Entrypoint:[] NetworkDisabled:false MacAddress: OnBuild:[] Labels:map[] StopSignal: StopTimeout:<nil> Shell:[]}
[Terraform Apply/Terraform Apply] [DEBUG] Common container.HostConfig ==> &{Binds:[/var/run/docker.sock:/var/run/docker.sock] ContainerIDFile: LogConfig:{Type: Config:map[]} NetworkMode:container:act-Terraform-Apply-Terraform-Apply-b8e8bb1c2cf136f065e3156a88b8e36578b6fa0a1f132441a541b7df56731de6 PortBindings:map[] RestartPolicy:{Name: MaximumRetryCount:0} AutoRemove:false VolumeDriver: VolumesFrom:[] ConsoleSize:[0 0] Annotations:map[] CapAdd:[] CapDrop:[] CgroupnsMode: DNS:[] DNSOptions:[] DNSSearch:[] ExtraHosts:[] GroupAdd:[] IpcMode: Cgroup: Links:[] OomScoreAdj:0 PidMode: Privileged:false PublishAllPorts:false ReadonlyRootfs:false SecurityOpt:[] StorageOpt:map[] Tmpfs:map[] UTSMode: UsernsMode: ShmSize:0 Sysctls:map[] Runtime: Isolation: Resources:{CPUShares:0 Memory:0 NanoCPUs:0 CgroupParent: BlkioWeight:0 BlkioWeightDevice:[] BlkioDeviceReadBps:[] BlkioDeviceWriteBps:[] BlkioDeviceReadIOps:[] BlkioDeviceWriteIOps:[] CPUPeriod:0 CPUQuota:0 CPURealtimePeriod:0 CPURealtimeRuntime:0 CpusetCpus: CpusetMems: Devices:[] DeviceCgroupRules:[] DeviceRequests:[] KernelMemory:0 KernelMemoryTCP:0 MemoryReservation:0 MemorySwap:0 MemorySwappiness:<nil> OomKillDisable:<nil> PidsLimit:<nil> Ulimits:[] CPUCount:0 CPUPercent:0 IOMaximumIOps:0 IOMaximumBandwidth:0} Mounts:[{Type:volume Source:act-Terraform-Apply-Terraform-Apply-b8e8bb1c2cf136f065e3156a88b8e36578b6fa0a1f132441a541b7df56731de6-env Target:/var/run/act ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-Terraform-Apply-Terraform-Apply-b8e8bb1c2cf136f065e3156a88b8e36578b6fa0a1f132441a541b7df56731de6 Target:/Users/kurtisc/software-development-mastermind/terraform-config ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>} {Type:volume Source:act-toolcache Target:/opt/hostedtoolcache ReadOnly:false Consistency: BindOptions:<nil> VolumeOptions:<nil> TmpfsOptions:<nil> ClusterOptions:<nil>}] MaskedPaths:[] ReadonlyPaths:[] Init:<nil>}
[Terraform Apply/Terraform Apply] [DEBUG] input.NetworkAliases ==> []
[Terraform Apply/Terraform Apply] [DEBUG] Created container name=act-Terraform-Apply-Terraform-Apply-b8e8bb1c2cf136f065e3156a88b-1da2465de0ab6727b38649d01b459b29b20776bbfa9cdf74e18ad5edc69d6e4e id=3d3aba605e7e65c7aafa95daa613d654561e595b80e14745e395889e5530f117 from image hashicorp/tfci:v1.0.0 (platform: )
[Terraform Apply/Terraform Apply] [DEBUG] ENV ==> [GITHUB_REPOSITORY=kurtis-casperson/aws-cloud-resume INPUT_SPECULATIVE=false GITHUB_EVENT_PATH=/var/run/act/workflow/event.json GITHUB_STATE=/var/run/act/workflow/statecmd.txt ACTIONS_CACHE_URL=http://10.0.0.225:62648/ GITHUB_JOB=terraform RUNNER_TRACKING_ID= ImageOS=ubuntu20 token= ACT=true GITHUB_ACTIONS=true GITHUB_WORKSPACE=/Users/kurtisc/software-development-mastermind/terraform-config GITHUB_REF_NAME=main GITHUB_REF_TYPE=branch GITHUB_PATH=/var/run/act/workflow/pathcmd.txt GITHUB_ACTION=apply-upload GITHUB_ACTOR=nektos/act INPUT_DIRECTORY=./ CONFIG_DIRECTORY=./ GITHUB_GRAPHQL_URL=https://api.github.com/graphql organization= TF_CLOUD_ORGANIZATION=kcasperson GITHUB_ACTION_REF=v1.0.0 INPUT_WORKSPACE=cloud-resume-workspace GITHUB_STEP_SUMMARY=/var/run/act/workflow/SUMMARY.md INPUT_HOSTNAME= hostname= TF_VAR_api_token=5Oeb9b7x1ZQzOg.atlasv1.7CTxlyDL1obxM752zXOpUUSciOecFFqT4EPaJmpUwOxRiInzagziLDwlkhLx3GOcewc GITHUB_RUN_ID=1 GITHUB_RETENTION_DAYS=0 GITHUB_OUTPUT=/var/run/act/workflow/outputcmd.txt directory=./ workspace=cloud-resume-workspace GITHUB_BASE_REF= GITHUB_SERVER_URL=https://github.com speculative=false GITHUB_ACTION_REPOSITORY=hashicorp/tfc-workflows-github GITHUB_SHA=1753bcdc0deea5e449b3c38df0a3249de144011b GITHUB_API_URL=https://api.github.com INPUT_ORGANIZATION= TF_WORKSPACE=cloud-resume-workspace GITHUB_EVENT_NAME=push GITHUB_REF=refs/heads/main GITHUB_ENV=/var/run/act/workflow/envs.txt CI=true GITHUB_RUN_NUMBER=1 INPUT_TOKEN= GITHUB_REPOSITORY_OWNER=kurtis-casperson RUNNER_PERFLOG=/dev/null GITHUB_HEAD_REF= GITHUB_WORKFLOW=Terraform Apply GITHUB_ACTION_PATH= TF_API_TOKEN= RUNNER_TOOL_CACHE=/opt/hostedtoolcache RUNNER_OS=Linux RUNNER_ARCH=ARM64 RUNNER_TEMP=/tmp]
[Terraform Apply/Terraform Apply]   🐳  docker run image=hashicorp/tfci:v1.0.0 platform= entrypoint=[] cmd=["tfci" "-hostname=" "-token=" "-organization=" "upload" "-workspace=cloud-resume-workspace" "-directory=./" "-speculative=false"] network="container:act-Terraform-Apply-Terraform-Apply-b8e8bb1c2cf136f065e3156a88b8e36578b6fa0a1f132441a541b7df56731de6"
[Terraform Apply/Terraform Apply] [DEBUG] Starting container: 3d3aba605e7e65c7aafa95daa613d654561e595b80e14745e395889e5530f117
[Terraform Apply/Terraform Apply] [DEBUG] Started container: 3d3aba605e7e65c7aafa95daa613d654561e595b80e14745e395889e5530f117
| terraform cloud API token is not set
[Terraform Apply/Terraform Apply] [DEBUG] Return status: 1
[Terraform Apply/Terraform Apply] [DEBUG] Removed container: 3d3aba605e7e65c7aafa95daa613d654561e595b80e14745e395889e5530f117
[Terraform Apply/Terraform Apply]   ❌  Failure - Main Upload Configuration
[Terraform Apply/Terraform Apply] exit with `FAILURE`: 1
[Terraform Apply/Terraform Apply] [DEBUG] Loading revision from git directory
[Terraform Apply/Terraform Apply] [DEBUG] Found revision: 1753bcdc0deea5e449b3c38df0a3249de144011b
[Terraform Apply/Terraform Apply] [DEBUG] HEAD points to '1753bcdc0deea5e449b3c38df0a3249de144011b'
[Terraform Apply/Terraform Apply] [DEBUG] using github ref: refs/heads/main
[Terraform Apply/Terraform Apply] [DEBUG] Found revision: 1753bcdc0deea5e449b3c38df0a3249de144011b
[Terraform Apply/Terraform Apply] [DEBUG] Loading revision from git directory
[Terraform Apply/Terraform Apply] [DEBUG] Found revision: 1753bcdc0deea5e449b3c38df0a3249de144011b
[Terraform Apply/Terraform Apply] [DEBUG] HEAD points to '1753bcdc0deea5e449b3c38df0a3249de144011b'
[Terraform Apply/Terraform Apply] [DEBUG] using github ref: refs/heads/main
[Terraform Apply/Terraform Apply] [DEBUG] Found revision: 1753bcdc0deea5e449b3c38df0a3249de144011b
[Terraform Apply/Terraform Apply] [DEBUG] Loading revision from git directory
[Terraform Apply/Terraform Apply] [DEBUG] Found revision: 1753bcdc0deea5e449b3c38df0a3249de144011b
[Terraform Apply/Terraform Apply] [DEBUG] HEAD points to '1753bcdc0deea5e449b3c38df0a3249de144011b'
[Terraform Apply/Terraform Apply] [DEBUG] using github ref: refs/heads/main
[Terraform Apply/Terraform Apply] [DEBUG] Found revision: 1753bcdc0deea5e449b3c38df0a3249de144011b
[Terraform Apply/Terraform Apply] [DEBUG] expression '${{ env.TF_WORKSPACE }}' rewritten to 'format('{0}', env.TF_WORKSPACE)'
[Terraform Apply/Terraform Apply] [DEBUG] evaluating expression 'format('{0}', env.TF_WORKSPACE)'
[Terraform Apply/Terraform Apply] [DEBUG] expression 'format('{0}', env.TF_WORKSPACE)' evaluated to '%!t(string=cloud-resume-workspace)'
[Terraform Apply/Terraform Apply] [DEBUG] expression '${{ steps.apply-upload.outputs.configuration_version_id }}' rewritten to 'format('{0}', steps.apply-upload.outputs.configuration_version_id)'
[Terraform Apply/Terraform Apply] [DEBUG] evaluating expression 'format('{0}', steps.apply-upload.outputs.configuration_version_id)'
[Terraform Apply/Terraform Apply] [DEBUG] expression 'format('{0}', steps.apply-upload.outputs.configuration_version_id)' evaluated to '%!t(string=)'
[Terraform Apply/Terraform Apply] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://10.0.0.225:62648/ CI:true CONFIG_DIRECTORY:./ GITHUB_ACTION:apply-run GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:v1.0.0 GITHUB_ACTION_REPOSITORY:hashicorp/tfc-workflows-github GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:terraform GITHUB_REF:refs/heads/main GITHUB_REF_NAME:main GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:kurtis-casperson/aws-cloud-resume GITHUB_REPOSITORY_OWNER:kurtis-casperson GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:1753bcdc0deea5e449b3c38df0a3249de144011b GITHUB_WORKFLOW:Terraform Apply GITHUB_WORKSPACE:/Users/kurtisc/software-development-mastermind/terraform-config INPUT_CONFIGURATION_VERSION: INPUT_WORKSPACE:cloud-resume-workspace ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: TF_API_TOKEN: TF_CLOUD_ORGANIZATION:kcasperson TF_VAR_api_token:5Oeb9b7x1ZQzOg.atlasv1.7CTxlyDL1obxM752zXOpUUSciOecFFqT4EPaJmpUwOxRiInzagziLDwlkhLx3GOcewc TF_WORKSPACE:cloud-resume-workspace]
[Terraform Apply/Terraform Apply] [DEBUG] Loading revision from git directory
[Terraform Apply/Terraform Apply] [DEBUG] Found revision: 1753bcdc0deea5e449b3c38df0a3249de144011b
[Terraform Apply/Terraform Apply] [DEBUG] HEAD points to '1753bcdc0deea5e449b3c38df0a3249de144011b'
[Terraform Apply/Terraform Apply] [DEBUG] using github ref: refs/heads/main
[Terraform Apply/Terraform Apply] [DEBUG] Found revision: 1753bcdc0deea5e449b3c38df0a3249de144011b
[Terraform Apply/Terraform Apply] [DEBUG] Loading revision from git directory
[Terraform Apply/Terraform Apply] [DEBUG] Found revision: 1753bcdc0deea5e449b3c38df0a3249de144011b
[Terraform Apply/Terraform Apply] [DEBUG] HEAD points to '1753bcdc0deea5e449b3c38df0a3249de144011b'
[Terraform Apply/Terraform Apply] [DEBUG] using github ref: refs/heads/main
[Terraform Apply/Terraform Apply] [DEBUG] Found revision: 1753bcdc0deea5e449b3c38df0a3249de144011b
[Terraform Apply/Terraform Apply] [DEBUG] evaluating expression ''
[Terraform Apply/Terraform Apply] [DEBUG] expression '' evaluated to 'false'
[Terraform Apply/Terraform Apply] [DEBUG] Skipping step 'Create Apply Run' due to ''
[Terraform Apply/Terraform Apply] [DEBUG] Loading revision from git directory
[Terraform Apply/Terraform Apply] [DEBUG] Found revision: 1753bcdc0deea5e449b3c38df0a3249de144011b
[Terraform Apply/Terraform Apply] [DEBUG] HEAD points to '1753bcdc0deea5e449b3c38df0a3249de144011b'
[Terraform Apply/Terraform Apply] [DEBUG] using github ref: refs/heads/main
[Terraform Apply/Terraform Apply] [DEBUG] Found revision: 1753bcdc0deea5e449b3c38df0a3249de144011b
[Terraform Apply/Terraform Apply] [DEBUG] Loading revision from git directory
[Terraform Apply/Terraform Apply] [DEBUG] Found revision: 1753bcdc0deea5e449b3c38df0a3249de144011b
[Terraform Apply/Terraform Apply] [DEBUG] HEAD points to '1753bcdc0deea5e449b3c38df0a3249de144011b'
[Terraform Apply/Terraform Apply] [DEBUG] using github ref: refs/heads/main
[Terraform Apply/Terraform Apply] [DEBUG] Found revision: 1753bcdc0deea5e449b3c38df0a3249de144011b
[Terraform Apply/Terraform Apply] [DEBUG] Loading revision from git directory
[Terraform Apply/Terraform Apply] [DEBUG] Found revision: 1753bcdc0deea5e449b3c38df0a3249de144011b
[Terraform Apply/Terraform Apply] [DEBUG] HEAD points to '1753bcdc0deea5e449b3c38df0a3249de144011b'
[Terraform Apply/Terraform Apply] [DEBUG] using github ref: refs/heads/main
[Terraform Apply/Terraform Apply] [DEBUG] Found revision: 1753bcdc0deea5e449b3c38df0a3249de144011b
[Terraform Apply/Terraform Apply] [DEBUG] expression 'Apply Run from GitHub Actions CI ${{ github.sha }}' rewritten to 'format('Apply Run from GitHub Actions CI {0}', github.sha)'
[Terraform Apply/Terraform Apply] [DEBUG] evaluating expression 'format('Apply Run from GitHub Actions CI {0}', github.sha)'
[Terraform Apply/Terraform Apply] [DEBUG] expression 'format('Apply Run from GitHub Actions CI {0}', github.sha)' evaluated to '%!t(string=Apply Run from GitHub Actions CI 1753bcdc0deea5e449b3c38df0a3249de144011b)'
[Terraform Apply/Terraform Apply] [DEBUG] expression '${{ steps.apply-run.outputs.run_id }}' rewritten to 'format('{0}', steps.apply-run.outputs.run_id)'
[Terraform Apply/Terraform Apply] [DEBUG] evaluating expression 'format('{0}', steps.apply-run.outputs.run_id)'
[Terraform Apply/Terraform Apply] [DEBUG] expression 'format('{0}', steps.apply-run.outputs.run_id)' evaluated to '%!t(string=)'
[Terraform Apply/Terraform Apply] [DEBUG] setupEnv => map[ACT:true ACTIONS_CACHE_URL:http://10.0.0.225:62648/ CI:true CONFIG_DIRECTORY:./ GITHUB_ACTION:apply GITHUB_ACTIONS:true GITHUB_ACTION_PATH: GITHUB_ACTION_REF:v1.0.0 GITHUB_ACTION_REPOSITORY:hashicorp/tfc-workflows-github GITHUB_ACTOR:nektos/act GITHUB_API_URL:https://api.github.com GITHUB_BASE_REF: GITHUB_EVENT_NAME:push GITHUB_EVENT_PATH:/var/run/act/workflow/event.json GITHUB_GRAPHQL_URL:https://api.github.com/graphql GITHUB_HEAD_REF: GITHUB_JOB:terraform GITHUB_REF:refs/heads/main GITHUB_REF_NAME:main GITHUB_REF_TYPE:branch GITHUB_REPOSITORY:kurtis-casperson/aws-cloud-resume GITHUB_REPOSITORY_OWNER:kurtis-casperson GITHUB_RETENTION_DAYS:0 GITHUB_RUN_ID:1 GITHUB_RUN_NUMBER:1 GITHUB_SERVER_URL:https://github.com GITHUB_SHA:1753bcdc0deea5e449b3c38df0a3249de144011b GITHUB_WORKFLOW:Terraform Apply GITHUB_WORKSPACE:/Users/kurtisc/software-development-mastermind/terraform-config INPUT_COMMENT:Apply Run from GitHub Actions CI 1753bcdc0deea5e449b3c38df0a3249de144011b INPUT_RUN: ImageOS:ubuntu20 RUNNER_PERFLOG:/dev/null RUNNER_TRACKING_ID: TF_API_TOKEN: TF_CLOUD_ORGANIZATION:kcasperson TF_VAR_api_token:5Oeb9b7x1ZQzOg.atlasv1.7CTxlyDL1obxM752zXOpUUSciOecFFqT4EPaJmpUwOxRiInzagziLDwlkhLx3GOcewc TF_WORKSPACE:cloud-resume-workspace]
[Terraform Apply/Terraform Apply] [DEBUG] Loading revision from git directory
[Terraform Apply/Terraform Apply] [DEBUG] Found revision: 1753bcdc0deea5e449b3c38df0a3249de144011b
[Terraform Apply/Terraform Apply] [DEBUG] HEAD points to '1753bcdc0deea5e449b3c38df0a3249de144011b'
[Terraform Apply/Terraform Apply] [DEBUG] using github ref: refs/heads/main
[Terraform Apply/Terraform Apply] [DEBUG] Found revision: 1753bcdc0deea5e449b3c38df0a3249de144011b
[Terraform Apply/Terraform Apply] [DEBUG] Loading revision from git directory
[Terraform Apply/Terraform Apply] [DEBUG] Found revision: 1753bcdc0deea5e449b3c38df0a3249de144011b
[Terraform Apply/Terraform Apply] [DEBUG] HEAD points to '1753bcdc0deea5e449b3c38df0a3249de144011b'
[Terraform Apply/Terraform Apply] [DEBUG] using github ref: refs/heads/main
[Terraform Apply/Terraform Apply] [DEBUG] Found revision: 1753bcdc0deea5e449b3c38df0a3249de144011b
[Terraform Apply/Terraform Apply] [DEBUG] evaluating expression 'fromJSON(steps.apply-run.outputs.payload).data.attributes.actions.IsConfirmable'
[Terraform Apply/Terraform Apply] [DEBUG] expression 'fromJSON(steps.apply-run.outputs.payload).data.attributes.actions.IsConfirmable' evaluated to 'false'
[Terraform Apply/Terraform Apply] [DEBUG] Skipping step 'Apply' due to 'fromJSON(steps.apply-run.outputs.payload).data.attributes.actions.IsConfirmable'
[Terraform Apply/Terraform Apply] [DEBUG] skipping post step for 'Apply'; main step was skipped
[Terraform Apply/Terraform Apply] [DEBUG] skipping post step for 'Create Apply Run'; main step was skipped
[Terraform Apply/Terraform Apply] [DEBUG] skipping post step for 'Checkout': no action model available
[Terraform Apply/Terraform Apply] 🏁  Job failed
[Terraform Apply/Terraform Apply] [DEBUG] Loading revision from git directory
[Terraform Apply/Terraform Apply] [DEBUG] Found revision: 1753bcdc0deea5e449b3c38df0a3249de144011b
[Terraform Apply/Terraform Apply] [DEBUG] HEAD points to '1753bcdc0deea5e449b3c38df0a3249de144011b'
[Terraform Apply/Terraform Apply] [DEBUG] using github ref: refs/heads/main
[Terraform Apply/Terraform Apply] [DEBUG] Found revision: 1753bcdc0deea5e449b3c38df0a3249de144011b
Error: Job 'Terraform Apply' failed

Additional information

No response

@kurtis-casperson kurtis-casperson added the kind/bug Something isn't working label Mar 1, 2024
@kurtis-casperson kurtis-casperson changed the title terraform cloud API token is not set - Using Terraform cloud terraform cloud API token is not set Mar 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant