-
Notifications
You must be signed in to change notification settings - Fork 871
Closed as not planned
Labels
Status: StaleUsed by stalebot to clean houseUsed by stalebot to clean houseStatus: Up for grabsIssues that are ready to be worked on by anyoneIssues that are ready to be worked on by anyoneType: BugSomething isn't working as documentedSomething isn't working as documentedhacktoberfestIssues for participation in HacktoberfestIssues for participation in Hacktoberfest
Description
Not sure if I'm missing anything, but while trying to create an org and an org web hook, I get this error
this resource can only be used in the context of an organization
I am using a PAT to authenticate.
Meaning that the Terraform Github Provider does not detect the Org during the first apply, I'm assuming the Provider is not recognizing the Org.
Subsequent applies works after. Is there a way to get this to work in one terraform operation?
Steps to reproduce
resource "github_enterprise_organization" "org" {
enterprise_id = data.github_enterprise.enterprise.id
name = "some-awesome-org"
description = "Organization created with terraform"
billing_email = "[email protected]"
admin_logins = [
"jon-snow"
]
}
resource "github_organization_webhook" "foo" {
name = "web"
configuration {
url = "https://google.de/"
content_type = "form"
insecure_ssl = false
}
active = false
events = ["issues"]
}
petergasper, raj-saxena, testworksau and ehuizar1028
Metadata
Metadata
Assignees
Labels
Status: StaleUsed by stalebot to clean houseUsed by stalebot to clean houseStatus: Up for grabsIssues that are ready to be worked on by anyoneIssues that are ready to be worked on by anyoneType: BugSomething isn't working as documentedSomething isn't working as documentedhacktoberfestIssues for participation in HacktoberfestIssues for participation in Hacktoberfest
Type
Projects
Status
✅ Done