Open nitrocode opened 2 years ago
Hey @nitrocode 👋 I took a brief look at this while triaging it and noticed one thing that I figured I'd mention. Based on you not including the auto_branch_creation_config
block, am I correct in assuming that you'd prefer that not be added at all? If so, I believe that setting enable_auto_branch_creation
to false
might be what you're looking for. Full disclosure, this isn't an area of expertise for me, so apologies in advance if that's not helpful 🙂
Can confirm it has nothing to do with auto_branch_creation_config
. Every single Amplify app we Terraform has to be manually changed to use the Github App instead of OAuth. Intensely frustrating.
aws_amplify_app still does not have a way to configure a GitHub App instead of OAuth for connecting to a repository. Looks like a resource would need to be added that can create the GitHub App as well as they are coupled with callbacks, secrets etc.
Has anyone had a chance to look into this?
Some of our Amplify apps are now being forced to use GitHub App connections, so means we have to manually switch them every time a dev creates an app using terraform. When clicking reconnect: we have no choice but to swap to GitHub App connections:
anyone get chance to look into it . I need to use terraform to connect with GitHub App .but we can't get solution till now
Does anyone knows a workaround with any other option?
Like doing it with cloud formation, from the aws cli, or using aws endpoints instead?
Community Note
Terraform CLI and Terraform AWS Provider Version
Affected Resource(s)
aws_amplify_app
(most likely this resource)aws_amplify_webhook
(this resource has to be recreated when the app is migrated)Terraform Configuration Files
Plan
It might have something to do with the default
auto_branch_creation_config
. I do not have it set so the terraform resource must be setting that withbasic_auth_credentials
even though I'm using theaccess_token
.Setting an empty
auto_branch_creation_config
works but prevents any of the repository settings from getting added.If we try to
null
each of the block arguments, it says thatbasic_auth_credentials
(and the others is/are) required even though all of these block options are shown asoptional
in the docsDebug Output
Panic Output
Expected Behavior
It should create the github web app authentication web hook
Actual Behavior
It creates the oauth web app authentication web hook which then shows a migration button in the UI
Steps to Reproduce
terraform apply
Important Factoids
References