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 apply - output? #133

Open
MatiasNielsen opened this issue Oct 28, 2021 · 2 comments
Open

Terraform apply - output? #133

MatiasNielsen opened this issue Oct 28, 2021 · 2 comments

Comments

@MatiasNielsen
Copy link

So like terraform plan, where it automatically writes a comment on the pull request with the status..

Is this possible with the terraform apply step? I'd very much like it to do so, but steps.apply.outputs.stdout doesnt seem to be a thing?

@MatiasNielsen
Copy link
Author

Also,
On a terraform init im getting the following error (trying to source other repositories from github)

│ Error: Failed to download module

│ Could not download module "mega-cool" (main.tf:13) source code from
│ "github.com/repo-name": error downloading
│ 'https://github.com/repo-name': /usr/bin/git
│ exited with 128: Cloning into '.terraform/modules/mega-cool'...
│ fatal: could not read Username for 'https://github.com': No such device or
│ address

my init step looks like this:

- name: Terraform Init
      id: init
      run: terraform init
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        TF_ACTION_WORKING_DIR: '.'
        AWS_ACCESS_KEY_ID:  ${{ secrets.ACCESS_KEY_ID }}
        AWS_SECRET_ACCESS_KEY:  ${{ secrets.SECRET_ACCESS_KEY }}

@yocean-tseng
Copy link

Any update on this issue??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants