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

feat: add environment secret import capabilities #2462

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

whgiles
Copy link

@whgiles whgiles commented Nov 13, 2024

Resolves #2461


Before the change?

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.

After the change?

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>"
}

Pull request checklist

  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been reviewed and added / updated if needed (for bug fixes / features)

Does this introduce a breaking change?

No

Please see our docs on breaking changes to help!

  • Yes
  • No

@whgiles whgiles changed the title [Feature] add environment secret import feat: add environment secret import Nov 13, 2024
@whgiles whgiles changed the title feat: add environment secret import feat: add environment secret import capabilities Nov 13, 2024
@whgiles
Copy link
Author

whgiles commented Nov 13, 2024

changes are based off of #1763

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

Successfully merging this pull request may close these issues.

[BUG]: Not able to Import github_actions_environment_secret
1 participant