Skip to content

[BUG]: Not able to Import github_actions_environment_secret #2461

@whgiles

Description

@whgiles

Expected Behavior

I should be able to run:

Terraform import '<module>.github_actions_environment_secret.<name> <repository>/<environment>/<secret_name>'

or use and import block

import {
    to = <module>.github_actions_environment_secret.<name> <repository>/<environment>/<secret_name>
    id = "<repository>/<environment>/<secret_name>"
}

Actual Behavior

After I run an import command

Error: Configuration for import target does not exist

The configuration for the given import <module>.github_actions_environment_secret.<name> <repository>/<environment>/<secret_name> does not exist. All target instances must have an associated configuration to be imported.

Terraform Version

Terraform v1.9.8
on darwin_arm64

  • provide registry.terraform.io/hashicorp/github v6.3.1

Affected Resource(s)

github_actions_environment_secret

Terraform Configuration Files

No response

Steps to Reproduce

Terraform import '<module>.github_actions_environment_secret.<name> <repository>/<environment>/<secret_name>'

Debug Output

No response

Panic Output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: StaleUsed by stalebot to clean houseStatus: TriageThis is being looked at and prioritizedType: BugSomething isn't working as documented

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions